Bug Summary

File:root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/cxxalloc.h
Warning:line 64, column 10
Memory allocated by 'operator new' should be deallocated by 'delete', not 'free()'

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -cc1 -triple x86_64-pc-linux-gnu -analyze -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name ActorsParent.cpp -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=cplusplus -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -analyzer-config-compatibility-mode=true -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=all -relaxed-aliasing -ffp-contract=off -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/root/firefox-clang/obj-x86_64-pc-linux-gnu/dom/indexedDB -fcoverage-compilation-dir=/root/firefox-clang/obj-x86_64-pc-linux-gnu/dom/indexedDB -resource-dir /usr/lib/llvm-21/lib/clang/21 -include /root/firefox-clang/config/gcc_hidden.h -include /root/firefox-clang/obj-x86_64-pc-linux-gnu/mozilla-config.h -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/stl_wrappers -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/system_wrappers -U _FORTIFY_SOURCE -D _FORTIFY_SOURCE=2 -D _GLIBCXX_ASSERTIONS -D DEBUG=1 -D MOZ_HAS_MOZGLUE -D MOZILLA_INTERNAL_API -D IMPL_LIBXUL -D MOZ_SUPPORT_LEAKCHECKING -D STATIC_EXPORTABLE_JS_API -I /root/firefox-clang/dom/indexedDB -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dom/indexedDB -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/ipc/ipdl/_ipdlheaders -I /root/firefox-clang/ipc/chromium/src -I /root/firefox-clang/dom/base -I /root/firefox-clang/dom/storage -I /root/firefox-clang/ipc/glue -I /root/firefox-clang/third_party/sqlite3/src -I /root/firefox-clang/xpcom/build -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nspr -I /root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/nss -D MOZILLA_CLIENT -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/14/../../../../include/x86_64-linux-gnu/c++/14 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/backward -internal-isystem /usr/lib/llvm-21/lib/clang/21/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/14/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wno-error=pessimizing-move -Wno-error=large-by-value-copy=128 -Wno-error=implicit-int-float-conversion -Wno-error=thread-safety-analysis -Wno-error=tautological-type-limit-compare -Wno-invalid-offsetof -Wno-range-loop-analysis -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-deprecated-this-capture -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error=deprecated-builtins -Wno-psabi -Wno-error=builtin-macro-redefined -Wno-vla-cxx-extension -Wno-unknown-warning-option -fdeprecated-macro -ferror-limit 19 -fstrict-flex-arrays=1 -stack-protector 2 -fstack-clash-protection -ftrivial-auto-var-init=pattern -fno-rtti -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fno-sized-deallocation -fno-aligned-allocation -vectorize-loops -vectorize-slp -analyzer-checker optin.performance.Padding -analyzer-output=html -analyzer-config stable-report-filename=true -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/scan-build-2025-06-27-100320-3286336-1 -x c++ /root/firefox-clang/dom/indexedDB/ActorsParent.cpp

/root/firefox-clang/dom/indexedDB/ActorsParent.cpp

1/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3/* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7#include "ActorsParent.h"
8
9#include <inttypes.h>
10#include <math.h>
11#include <stdlib.h>
12#include <string.h>
13#include <algorithm>
14#include <cstdint>
15#include <functional>
16#include <iterator>
17#include <new>
18#include <numeric>
19#include <tuple>
20#include <type_traits>
21#include <utility>
22#include "ActorsParentCommon.h"
23#include "CrashAnnotations.h"
24#include "DatabaseFileInfo.h"
25#include "DatabaseFileManager.h"
26#include "DatabaseFileManagerImpl.h"
27#include "DBSchema.h"
28#include "ErrorList.h"
29#include "IDBCursorType.h"
30#include "IDBObjectStore.h"
31#include "IDBTransaction.h"
32#include "IndexedDBCommon.h"
33#include "IndexedDatabaseInlines.h"
34#include "IndexedDatabaseManager.h"
35#include "IndexedDBCipherKeyManager.h"
36#include "KeyPath.h"
37#include "MainThreadUtils.h"
38#include "ProfilerHelpers.h"
39#include "ReportInternalError.h"
40#include "SafeRefPtr.h"
41#include "SchemaUpgrades.h"
42#include "chrome/common/ipc_channel.h"
43#include "ipc/IPCMessageUtils.h"
44#include "js/RootingAPI.h"
45#include "js/StructuredClone.h"
46#include "js/Value.h"
47#include "jsapi.h"
48#include "mozIStorageAsyncConnection.h"
49#include "mozIStorageConnection.h"
50#include "mozIStorageFunction.h"
51#include "mozIStorageProgressHandler.h"
52#include "mozIStorageService.h"
53#include "mozIStorageStatement.h"
54#include "mozIStorageValueArray.h"
55#include "mozStorageCID.h"
56#include "mozStorageHelper.h"
57#include "mozilla/Algorithm.h"
58#include "mozilla/ArrayAlgorithm.h"
59#include "mozilla/ArrayIterator.h"
60#include "mozilla/Assertions.h"
61#include "mozilla/Atomics.h"
62#include "mozilla/Attributes.h"
63#include "mozilla/Casting.h"
64#include "mozilla/CondVar.h"
65#include "mozilla/DebugOnly.h"
66#include "mozilla/EndianUtils.h"
67#include "mozilla/ErrorNames.h"
68#include "mozilla/ErrorResult.h"
69#include "mozilla/InitializedOnce.h"
70#include "mozilla/Logging.h"
71#include "mozilla/MacroForEach.h"
72#include "mozilla/Maybe.h"
73#include "mozilla/Monitor.h"
74#include "mozilla/Mutex.h"
75#include "mozilla/NotNull.h"
76#include "mozilla/Preferences.h"
77#include "mozilla/ProfilerLabels.h"
78#include "mozilla/RefCountType.h"
79#include "mozilla/RefCounted.h"
80#include "mozilla/RemoteLazyInputStreamParent.h"
81#include "mozilla/RemoteLazyInputStreamStorage.h"
82#include "mozilla/Result.h"
83#include "mozilla/ResultExtensions.h"
84#include "mozilla/SchedulerGroup.h"
85#include "mozilla/SnappyCompressOutputStream.h"
86#include "mozilla/SpinEventLoopUntil.h"
87#include "mozilla/StaticPtr.h"
88#include "mozilla/TimeStamp.h"
89#include "mozilla/UniquePtr.h"
90#include "mozilla/Unused.h"
91#include "mozilla/Variant.h"
92#include "mozilla/dom/BlobImpl.h"
93#include "mozilla/dom/ContentParent.h"
94#include "mozilla/dom/FileBlobImpl.h"
95#include "mozilla/dom/FlippedOnce.h"
96#include "mozilla/dom/IDBCursorBinding.h"
97#include "mozilla/dom/IDBFactory.h"
98#include "mozilla/dom/IPCBlob.h"
99#include "mozilla/dom/IPCBlobUtils.h"
100#include "mozilla/dom/IndexedDatabase.h"
101#include "mozilla/dom/Nullable.h"
102#include "mozilla/dom/PContentParent.h"
103#include "mozilla/dom/ScriptSettings.h"
104#include "mozilla/dom/indexedDB/IDBResult.h"
105#include "mozilla/dom/indexedDB/Key.h"
106#include "mozilla/dom/indexedDB/PBackgroundIDBCursor.h"
107#include "mozilla/dom/indexedDB/PBackgroundIDBCursorParent.h"
108#include "mozilla/dom/indexedDB/PBackgroundIDBDatabase.h"
109#include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseFileParent.h"
110#include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseParent.h"
111#include "mozilla/dom/indexedDB/PBackgroundIDBFactory.h"
112#include "mozilla/dom/indexedDB/PBackgroundIDBFactoryParent.h"
113#include "mozilla/dom/indexedDB/PBackgroundIDBFactoryRequestParent.h"
114#include "mozilla/dom/indexedDB/PBackgroundIDBRequest.h"
115#include "mozilla/dom/indexedDB/PBackgroundIDBRequestParent.h"
116#include "mozilla/dom/indexedDB/PBackgroundIDBSharedTypes.h"
117#include "mozilla/dom/indexedDB/PBackgroundIDBTransactionParent.h"
118#include "mozilla/dom/indexedDB/PBackgroundIDBVersionChangeTransactionParent.h"
119#include "mozilla/dom/indexedDB/PBackgroundIndexedDBUtilsParent.h"
120#include "mozilla/dom/ipc/IdType.h"
121#include "mozilla/dom/quota/Assertions.h"
122#include "mozilla/dom/quota/CachingDatabaseConnection.h"
123#include "mozilla/dom/quota/Client.h"
124#include "mozilla/dom/quota/ClientDirectoryLock.h"
125#include "mozilla/dom/quota/ClientDirectoryLockHandle.h"
126#include "mozilla/dom/quota/ClientImpl.h"
127#include "mozilla/dom/quota/ConditionalCompilation.h"
128#include "mozilla/dom/quota/Date.h"
129#include "mozilla/dom/quota/DirectoryLock.h"
130#include "mozilla/dom/quota/DirectoryLockInlines.h"
131#include "mozilla/dom/quota/DirectoryMetadata.h"
132#include "mozilla/dom/quota/DecryptingInputStream_impl.h"
133#include "mozilla/dom/quota/EncryptingOutputStream_impl.h"
134#include "mozilla/dom/quota/ErrorHandling.h"
135#include "mozilla/dom/quota/FileStreams.h"
136#include "mozilla/dom/quota/OriginScope.h"
137#include "mozilla/dom/quota/PersistenceScope.h"
138#include "mozilla/dom/quota/PersistenceType.h"
139#include "mozilla/dom/quota/PrincipalUtils.h"
140#include "mozilla/dom/quota/QuotaCommon.h"
141#include "mozilla/dom/quota/QuotaManager.h"
142#include "mozilla/dom/quota/QuotaObject.h"
143#include "mozilla/dom/quota/ResultExtensions.h"
144#include "mozilla/dom/quota/ThreadUtils.h"
145#include "mozilla/dom/quota/UniversalDirectoryLock.h"
146#include "mozilla/dom/quota/UsageInfo.h"
147#include "mozilla/fallible.h"
148#include "mozilla/ipc/BackgroundParent.h"
149#include "mozilla/ipc/BackgroundUtils.h"
150#include "mozilla/ipc/InputStreamParams.h"
151#include "mozilla/ipc/PBackgroundParent.h"
152#include "mozilla/ipc/PBackgroundSharedTypes.h"
153#include "mozilla/ipc/ProtocolUtils.h"
154#include "mozilla/mozalloc.h"
155#include "mozilla/storage/Variant.h"
156#include "NotifyUtils.h"
157#include "nsBaseHashtable.h"
158#include "nsCOMPtr.h"
159#include "nsClassHashtable.h"
160#include "nsContentUtils.h"
161#include "nsTHashMap.h"
162#include "nsDebug.h"
163#include "nsError.h"
164#include "nsEscape.h"
165#include "nsHashKeys.h"
166#include "nsIAsyncInputStream.h"
167#include "nsID.h"
168#include "nsIDUtils.h"
169#include "nsIDirectoryEnumerator.h"
170#include "nsIEventTarget.h"
171#include "nsIFile.h"
172#include "nsIFileProtocolHandler.h"
173#include "nsIFileStreams.h"
174#include "nsIFileURL.h"
175#include "nsIInputStream.h"
176#include "nsIOutputStream.h"
177#include "nsIProtocolHandler.h"
178#include "nsIRunnable.h"
179#include "nsISupports.h"
180#include "nsISupportsPriority.h"
181#include "nsISupportsUtils.h"
182#include "nsIThread.h"
183#include "nsIThreadInternal.h"
184#include "nsITimer.h"
185#include "nsIURIMutator.h"
186#include "nsIVariant.h"
187#include "nsLiteralString.h"
188#include "nsNetCID.h"
189#include "nsPrintfCString.h"
190#include "nsProxyRelease.h"
191#include "nsServiceManagerUtils.h"
192#include "nsStreamUtils.h"
193#include "nsString.h"
194#include "nsStringFlags.h"
195#include "nsStringFwd.h"
196#include "nsTArray.h"
197#include "nsTHashSet.h"
198#include "nsTHashtable.h"
199#include "nsTLiteralString.h"
200#include "nsTStringRepr.h"
201#include "nsThreadPool.h"
202#include "nsThreadUtils.h"
203#include "nscore.h"
204#include "prinrval.h"
205#include "prio.h"
206#include "prsystem.h"
207#include "prthread.h"
208#include "prtime.h"
209#include "prtypes.h"
210#include "snappy/snappy.h"
211
212struct JSContext;
213class JSObject;
214template <class T>
215class nsPtrHashKey;
216
217#define IDB_DEBUG_LOG(_args) \
218 MOZ_LOG(IndexedDatabaseManager::GetLoggingModule(), LogLevel::Debug, _args)do { const ::mozilla::LogModule* moz_real_module = IndexedDatabaseManager
::GetLoggingModule(); if ((__builtin_expect(!!(mozilla::detail
::log_test(moz_real_module, LogLevel::Debug)), 0))) { mozilla
::detail::log_print(moz_real_module, LogLevel::Debug, MOZ_LOG_EXPAND_ARGS
_args); } } while (0)
219
220#if defined(MOZ_WIDGET_ANDROID)
221# define IDB_MOBILE
222#endif
223
224// Helper macros to reduce assertion verbosity
225// AUUF == ASSERT_UNREACHABLE_UNLESS_FUZZING
226#ifdef DEBUG1
227# ifdef FUZZING
228# define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { MOZ_CrashSequence(__null, 228); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
NS_WARNING(__VA_ARGS__)NS_DebugBreak(NS_DEBUG_WARNING, __VA_ARGS__, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 228)
229# else
230# define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { MOZ_CrashSequence(__null, 230); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
MOZ_ASSERT(false, __VA_ARGS__)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" __VA_ARGS__ ")"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 230);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" __VA_ARGS__
")"); do { MOZ_CrashSequence(__null, 230); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
231# endif
232# define NS_AUUF_OR_WARN_IF(cond)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cond" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 232); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cond" ")"); do { MOZ_CrashSequence(__null, 232); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cond))
\
233 [](bool aCond) { \
234 if (MOZ_UNLIKELY(aCond)(__builtin_expect(!!(aCond), 0))) { \
235 NS_AUUF_OR_WARN(#cond)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" #cond ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 235); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
#cond ")"); do { MOZ_CrashSequence(__null, 235); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
; \
236 } \
237 return aCond; \
238 }((cond))
239#else
240# define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 240); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { MOZ_CrashSequence(__null, 240); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
\
241 do { \
242 } while (false)
243# define NS_AUUF_OR_WARN_IF(cond)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cond" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 243); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cond" ")"); do { MOZ_CrashSequence(__null, 243); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cond))
static_cast<bool>(cond)
244#endif
245
246namespace mozilla {
247
248namespace dom::indexedDB {
249
250using namespace mozilla::dom::quota;
251using namespace mozilla::ipc;
252using mozilla::dom::quota::Client;
253
254namespace {
255
256class ConnectionPool;
257class Database;
258struct DatabaseActorInfo;
259class DatabaseFile;
260class DatabaseLoggingInfo;
261class DatabaseMaintenance;
262class Factory;
263class Maintenance;
264class OpenDatabaseOp;
265class TransactionBase;
266class TransactionDatabaseOperationBase;
267class VersionChangeTransaction;
268template <bool StatementHasIndexKeyBindings>
269struct ValuePopulateResponseHelper;
270
271/*******************************************************************************
272 * Constants
273 ******************************************************************************/
274
275const int32_t kStorageProgressGranularity = 1000;
276
277// Changing the value here will override the page size of new databases only.
278// A journal mode change and VACUUM are needed to change existing databases, so
279// the best way to do that is to use the schema version upgrade mechanism.
280const uint32_t kSQLitePageSizeOverride =
281#ifdef IDB_MOBILE
282 2048;
283#else
284 4096;
285#endif
286
287static_assert(kSQLitePageSizeOverride == /* mozStorage default */ 0 ||
288 (kSQLitePageSizeOverride % 2 == 0 &&
289 kSQLitePageSizeOverride >= 512 &&
290 kSQLitePageSizeOverride <= 65536),
291 "Must be 0 (disabled) or a power of 2 between 512 and 65536!");
292
293// Set to -1 to use SQLite's default, 0 to disable, or some positive number to
294// enforce a custom limit.
295const int32_t kMaxWALPages = 5000; // 20MB on desktop, 10MB on mobile.
296
297// Set to some multiple of the page size to grow the database in larger chunks.
298const uint32_t kSQLiteGrowthIncrement = kSQLitePageSizeOverride * 2;
299
300static_assert(kSQLiteGrowthIncrement >= 0 &&
301 kSQLiteGrowthIncrement % kSQLitePageSizeOverride == 0 &&
302 kSQLiteGrowthIncrement < uint32_t(INT32_MAX(2147483647)),
303 "Must be 0 (disabled) or a positive multiple of the page size!");
304
305// The maximum number of threads that can be used for database activity at a
306// single time. Please keep in sync with the constants in
307// test_connection_idle_maintenance*.js tests
308const uint32_t kMaxConnectionThreadCount = 20;
309
310static_assert(kMaxConnectionThreadCount, "Must have at least one thread!");
311
312// The maximum number of threads to keep when idle. Until we switch to the STS
313// pool, we can reduce the number of idle threads kept around thanks to the
314// grace timeout.
315const uint32_t kMaxIdleConnectionThreadCount = 1;
316
317static_assert(kMaxConnectionThreadCount >= kMaxIdleConnectionThreadCount,
318 "Idle thread limit must be less than total thread limit!");
319
320// The length of time that wanted idle threads will stay alive before being shut
321// down.
322const uint32_t kConnectionThreadMaxIdleMS = 30 * 1000; // 30 seconds
323
324// The length of time that excess idle threads will stay alive before being shut
325// down.
326const uint32_t kConnectionThreadGraceIdleMS = 500; // 0.5 seconds
327
328// The length of time that database connections will be held open after all
329// transactions have completed before doing idle maintenance. Please keep in
330// sync with the timeouts in test_connection_idle_maintenance*.js tests
331const uint32_t kConnectionIdleMaintenanceMS = 2 * 1000; // 2 seconds
332
333// The length of time that database connections will be held open after all
334// transactions and maintenance have completed.
335const uint32_t kConnectionIdleCloseMS = 10 * 1000; // 10 seconds
336
337#define SAVEPOINT_CLAUSE"SAVEPOINT sp;"_ns "SAVEPOINT sp;"_ns
338
339// For efficiency reasons, kEncryptedStreamBlockSize must be a multiple of large
340// 4k disk sectors.
341static_assert(kEncryptedStreamBlockSize % 4096 == 0);
342// Similarly, the file copy buffer size must be a multiple of the encrypted
343// block size.
344static_assert(kFileCopyBufferSize % kEncryptedStreamBlockSize == 0);
345
346constexpr auto kFileManagerDirectoryNameSuffix = u".files"_ns;
347constexpr auto kSQLiteSuffix = u".sqlite"_ns;
348constexpr auto kSQLiteJournalSuffix = u".sqlite-journal"_ns;
349constexpr auto kSQLiteSHMSuffix = u".sqlite-shm"_ns;
350constexpr auto kSQLiteWALSuffix = u".sqlite-wal"_ns;
351
352// The following constants define all names of binding parameters in statements,
353// where they are bound by name. This should include all parameter names which
354// are bound by name. Binding may be done by index when the statement definition
355// and binding are done in the same local scope, and no other reasons prevent
356// using the indexes (e.g. multiple statement variants with differing number or
357// order of parameters). Neither the styles of specifying parameter names
358// (literally vs. via these constants) nor the binding styles (by index vs. by
359// name) should not be mixed for the same statement. The decision must be made
360// for each statement based on the proximity of statement and binding calls.
361constexpr auto kStmtParamNameCurrentKey = "current_key"_ns;
362constexpr auto kStmtParamNameRangeBound = "range_bound"_ns;
363constexpr auto kStmtParamNameObjectStorePosition = "object_store_position"_ns;
364constexpr auto kStmtParamNameLowerKey = "lower_key"_ns;
365constexpr auto kStmtParamNameUpperKey = "upper_key"_ns;
366constexpr auto kStmtParamNameKey = "key"_ns;
367constexpr auto kStmtParamNameObjectStoreId = "object_store_id"_ns;
368constexpr auto kStmtParamNameIndexId = "index_id"_ns;
369// TODO: Maybe the uses of kStmtParamNameId should be replaced by more
370// specific constants such as kStmtParamNameObjectStoreId.
371constexpr auto kStmtParamNameId = "id"_ns;
372constexpr auto kStmtParamNameValue = "value"_ns;
373constexpr auto kStmtParamNameObjectDataKey = "object_data_key"_ns;
374constexpr auto kStmtParamNameIndexDataValues = "index_data_values"_ns;
375constexpr auto kStmtParamNameData = "data"_ns;
376constexpr auto kStmtParamNameFileIds = "file_ids"_ns;
377constexpr auto kStmtParamNameValueLocale = "value_locale"_ns;
378constexpr auto kStmtParamNameLimit = "limit"_ns;
379
380// The following constants define some names of columns in tables, which are
381// referred to in remote locations, e.g. in calls to
382// GetBindingClauseForKeyRange.
383constexpr auto kColumnNameKey = "key"_ns;
384constexpr auto kColumnNameValue = "value"_ns;
385constexpr auto kColumnNameAliasSortKey = "sort_column"_ns;
386
387// SQL fragments used at multiple locations.
388constexpr auto kOpenLimit = " LIMIT "_ns;
389
390// The deletion marker file is created before RemoveDatabaseFilesAndDirectory
391// begins deleting a database. It is removed as the last step of deletion. If a
392// deletion marker file is found when initializing the origin, the deletion
393// routine is run again to ensure that the database and all of its related files
394// are removed. The primary goal of this mechanism is to avoid situations where
395// a database has been partially deleted, leading to inconsistent state for the
396// origin.
397constexpr auto kIdbDeletionMarkerFilePrefix = u"idb-deleting-"_ns;
398
399const uint32_t kDeleteTimeoutMs = 1000;
400
401#ifdef DEBUG1
402
403const int32_t kDEBUGThreadPriority = nsISupportsPriority::PRIORITY_NORMAL;
404const uint32_t kDEBUGThreadSleepMS = 0;
405
406// Set to a non-zero number to enable debugging of transaction event targets.
407// It will cause sleeping after every transaction runnable!
408//
409// This can be useful for discovering race conditions related to switching to
410// another thread. Such races are usually avoided by using MozPromise or
411// RunAfterProcessingCurrentEvent. Chaos mode doesn't always help with
412// uncovering these issues, and only a precisely targeted sleep call can
413// simulate the problem.
414const uint32_t kDEBUGTransactionThreadSleepMS = 0;
415
416// Make sure that we notice if we ever accidentally check in a non-zero value.
417# ifdef MOZILLA_OFFICIAL
418static_assert(kDEBUGTransactionThreadSleepMS == 0);
419# endif
420
421#endif
422
423/*******************************************************************************
424 * Metadata classes
425 ******************************************************************************/
426
427// Can be instantiated either on the QuotaManager IO thread or on a
428// versionchange transaction thread. These threads can never race so this is
429// totally safe.
430struct FullIndexMetadata {
431 IndexMetadata mCommonMetadata = {0, nsString(), KeyPath(0), nsCString(),
432 false, false, false};
433
434 FlippedOnce<false> mDeleted;
435
436 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FullIndexMetadata)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<FullIndexMetadata>, "Reference-counted class "
"FullIndexMetadata" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 436); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 436
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("FullIndexMetadata"), (uint32_t)(sizeof(*this))); return (
nsrefcnt)count; } MozExternalRefCountType Release(void) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 436); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 436
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("FullIndexMetadata")); if (count == 0) { delete (this
); return 0; } return count; } using HasThreadSafeRefCnt = std
::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt
; public:
437
438 private:
439 ~FullIndexMetadata() = default;
440};
441
442using IndexTable = nsTHashMap<nsUint64HashKey, SafeRefPtr<FullIndexMetadata>>;
443
444// Can be instantiated either on the QuotaManager IO thread or on a
445// versionchange transaction thread. These threads can never race so this is
446// totally safe.
447struct FullObjectStoreMetadata {
448 ObjectStoreMetadata mCommonMetadata;
449 IndexTable mIndexes;
450
451 // The auto increment ids are touched on both the background thread and the
452 // transaction I/O thread, and they must be kept in sync, so we need a mutex
453 // to protect them.
454 struct AutoIncrementIds {
455 int64_t next;
456 int64_t committed;
457 };
458 DataMutex<AutoIncrementIds> mAutoIncrementIds;
459
460 FlippedOnce<false> mDeleted;
461
462 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FullObjectStoreMetadata)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<FullObjectStoreMetadata>, "Reference-counted class "
"FullObjectStoreMetadata" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 462); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 462
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("FullObjectStoreMetadata"), (uint32_t)(sizeof(*this))); return
(nsrefcnt)count; } MozExternalRefCountType Release(void) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 462); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 462
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("FullObjectStoreMetadata")); if (count == 0) { delete
(this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
;
463
464 bool HasLiveIndexes() const;
465
466 FullObjectStoreMetadata(ObjectStoreMetadata aCommonMetadata,
467 const AutoIncrementIds& aAutoIncrementIds)
468 : mCommonMetadata{std::move(aCommonMetadata)},
469 mAutoIncrementIds{AutoIncrementIds{aAutoIncrementIds},
470 "FullObjectStoreMetadata"} {}
471
472 private:
473 ~FullObjectStoreMetadata() = default;
474};
475
476using ObjectStoreTable =
477 nsTHashMap<nsUint64HashKey, SafeRefPtr<FullObjectStoreMetadata>>;
478
479static_assert(
480 std::is_same_v<IndexOrObjectStoreId,
481 std::remove_cv_t<std::remove_reference_t<
482 decltype(std::declval<const ObjectStoreGetParams&>()
483 .objectStoreId())>>>);
484static_assert(
485 std::is_same_v<
486 IndexOrObjectStoreId,
487 std::remove_cv_t<std::remove_reference_t<
488 decltype(std::declval<const IndexGetParams&>().objectStoreId())>>>);
489
490struct FullDatabaseMetadata final : AtomicSafeRefCounted<FullDatabaseMetadata> {
491 DatabaseMetadata mCommonMetadata;
492 nsCString mDatabaseId;
493 nsString mFilePath;
494 ObjectStoreTable mObjectStores;
495
496 IndexOrObjectStoreId mNextObjectStoreId = 0;
497 IndexOrObjectStoreId mNextIndexId = 0;
498
499 public:
500 explicit FullDatabaseMetadata(const DatabaseMetadata& aCommonMetadata)
501 : mCommonMetadata(aCommonMetadata) {
502 AssertIsOnBackgroundThread();
503 }
504
505 [[nodiscard]] SafeRefPtr<FullDatabaseMetadata> Duplicate() const;
506
507 MOZ_DECLARE_REFCOUNTED_TYPENAME(FullDatabaseMetadata)const char* typeName() const { return "FullDatabaseMetadata";
} size_t typeSize() const { return sizeof(*this); }
508};
509
510template <class Enumerable>
511auto MatchMetadataNameOrId(const Enumerable& aEnumerable,
512 IndexOrObjectStoreId aId,
513 Maybe<const nsAString&> aName = Nothing()) {
514 AssertIsOnBackgroundThread();
515 MOZ_ASSERT(aId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aId)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(aId))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("aId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId" ")"); do
{ MOZ_CrashSequence(__null, 515); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
516
517 const auto it = std::find_if(
518 aEnumerable.cbegin(), aEnumerable.cend(),
519 [aId, aName](const auto& entry) {
520 MOZ_ASSERT(entry.GetKey() != 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey() != 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey() != 0))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey() != 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 520);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey() != 0"
")"); do { MOZ_CrashSequence(__null, 520); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
521
522 const auto& value = entry.GetData();
523 MOZ_ASSERT(value)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(value)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(value))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("value", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 523); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value" ")");
do { MOZ_CrashSequence(__null, 523); __attribute__((nomerge)
) ::abort(); } while (false); } } while (false)
;
524
525 return !value->mDeleted &&
526 (aId == value->mCommonMetadata.id() ||
527 (aName && *aName == value->mCommonMetadata.name()));
528 });
529
530 return ToMaybeRef(it != aEnumerable.cend() ? it->GetData().unsafeGetRawPtr()
531 : nullptr);
532}
533
534/*******************************************************************************
535 * SQLite functions
536 ******************************************************************************/
537
538// WARNING: the hash function used for the database name must not change.
539// That's why this function exists separately from mozilla::HashString(), even
540// though it is (at the time of writing) equivalent. See bug 780408 and bug
541// 940315 for details.
542uint32_t HashName(const nsAString& aName) {
543 struct Helper {
544 static uint32_t RotateBitsLeft32(uint32_t aValue, uint8_t aBits) {
545 MOZ_ASSERT(aBits < 32)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aBits < 32)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aBits < 32))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aBits < 32",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 545); AnnotateMozCrashReason
("MOZ_ASSERT" "(" "aBits < 32" ")"); do { MOZ_CrashSequence
(__null, 545); __attribute__((nomerge)) ::abort(); } while (false
); } } while (false)
;
546 return (aValue << aBits) | (aValue >> (32 - aBits));
547 }
548 };
549
550 static const uint32_t kGoldenRatioU32 = 0x9e3779b9u;
551
552 return std::accumulate(aName.BeginReading(), aName.EndReading(), uint32_t(0),
553 [](uint32_t hash, char16_t ch) {
554 return kGoldenRatioU32 *
555 (Helper::RotateBitsLeft32(hash, 5) ^ ch);
556 });
557}
558
559nsresult ClampResultCode(nsresult aResultCode) {
560 if (NS_SUCCEEDED(aResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResultCode)), 1)
))
||
561 NS_ERROR_GET_MODULE(aResultCode) == NS_ERROR_MODULE_DOM_INDEXEDDB33) {
562 return aResultCode;
563 }
564
565 switch (aResultCode) {
566 case NS_ERROR_FILE_NO_DEVICE_SPACE:
567 return NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR;
568 case NS_ERROR_STORAGE_CONSTRAINT:
569 return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR;
570 default:
571#ifdef DEBUG1
572 nsPrintfCString message("Converting non-IndexedDB error code (0x%" PRIX32"X"
573 ") to "
574 "NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR",
575 static_cast<uint32_t>(aResultCode));
576 NS_WARNING(message.get())NS_DebugBreak(NS_DEBUG_WARNING, message.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 576)
;
577#else
578 ;
579#endif
580 }
581
582 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 582, "UnknownErr")
;
583 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
584}
585
586Result<nsCOMPtr<nsIFileURL>, nsresult> GetDatabaseFileURL(
587 nsIFile& aDatabaseFile, const int64_t aDirectoryLockId,
588 const Maybe<CipherKey>& aMaybeKey) {
589 MOZ_ASSERT(aDirectoryLockId >= -1)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectoryLockId >= -1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= -1)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= -1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 589);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1"
")"); do { MOZ_CrashSequence(__null, 589); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
590
591 QM_TRY_INSPECT(auto tryResult784 = (::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect
(!!(tryResult784.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")"
, tryResult784.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 595, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& protocolHandler = tryResult784
.inspect();
592 const auto& protocolHandler,auto tryResult784 = (::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect
(!!(tryResult784.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")"
, tryResult784.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 595, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& protocolHandler = tryResult784
.inspect();
593 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIProtocolHandler>,auto tryResult784 = (::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect
(!!(tryResult784.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")"
, tryResult784.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 595, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& protocolHandler = tryResult784
.inspect();
594 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult784 = (::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect
(!!(tryResult784.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")"
, tryResult784.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 595, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& protocolHandler = tryResult784
.inspect();
595 NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "file"))auto tryResult784 = (::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/network/protocol;1?name=" "file")); if ((__builtin_expect
(!!(tryResult784.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<nsIProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/network/protocol;1?name=\" \"file\")"
, tryResult784.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 595, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& protocolHandler = tryResult784
.inspect();
;
596
597 QM_TRY_INSPECT(const auto& fileHandler,auto tryResult785 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult785
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult785.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 600, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } const auto& fileHandler = tryResult785
.inspect();
598 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIFileProtocolHandler>,auto tryResult785 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult785
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult785.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 600, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } const auto& fileHandler = tryResult785
.inspect();
599 MOZ_SELECT_OVERLOAD(do_QueryInterface),auto tryResult785 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult785
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult785.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 600, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } const auto& fileHandler = tryResult785
.inspect();
600 protocolHandler))auto tryResult785 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult785
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult785.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 600, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } const auto& fileHandler = tryResult785
.inspect();
;
601
602 QM_TRY_INSPECT(const auto& mutator, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult786 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult786.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult786.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 604, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } const auto& mutator = tryResult786.inspect
();
603 nsCOMPtr<nsIURIMutator>, fileHandler,auto tryResult786 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult786.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult786.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 604, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } const auto& mutator = tryResult786.inspect
();
604 NewFileURIMutator, &aDatabaseFile))auto tryResult786 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult786.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult786.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 604, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } const auto& mutator = tryResult786.inspect
();
;
605
606 // aDirectoryLockId should only be -1 when we are called
607 // - from DatabaseFileManager::InitDirectory when the temporary storage
608 // hasn't been initialized yet. At that time, the in-memory objects (e.g.
609 // OriginInfo) are only being created so it doesn't make sense to tunnel
610 // quota information to QuotaVFS to get corresponding QuotaObject instances
611 // for SQLite files.
612 // - from DeleteDatabaseOp::LoadPreviousVersion, since this might require
613 // temporarily exceeding the quota limit before the database can be
614 // deleted.
615 const nsCString directoryLockIdClause =
616 "&directoryLockId="_ns + IntToCString(aDirectoryLockId);
617
618 const auto keyClause = [&aMaybeKey] {
619 nsAutoCString keyClause;
620 if (aMaybeKey) {
621 keyClause.AssignLiteral("&key=");
622 for (uint8_t byte : IndexedDBCipherStrategy::SerializeKey(*aMaybeKey)) {
623 keyClause.AppendPrintf("%02x", byte);
624 }
625 }
626 return keyClause;
627 }();
628
629 QM_TRY_UNWRAP(auto result, ([&mutator, &directoryLockIdClause, &keyClause] {auto tryResult787 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult787.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult787.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 638, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); } auto result = tryResult787.unwrap();
630 nsCOMPtr<nsIFileURL> result;auto tryResult787 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult787.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult787.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 638, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); } auto result = tryResult787.unwrap();
631 nsresult rv = NS_MutateURI(mutator)auto tryResult787 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult787.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult787.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 638, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); } auto result = tryResult787.unwrap();
632 .SetQuery("cache=private"_ns +auto tryResult787 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult787.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult787.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 638, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); } auto result = tryResult787.unwrap();
633 directoryLockIdClause + keyClause)auto tryResult787 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult787.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult787.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 638, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); } auto result = tryResult787.unwrap();
634 .Finalize(result);auto tryResult787 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult787.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult787.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 638, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); } auto result = tryResult787.unwrap();
635 return NS_SUCCEEDED(rv)auto tryResult787 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult787.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult787.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 638, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); } auto result = tryResult787.unwrap();
636 ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result}auto tryResult787 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult787.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult787.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 638, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); } auto result = tryResult787.unwrap();
637 : Err(rv);auto tryResult787 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult787.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult787.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 638, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); } auto result = tryResult787.unwrap();
638 }()))auto tryResult787 = (([&mutator, &directoryLockIdClause
, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult
rv = NS_MutateURI(mutator) .SetQuery("cache=private"_ns + directoryLockIdClause
+ keyClause) .Finalize(result); return ((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL
>, nsresult>{result} : Err(rv); }())); if ((__builtin_expect
(!!(tryResult787.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&mutator, &directoryLockIdClause, &keyClause] { nsCOMPtr<nsIFileURL> result; nsresult rv = NS_MutateURI(mutator) .SetQuery(\"cache=private\"_ns + directoryLockIdClause + keyClause) .Finalize(result); return ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result} : Err(rv); }())"
, tryResult787.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 638, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); } auto result = tryResult787.unwrap();
;
639
640 return result;
641}
642
643nsLiteralCString GetDefaultSynchronousMode() {
644 return IndexedDatabaseManager::FullSynchronous() ? "FULL"_ns : "NORMAL"_ns;
645}
646
647nsresult SetDefaultPragmas(mozIStorageConnection& aConnection) {
648 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 648);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 648); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
649
650 static constexpr auto kBuiltInPragmas =
651 // We use foreign keys in DEBUG builds only because there is a performance
652 // cost to using them.
653 "PRAGMA foreign_keys = "
654#ifdef DEBUG1
655 "ON"
656#else
657 "OFF"
658#endif
659 ";"
660
661 // The "INSERT OR REPLACE" statement doesn't fire the update trigger,
662 // instead it fires only the insert trigger. This confuses the update
663 // refcount function. This behavior changes with enabled recursive
664 // triggers, so the statement fires the delete trigger first and then the
665 // insert trigger.
666 "PRAGMA recursive_triggers = ON;"
667
668 // We aggressively truncate the database file when idle so don't bother
669 // overwriting the WAL with 0 during active periods.
670 "PRAGMA secure_delete = OFF;"_ns;
671
672 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))){auto tryResult788 = (ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas
))); static_assert(std::is_empty_v<typename decltype(tryResult788
)::ok_type>); if ((__builtin_expect(!!(tryResult788.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))"
, tryResult788.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 672, mozilla::dom::quota::Severity::Error); return tryResult788
.propagateErr(); }}
;
673
674 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(nsAutoCString{{auto tryResult789 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString
{ "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns
}))); static_assert(std::is_empty_v<typename decltype(tryResult789
)::ok_type>); if ((__builtin_expect(!!(tryResult789.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))"
, tryResult789.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 675, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); }}
675 "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns}))){auto tryResult789 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString
{ "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns
}))); static_assert(std::is_empty_v<typename decltype(tryResult789
)::ok_type>); if ((__builtin_expect(!!(tryResult789.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))"
, tryResult789.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 675, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); }}
;
676
677#ifndef IDB_MOBILE
678 if (kSQLiteGrowthIncrement) {
679 // This is just an optimization so ignore the failure if the disk is
680 // currently too full.
681 QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult790 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult790)::ok_type>); if ((__builtin_expect(!!(tryResult790
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 688, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult790.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); }}
682 // Expression.{auto tryResult790 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult790)::ok_type>); if ((__builtin_expect(!!(tryResult790
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 688, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult790.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); }}
683 MOZ_TO_RESULT({auto tryResult790 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult790)::ok_type>); if ((__builtin_expect(!!(tryResult790
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 688, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult790.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); }}
684 aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns)),{auto tryResult790 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult790)::ok_type>); if ((__builtin_expect(!!(tryResult790
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 688, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult790.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); }}
685 // Predicate.{auto tryResult790 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult790)::ok_type>); if ((__builtin_expect(!!(tryResult790
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 688, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult790.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); }}
686 IsSpecificError<NS_ERROR_FILE_TOO_BIG>,{auto tryResult790 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult790)::ok_type>); if ((__builtin_expect(!!(tryResult790
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 688, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult790.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); }}
687 // Fallback.{auto tryResult790 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult790)::ok_type>); if ((__builtin_expect(!!(tryResult790
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 688, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult790.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); }}
688 ErrToDefaultOk<>)){auto tryResult790 = (mozilla::dom::quota::OrElseIf( (ToResult
(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns
))), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::
HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult790)::ok_type>); if ((__builtin_expect(!!(tryResult790
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 688, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult790.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 688, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); }}
;
689 }
690#endif // IDB_MOBILE
691
692 return NS_OK;
693}
694
695nsresult SetJournalMode(mozIStorageConnection& aConnection) {
696 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 696);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 696); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
697
698 // Try enabling WAL mode. This can fail in various circumstances so we have to
699 // check the results here.
700 constexpr auto journalModeQueryStart = "PRAGMA journal_mode = "_ns;
701 constexpr auto journalModeWAL = "wal"_ns;
702
703 QM_TRY_INSPECT(const auto& stmt,auto tryResult791 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult791.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult791.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 705, mozilla::dom::quota::Severity::Error); return tryResult791
.propagateErr(); } const auto& stmt = tryResult791.inspect
();
704 CreateAndExecuteSingleStepStatement(auto tryResult791 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult791.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult791.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 705, mozilla::dom::quota::Severity::Error); return tryResult791
.propagateErr(); } const auto& stmt = tryResult791.inspect
();
705 aConnection, journalModeQueryStart + journalModeWAL))auto tryResult791 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult791.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult791.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 705, mozilla::dom::quota::Severity::Error); return tryResult791
.propagateErr(); } const auto& stmt = tryResult791.inspect
();
;
706
707 QM_TRY_INSPECT(auto tryResult792 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult792.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult792.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 709, mozilla::dom::quota::Severity::Error); return tryResult792
.propagateErr(); } const auto& journalMode = tryResult792
.inspect();
708 const auto& journalMode,auto tryResult792 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult792.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult792.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 709, mozilla::dom::quota::Severity::Error); return tryResult792
.propagateErr(); } const auto& journalMode = tryResult792
.inspect();
709 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt, GetUTF8String, 0))auto tryResult792 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult792.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult792.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 709, mozilla::dom::quota::Severity::Error); return tryResult792
.propagateErr(); } const auto& journalMode = tryResult792
.inspect();
;
710
711 if (journalMode.Equals(journalModeWAL)) {
712 // WAL mode successfully enabled. Maybe set limits on its size here.
713 if (kMaxWALPages >= 0) {
714 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult793 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns
+ IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v
<typename decltype(tryResult793)::ok_type>); if ((__builtin_expect
(!!(tryResult793.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))"
, tryResult793.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 715, mozilla::dom::quota::Severity::Error); return tryResult793
.propagateErr(); }}
715 "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages)))){auto tryResult793 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns
+ IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v
<typename decltype(tryResult793)::ok_type>); if ((__builtin_expect
(!!(tryResult793.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))"
, tryResult793.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 715, mozilla::dom::quota::Severity::Error); return tryResult793
.propagateErr(); }}
;
716 }
717 } else {
718 NS_WARNING("Failed to set WAL mode, falling back to normal journal mode.")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set WAL mode, falling back to normal journal mode."
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 718)
;
719#ifdef IDB_MOBILE
720 QM_TRY(MOZ_TO_RESULT({auto tryResult794 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart
+ "truncate"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult794)::ok_type>); if ((__builtin_expect(
!!(tryResult794.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))"
, tryResult794.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 721, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); }}
721 aConnection.ExecuteSimpleSQL(journalModeQueryStart + "truncate"_ns))){auto tryResult794 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart
+ "truncate"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult794)::ok_type>); if ((__builtin_expect(
!!(tryResult794.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))"
, tryResult794.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 721, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); }}
;
722#endif
723 }
724
725 return NS_OK;
726}
727
728Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> OpenDatabase(
729 mozIStorageService& aStorageService, nsIFileURL& aFileURL,
730 const uint32_t aTelemetryId = 0) {
731 const nsAutoCString telemetryFilename =
732 aTelemetryId ? "indexedDB-"_ns + IntToCString(aTelemetryId) +
733 NS_ConvertUTF16toUTF8(kSQLiteSuffix)
734 : nsAutoCString();
735
736 QM_TRY_UNWRAP(auto connection,auto tryResult795 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult795
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)"
, tryResult795.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 740, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
737 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult795 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult795
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)"
, tryResult795.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 740, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
738 nsCOMPtr<mozIStorageConnection>, aStorageService,auto tryResult795 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult795
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)"
, tryResult795.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 740, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
739 OpenDatabaseWithFileURL, &aFileURL, telemetryFilename,auto tryResult795 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult795
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)"
, tryResult795.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 740, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
740 mozIStorageService::CONNECTION_INTERRUPTIBLE))auto tryResult795 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult795
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageConnection>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService::CONNECTION_INTERRUPTIBLE)"
, tryResult795.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 740, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
;
741
742 return WrapMovingNotNull(std::move(connection));
743}
744
745Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
746OpenDatabaseAndHandleBusy(mozIStorageService& aStorageService,
747 nsIFileURL& aFileURL,
748 const uint32_t aTelemetryId = 0) {
749 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 749);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 749); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
750 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 750);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 750); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
751
752 using ConnectionType = Maybe<MovingNotNull<nsCOMPtr<mozIStorageConnection>>>;
753
754 QM_TRY_UNWRAP(auto connection,auto tryResult796 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 764, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } auto connection = tryResult796.unwrap();
755 QM_OR_ELSE_WARN_IF(auto tryResult796 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 764, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } auto connection = tryResult796.unwrap();
756 // Expressionauto tryResult796 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 764, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } auto connection = tryResult796.unwrap();
757 OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult796 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 764, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } auto connection = tryResult796.unwrap();
758 .map([](auto connection) -> ConnectionType {auto tryResult796 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 764, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } auto connection = tryResult796.unwrap();
759 return Some(std::move(connection));auto tryResult796 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 764, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } auto connection = tryResult796.unwrap();
760 }),auto tryResult796 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 764, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } auto connection = tryResult796.unwrap();
761 // Predicate.auto tryResult796 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 764, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } auto connection = tryResult796.unwrap();
762 IsSpecificError<NS_ERROR_STORAGE_BUSY>,auto tryResult796 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 764, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } auto connection = tryResult796.unwrap();
763 // Fallback.auto tryResult796 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 764, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } auto connection = tryResult796.unwrap();
764 ErrToDefaultOk<ConnectionType>))auto tryResult796 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = IsSpecificError
<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::
HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 764, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 764, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } auto connection = tryResult796.unwrap();
;
765
766 if (connection.isNothing()) {
767#ifdef DEBUG1
768 {
769 nsCString path;
770 MOZ_ALWAYS_SUCCEEDS(aFileURL.GetFileName(path))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aFileURL.GetFileName(path))), 1)))), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aFileURL.GetFileName(path))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 770);
AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFileURL.GetFileName(path))"
")"); do { MOZ_CrashSequence(__null, 770); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
771
772 nsPrintfCString message(
773 "Received NS_ERROR_STORAGE_BUSY when attempting to open database "
774 "'%s', retrying for up to 10 seconds",
775 path.get());
776 NS_WARNING(message.get())NS_DebugBreak(NS_DEBUG_WARNING, message.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 776)
;
777 }
778#endif
779
780 // Another thread must be checkpointing the WAL. Wait up to 10 seconds for
781 // that to complete.
782 const TimeStamp start = TimeStamp::NowLoRes();
783
784 do {
785 PR_Sleep(PR_MillisecondsToInterval(100));
786
787 QM_TRY_UNWRAP(connection,auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
788 QM_OR_ELSE_WARN_IF(auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
789 // Expression.auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
790 OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
791 .map([](auto connection) -> ConnectionType {auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
792 return Some(std::move(connection));auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
793 }),auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
794 // Predicate.auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
795 ([&start](nsresult aValue) {auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
796 return aValue == NS_ERROR_STORAGE_BUSY &&auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
797 TimeStamp::NowLoRes() - start <=auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
798 TimeDuration::FromSeconds(10);auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
799 }),auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
800 // Fallback.auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
801 ErrToDefaultOk<ConnectionType>))auto tryResult797 = (mozilla::dom::quota::OrElseIf( (OpenDatabase
(aStorageService, aFileURL, aTelemetryId) .map([](auto connection
) -> ConnectionType { return Some(std::move(connection)); }
)), [&](const auto& firstRes) { bool res = ([&start
](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY &&
TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds
(10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult797
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 801, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult797.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 801, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } connection = tryResult797.unwrap();
;
802 } while (connection.isNothing());
803 }
804
805 return connection.extract();
806}
807
808// Returns true if a given nsIFile exists and is a directory. Returns false if
809// it doesn't exist. Returns an error if it exists, but is not a directory, or
810// any other error occurs.
811Result<bool, nsresult> ExistsAsDirectory(nsIFile& aDirectory) {
812 QM_TRY_INSPECT(const bool& exists,auto tryResult798 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult798.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)"
, tryResult798.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 813, mozilla::dom::quota::Severity::Error); return tryResult798
.propagateErr(); } const bool& exists = tryResult798.inspect
();
813 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult798 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult798.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)"
, tryResult798.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 813, mozilla::dom::quota::Severity::Error); return tryResult798
.propagateErr(); } const bool& exists = tryResult798.inspect
();
;
814
815 if (exists) {
816 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult799 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult799.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)"
, tryResult799.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 817, mozilla::dom::quota::Severity::Error); return tryResult799
.propagateErr(); } const bool& isDirectory = tryResult799
.inspect();
817 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult799 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult799.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)"
, tryResult799.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 817, mozilla::dom::quota::Severity::Error); return tryResult799
.propagateErr(); } const bool& isDirectory = tryResult799
.inspect();
;
818
819 QM_TRY(OkIf(isDirectory), Err(NS_ERROR_FAILURE)){auto tryResult800 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult800)::ok_type>); if
((__builtin_expect(!!(tryResult800.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult800.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 819, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Err(NS_ERROR_FAILURE)); }}
;
820 }
821
822 return exists;
823}
824
825constexpr nsresult mapNoDeviceSpaceError(nsresult aRv) {
826 if (aRv == NS_ERROR_FILE_NO_DEVICE_SPACE) {
827 // mozstorage translates SQLITE_FULL to
828 // NS_ERROR_FILE_NO_DEVICE_SPACE, which we know better as
829 // NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR.
830 return NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR;
831 }
832 return aRv;
833}
834
835Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
836CreateStorageConnection(nsIFile& aDBFile, nsIFile& aFMDirectory,
837 const nsAString& aName, const nsACString& aOrigin,
838 const int64_t aDirectoryLockId,
839 const uint32_t aTelemetryId,
840 const Maybe<CipherKey>& aMaybeKey) {
841 AssertIsOnIOThread();
842 MOZ_ASSERT(aDirectoryLockId >= -1)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectoryLockId >= -1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= -1)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= -1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 842);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1"
")"); do { MOZ_CrashSequence(__null, 842); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
843
844 AUTO_PROFILER_LABEL("CreateStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject844( "CreateStorageConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
845
846 QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult801 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult801.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)"
, tryResult801.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 847, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } const auto& dbFileUrl = tryResult801.inspect
();
847 GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey))auto tryResult801 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult801.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)"
, tryResult801.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 847, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } const auto& dbFileUrl = tryResult801.inspect
();
;
848
849 QM_TRY_INSPECT(const auto& storageService,auto tryResult802 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult802.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")"
, tryResult802.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 852, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } const auto& storageService = tryResult802
.inspect();
850 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult802 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult802.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")"
, tryResult802.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 852, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } const auto& storageService = tryResult802
.inspect();
851 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult802 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult802.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")"
, tryResult802.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 852, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } const auto& storageService = tryResult802
.inspect();
852 MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult802 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult802.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")"
, tryResult802.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 852, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } const auto& storageService = tryResult802
.inspect();
;
853
854 QM_TRY_UNWRAP(auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
855 auto connection,auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
856 QM_OR_ELSE_WARN_IF(auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
857 // Expression.auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
858 OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
859 .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> {auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
860 return std::move(connection).unwrapBasePtr();auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
861 }),auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
862 // Predicate.auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
863 ([&aName](nsresult aValue) {auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
864 // If we're just opening the database during origin initialization,auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
865 // then we don't want to erase any files. The failure here will failauto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
866 // origin initialization too.auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
867 return IsDatabaseCorruptionError(aValue) && !aName.IsVoid();auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
868 }),auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
869 // Fallback.auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
870 ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>))auto tryResult803 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy
(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection
) -> nsCOMPtr<mozIStorageConnection> { return std::move
(connection).unwrapBasePtr(); })), [&](const auto& firstRes
) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError
(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom
::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult803.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 870, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult803.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); } auto connection = tryResult803.unwrap();
;
871
872 if (!connection) {
873 // XXX Shouldn't we also update quota usage?
874
875 // Nuke the database file.
876 QM_TRY(MOZ_TO_RESULT(aDBFile.Remove(false))){auto tryResult804 = (ToResult(aDBFile.Remove(false))); static_assert
(std::is_empty_v<typename decltype(tryResult804)::ok_type>
); if ((__builtin_expect(!!(tryResult804.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aDBFile.Remove(false))", tryResult804
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 876, mozilla::dom::quota::Severity::Error); return tryResult804
.propagateErr(); }}
;
877 QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult805 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect
(!!(tryResult805.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(aFMDirectory)", tryResult805.inspectErr()
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 878, mozilla
::dom::quota::Severity::Error); return tryResult805.propagateErr
(); } const bool& existsAsDirectory = tryResult805.inspect
();
878 ExistsAsDirectory(aFMDirectory))auto tryResult805 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect
(!!(tryResult805.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(aFMDirectory)", tryResult805.inspectErr()
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 878, mozilla
::dom::quota::Severity::Error); return tryResult805.propagateErr
(); } const bool& existsAsDirectory = tryResult805.inspect
();
;
879
880 if (existsAsDirectory) {
881 QM_TRY(MOZ_TO_RESULT(aFMDirectory.Remove(true))){auto tryResult806 = (ToResult(aFMDirectory.Remove(true))); static_assert
(std::is_empty_v<typename decltype(tryResult806)::ok_type>
); if ((__builtin_expect(!!(tryResult806.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aFMDirectory.Remove(true))"
, tryResult806.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 881, mozilla::dom::quota::Severity::Error); return tryResult806
.propagateErr(); }}
;
882 }
883
884 QM_TRY_UNWRAP(connection, OpenDatabaseAndHandleBusy(auto tryResult807 = (OpenDatabaseAndHandleBusy( *storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult807
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)"
, tryResult807.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 885, mozilla::dom::quota::Severity::Error); return tryResult807
.propagateErr(); } connection = tryResult807.unwrap();
885 *storageService, *dbFileUrl, aTelemetryId))auto tryResult807 = (OpenDatabaseAndHandleBusy( *storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult807
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)"
, tryResult807.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 885, mozilla::dom::quota::Severity::Error); return tryResult807
.propagateErr(); } connection = tryResult807.unwrap();
;
886 }
887
888 QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult808 = (ToResult(SetDefaultPragmas(*connection)
)); static_assert(std::is_empty_v<typename decltype(tryResult808
)::ok_type>); if ((__builtin_expect(!!(tryResult808.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))"
, tryResult808.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 888, mozilla::dom::quota::Severity::Error); return tryResult808
.propagateErr(); }}
;
889 QM_TRY(MOZ_TO_RESULT(connection->EnableModule("filesystem"_ns))){auto tryResult809 = (ToResult(connection->EnableModule("filesystem"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult809
)::ok_type>); if ((__builtin_expect(!!(tryResult809.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->EnableModule(\"filesystem\"_ns))"
, tryResult809.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 889, mozilla::dom::quota::Severity::Error); return tryResult809
.propagateErr(); }}
;
890
891 // Check to make sure that the database schema is correct.
892 QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult810 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult810
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 893, mozilla::dom::quota::Severity::Error); return tryResult810
.propagateErr(); } const int32_t& schemaVersion = tryResult810
.inspect();
893 MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion))auto tryResult810 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult810
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryResult810.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 893, mozilla::dom::quota::Severity::Error); return tryResult810
.propagateErr(); } const int32_t& schemaVersion = tryResult810
.inspect();
;
894
895 // Unknown schema will fail origin initialization too.
896 QM_TRY(OkIf(schemaVersion || !aName.IsVoid()),{auto tryResult811 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult811
)::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr(
)), 0))) { auto tryTempError = tryResult811.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 899, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 898, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 898);
} while (0); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
897 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult811 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult811
)::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr(
)), 0))) { auto tryTempError = tryResult811.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 899, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 898, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 898);
} while (0); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
898 IDB_WARNING("Unable to open IndexedDB database, schema is not set!");{auto tryResult811 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult811
)::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr(
)), 0))) { auto tryTempError = tryResult811.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 899, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 898, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 898);
} while (0); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
899 }){auto tryResult811 = (OkIf(schemaVersion || !aName.IsVoid()))
; static_assert(std::is_empty_v<typename decltype(tryResult811
)::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr(
)), 0))) { auto tryTempError = tryResult811.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 899, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 898, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 898);
} while (0); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "OkIf(schemaVersion || !aName.IsVoid())"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
900
901 QM_TRY({auto tryResult812 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.isErr(
)), 0))) { auto tryTempError = tryResult812.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 905, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 904, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 904);
} while (0); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
902 OkIf(schemaVersion <= kSQLiteSchemaVersion),{auto tryResult812 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.isErr(
)), 0))) { auto tryTempError = tryResult812.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 905, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 904, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 904);
} while (0); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
903 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult812 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.isErr(
)), 0))) { auto tryTempError = tryResult812.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 905, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 904, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 904);
} while (0); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
904 IDB_WARNING("Unable to open IndexedDB database, schema is too high!");{auto tryResult812 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.isErr(
)), 0))) { auto tryTempError = tryResult812.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 905, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 904, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 904);
} while (0); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
905 }){auto tryResult812 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.isErr(
)), 0))) { auto tryTempError = tryResult812.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 905, mozilla::dom::quota::Severity::Error); [](const auto&
) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 904, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 904);
} while (0); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
906
907 bool journalModeSet = false;
908
909 if (schemaVersion != kSQLiteSchemaVersion) {
910 const bool newDatabase = !schemaVersion;
911
912 if (newDatabase) {
913 // Set the page size first.
914 const auto sqlitePageSizeOverride =
915 aMaybeKey ? 8192 : kSQLitePageSizeOverride;
916 if (sqlitePageSizeOverride) {
917 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult813 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))"
, tryResult813.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 918, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
918 "PRAGMA page_size = %" PRIu32 ";", sqlitePageSizeOverride)))){auto tryResult813 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))"
, tryResult813.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 918, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
;
919 }
920
921 // We have to set the auto_vacuum mode before opening a transaction.
922 QM_TRY((MOZ_TO_RESULT_INVOKE_MEMBER({auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
923 connection, ExecuteSimpleSQL,{auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
924#ifdef IDB_MOBILE{auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
925 // Turn on full auto_vacuum mode to reclaim disk space on{auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
926 // mobile devices (at the cost of some COMMIT speed).{auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
927 "PRAGMA auto_vacuum = FULL;"_ns{auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
928#else{auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
929 // Turn on incremental auto_vacuum mode on desktop builds.{auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
930 "PRAGMA auto_vacuum = INCREMENTAL;"_ns{auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
931#endif{auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
932 ){auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
933 .mapErr(mapNoDeviceSpaceError))){auto tryResult814 = ((::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::ExecuteSimpleSQL,ifdef IDB_MOBILE "PRAGMA auto_vacuum = FULL;"_ns
else "PRAGMA auto_vacuum = INCREMENTAL;"_ns endif) .mapErr(mapNoDeviceSpaceError
))); static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("(::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::ExecuteSimpleSQL,ifdef IDB_MOBILE \"PRAGMA auto_vacuum = FULL;\"_nselse \"PRAGMA auto_vacuum = INCREMENTAL;\"_nsendif) .mapErr(mapNoDeviceSpaceError))"
, tryResult814.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 933, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
;
934
935 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult815 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult815
)::ok_type>); if ((__builtin_expect(!!(tryResult815.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult815.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 935, mozilla::dom::quota::Severity::Error); return tryResult815
.propagateErr(); }}
;
936
937 journalModeSet = true;
938 } else {
939#ifdef DEBUG1
940 // Disable foreign key support while upgrading. This has to be done before
941 // starting a transaction.
942 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 943);
AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { MOZ_CrashSequence(__null, 943); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
943 connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 943);
AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { MOZ_CrashSequence(__null, 943); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
944#endif
945 }
946
947 bool vacuumNeeded = false;
948
949 mozStorageTransaction transaction(
950 connection.get(), false, mozIStorageConnection::TRANSACTION_IMMEDIATE);
951
952 QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult816 = (ToResult(transaction.Start())); static_assert
(std::is_empty_v<typename decltype(tryResult816)::ok_type>
); if ((__builtin_expect(!!(tryResult816.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(transaction.Start())", tryResult816
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 952, mozilla::dom::quota::Severity::Error); return tryResult816
.propagateErr(); }}
;
953
954 if (newDatabase) {
955 QM_TRY(MOZ_TO_RESULT(CreateTables(*connection))){auto tryResult817 = (ToResult(CreateTables(*connection))); static_assert
(std::is_empty_v<typename decltype(tryResult817)::ok_type>
); if ((__builtin_expect(!!(tryResult817.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(CreateTables(*connection))"
, tryResult817.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 955, mozilla::dom::quota::Severity::Error); return tryResult817
.propagateErr(); }}
;
956
957#ifdef DEBUG1
958 {
959 QM_TRY_INSPECT(auto tryResult818 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult818
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult818.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 962, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 962); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 962); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult818.inspect();
960 const int32_t& schemaVersion,auto tryResult818 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult818
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult818.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 962, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 962); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 962); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult818.inspect();
961 MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion),auto tryResult818 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult818
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult818.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 962, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 962); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 962); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult818.inspect();
962 QM_ASSERT_UNREACHABLE)auto tryResult818 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult818
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult818.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 962, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 962); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 962); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult818.inspect();
;
963 MOZ_ASSERT(schemaVersion == kSQLiteSchemaVersion)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(schemaVersion == kSQLiteSchemaVersion)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(schemaVersion == kSQLiteSchemaVersion))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("schemaVersion == kSQLiteSchemaVersion"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 963);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "schemaVersion == kSQLiteSchemaVersion"
")"); do { MOZ_CrashSequence(__null, 963); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
964 }
965#endif
966
967 // The parameter names are not used, parameters are bound by index only
968 // locally in the same function.
969 QM_TRY_INSPECT(auto tryResult819 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult819.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 974, mozilla::dom::quota::Severity::Error); return tryResult819
.propagateErr(); } const auto& stmt = tryResult819.inspect
();
970 const auto& stmt,auto tryResult819 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult819.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 974, mozilla::dom::quota::Severity::Error); return tryResult819
.propagateErr(); } const auto& stmt = tryResult819.inspect
();
971 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult819 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult819.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 974, mozilla::dom::quota::Severity::Error); return tryResult819
.propagateErr(); } const auto& stmt = tryResult819.inspect
();
972 nsCOMPtr<mozIStorageStatement>, connection, CreateStatement,auto tryResult819 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult819.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 974, mozilla::dom::quota::Severity::Error); return tryResult819
.propagateErr(); } const auto& stmt = tryResult819.inspect
();
973 "INSERT INTO database (name, origin) "auto tryResult819 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult819.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 974, mozilla::dom::quota::Severity::Error); return tryResult819
.propagateErr(); } const auto& stmt = tryResult819.inspect
();
974 "VALUES (:name, :origin)"_ns))auto tryResult819 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "INSERT INTO database (name, origin) " "VALUES (:name, :origin)"_ns
)); if ((__builtin_expect(!!(tryResult819.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"INSERT INTO database (name, origin) \" \"VALUES (:name, :origin)\"_ns)"
, tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 974, mozilla::dom::quota::Severity::Error); return tryResult819
.propagateErr(); } const auto& stmt = tryResult819.inspect
();
;
975
976 QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, aName))){auto tryResult820 = (ToResult(stmt->BindStringByIndex(0, aName
))); static_assert(std::is_empty_v<typename decltype(tryResult820
)::ok_type>); if ((__builtin_expect(!!(tryResult820.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, aName))"
, tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 976, mozilla::dom::quota::Severity::Error); return tryResult820
.propagateErr(); }}
;
977 QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByIndex(1, aOrigin))){auto tryResult821 = (ToResult(stmt->BindUTF8StringByIndex
(1, aOrigin))); static_assert(std::is_empty_v<typename decltype
(tryResult821)::ok_type>); if ((__builtin_expect(!!(tryResult821
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindUTF8StringByIndex(1, aOrigin))"
, tryResult821.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 977, mozilla::dom::quota::Severity::Error); return tryResult821
.propagateErr(); }}
;
978 QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult822 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult822)::ok_type>
); if ((__builtin_expect(!!(tryResult822.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt->Execute())", tryResult822
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 978, mozilla::dom::quota::Severity::Error); return tryResult822
.propagateErr(); }}
;
979 } else {
980 QM_TRY_UNWRAP(vacuumNeeded, MaybeUpgradeSchema(*connection, schemaVersion,auto tryResult823 = (MaybeUpgradeSchema(*connection, schemaVersion
, aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult823
.isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)"
, tryResult823.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 981, mozilla::dom::quota::Severity::Error); return tryResult823
.propagateErr(); } vacuumNeeded = tryResult823.unwrap();
981 aFMDirectory, aOrigin))auto tryResult823 = (MaybeUpgradeSchema(*connection, schemaVersion
, aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult823
.isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)"
, tryResult823.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 981, mozilla::dom::quota::Severity::Error); return tryResult823
.propagateErr(); } vacuumNeeded = tryResult823.unwrap();
;
982 }
983
984 QM_TRY(MOZ_TO_RESULT_INVOKE_MEMBER(transaction, Commit){auto tryResult824 = (::mozilla::ToResultInvokeMember( (transaction
), &::mozilla::detail::DerefedType<decltype(transaction
)>::Commit) .mapErr(mapNoDeviceSpaceError)); static_assert
(std::is_empty_v<typename decltype(tryResult824)::ok_type>
); if ((__builtin_expect(!!(tryResult824.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit) .mapErr(mapNoDeviceSpaceError)"
, tryResult824.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 985, mozilla::dom::quota::Severity::Error); return tryResult824
.propagateErr(); }}
985 .mapErr(mapNoDeviceSpaceError)){auto tryResult824 = (::mozilla::ToResultInvokeMember( (transaction
), &::mozilla::detail::DerefedType<decltype(transaction
)>::Commit) .mapErr(mapNoDeviceSpaceError)); static_assert
(std::is_empty_v<typename decltype(tryResult824)::ok_type>
); if ((__builtin_expect(!!(tryResult824.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit) .mapErr(mapNoDeviceSpaceError)"
, tryResult824.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 985, mozilla::dom::quota::Severity::Error); return tryResult824
.propagateErr(); }}
;
986
987#ifdef DEBUG1
988 if (!newDatabase) {
989 // Re-enable foreign key support after doing a foreign key check.
990 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult825 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult825.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult825.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 994); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult825.inspect();
991 CreateAndExecuteSingleStepStatement<auto tryResult825 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult825.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult825.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 994); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult825.inspect();
992 SingleStepResult::ReturnNullIfNoResult>(auto tryResult825 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult825.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult825.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 994); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult825.inspect();
993 *connection, "PRAGMA foreign_key_check;"_ns),auto tryResult825 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult825.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult825.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 994); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult825.inspect();
994 QM_ASSERT_UNREACHABLE)auto tryResult825 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult825.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult825.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 994); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 994); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult825.inspect();
;
995
996 MOZ_ASSERT(!foreignKeyError, "Database has inconsisistent foreign keys!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!foreignKeyError)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!foreignKeyError))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!foreignKeyError"
" (" "Database has inconsisistent foreign keys!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 996); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError"
") (" "Database has inconsisistent foreign keys!" ")"); do {
MOZ_CrashSequence(__null, 996); __attribute__((nomerge)) ::abort
(); } while (false); } } while (false)
;
997
998 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 999);
AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { MOZ_CrashSequence(__null, 999); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
999 connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 999);
AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { MOZ_CrashSequence(__null, 999); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
1000 }
1001#endif
1002
1003 if (kSQLitePageSizeOverride && !newDatabase) {
1004 QM_TRY_INSPECT(const auto& stmt,auto tryResult826 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult826
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1006, mozilla::dom::quota::Severity::Error); return tryResult826
.propagateErr(); } const auto& stmt = tryResult826.inspect
();
1005 CreateAndExecuteSingleStepStatement(auto tryResult826 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult826
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1006, mozilla::dom::quota::Severity::Error); return tryResult826
.propagateErr(); } const auto& stmt = tryResult826.inspect
();
1006 *connection, "PRAGMA page_size;"_ns))auto tryResult826 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult826
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1006, mozilla::dom::quota::Severity::Error); return tryResult826
.propagateErr(); } const auto& stmt = tryResult826.inspect
();
;
1007
1008 QM_TRY_INSPECT(const int32_t& pageSize,auto tryResult827 = (::mozilla::ToResultInvokeMember( (*stmt)
, &::mozilla::detail::DerefedType<decltype(*stmt)>::
GetInt32, 0)); if ((__builtin_expect(!!(tryResult827.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1009, mozilla::dom::quota::Severity::Error); return tryResult827
.propagateErr(); } const int32_t& pageSize = tryResult827
.inspect();
1009 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult827 = (::mozilla::ToResultInvokeMember( (*stmt)
, &::mozilla::detail::DerefedType<decltype(*stmt)>::
GetInt32, 0)); if ((__builtin_expect(!!(tryResult827.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1009, mozilla::dom::quota::Severity::Error); return tryResult827
.propagateErr(); } const int32_t& pageSize = tryResult827
.inspect();
;
1010 MOZ_ASSERT(pageSize >= 512 && pageSize <= 65536)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(pageSize >= 512 && pageSize <= 65536)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(pageSize >= 512 && pageSize <= 65536))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("pageSize >= 512 && pageSize <= 65536"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1010)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "pageSize >= 512 && pageSize <= 65536"
")"); do { MOZ_CrashSequence(__null, 1010); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1011
1012 if (kSQLitePageSizeOverride != uint32_t(pageSize)) {
1013 // We must not be in WAL journal mode to change the page size.
1014 QM_TRY(MOZ_TO_RESULT({auto tryResult828 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult828)::ok_type>); if ((__builtin_expect
(!!(tryResult828.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))"
, tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1015, mozilla::dom::quota::Severity::Error); return tryResult828
.propagateErr(); }}
1015 connection->ExecuteSimpleSQL("PRAGMA journal_mode = DELETE;"_ns))){auto tryResult828 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult828)::ok_type>); if ((__builtin_expect
(!!(tryResult828.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))"
, tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1015, mozilla::dom::quota::Severity::Error); return tryResult828
.propagateErr(); }}
;
1016
1017 QM_TRY_INSPECT(const auto& stmt,auto tryResult829 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult829
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult829.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1019, mozilla::dom::quota::Severity::Error); return tryResult829
.propagateErr(); } const auto& stmt = tryResult829.inspect
();
1018 CreateAndExecuteSingleStepStatement(auto tryResult829 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult829
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult829.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1019, mozilla::dom::quota::Severity::Error); return tryResult829
.propagateErr(); } const auto& stmt = tryResult829.inspect
();
1019 *connection, "PRAGMA journal_mode;"_ns))auto tryResult829 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult829
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult829.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1019, mozilla::dom::quota::Severity::Error); return tryResult829
.propagateErr(); } const auto& stmt = tryResult829.inspect
();
;
1020
1021 QM_TRY_INSPECT(const auto& journalMode,auto tryResult830 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult830.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1023, mozilla::dom::quota::Severity::Error); return tryResult830
.propagateErr(); } const auto& journalMode = tryResult830
.inspect();
1022 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt,auto tryResult830 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult830.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1023, mozilla::dom::quota::Severity::Error); return tryResult830
.propagateErr(); } const auto& journalMode = tryResult830
.inspect();
1023 GetUTF8String, 0))auto tryResult830 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult830.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1023, mozilla::dom::quota::Severity::Error); return tryResult830
.propagateErr(); } const auto& journalMode = tryResult830
.inspect();
;
1024
1025 if (journalMode.EqualsLiteral("delete")) {
1026 // Successfully set to rollback journal mode so changing the page size
1027 // is possible with a VACUUM.
1028 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult831 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult831
)::ok_type>); if ((__builtin_expect(!!(tryResult831.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))"
, tryResult831.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1029, mozilla::dom::quota::Severity::Error); return tryResult831
.propagateErr(); }}
1029 "PRAGMA page_size = %" PRIu32 ";", kSQLitePageSizeOverride)))){auto tryResult831 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult831
)::ok_type>); if ((__builtin_expect(!!(tryResult831.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))"
, tryResult831.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1029, mozilla::dom::quota::Severity::Error); return tryResult831
.propagateErr(); }}
;
1030
1031 // We will need to VACUUM in order to change the page size.
1032 vacuumNeeded = true;
1033 } else {
1034 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to "
"change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1036)
1035 "Failed to set journal_mode for database, unable to "NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to "
"change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1036)
1036 "change the page size!")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to "
"change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1036)
;
1037 }
1038 }
1039 }
1040
1041 if (vacuumNeeded) {
1042 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("VACUUM;"_ns))){auto tryResult832 = (ToResult(connection->ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult832)::ok_type>); if ((__builtin_expect(!!(tryResult832
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult832.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1042, mozilla::dom::quota::Severity::Error); return tryResult832
.propagateErr(); }}
;
1043 }
1044
1045 if (newDatabase || vacuumNeeded) {
1046 if (journalModeSet) {
1047 // Make sure we checkpoint to get an accurate file size.
1048 QM_TRY(MOZ_TO_RESULT({auto tryResult833 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult833)::ok_type>); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1049, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); }}
1049 connection->ExecuteSimpleSQL("PRAGMA wal_checkpoint(FULL);"_ns))){auto tryResult833 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult833)::ok_type>); if ((__builtin_expect
(!!(tryResult833.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))"
, tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1049, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); }}
;
1050 }
1051
1052 QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult834 = (::mozilla::ToResultInvokeMember( (aDBFile
), &::mozilla::detail::DerefedType<decltype(aDBFile)>
::GetFileSize)); if ((__builtin_expect(!!(tryResult834.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize)"
, tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1053, mozilla::dom::quota::Severity::Error); return tryResult834
.propagateErr(); } const int64_t& fileSize = tryResult834
.inspect();
1053 MOZ_TO_RESULT_INVOKE_MEMBER(aDBFile, GetFileSize))auto tryResult834 = (::mozilla::ToResultInvokeMember( (aDBFile
), &::mozilla::detail::DerefedType<decltype(aDBFile)>
::GetFileSize)); if ((__builtin_expect(!!(tryResult834.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize)"
, tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1053, mozilla::dom::quota::Severity::Error); return tryResult834
.propagateErr(); } const int64_t& fileSize = tryResult834
.inspect();
;
1054 MOZ_ASSERT(fileSize > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1054)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 1054); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1055
1056 PRTime vacuumTime = PR_Now();
1057 MOZ_ASSERT(vacuumTime)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(vacuumTime)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("vacuumTime", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1057); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime"
")"); do { MOZ_CrashSequence(__null, 1057); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1058
1059 // The parameter names are not used, parameters are bound by index only
1060 // locally in the same function.
1061 QM_TRY_INSPECT(auto tryResult835 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult835.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult835.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1067, mozilla::dom::quota::Severity::Error); return tryResult835
.propagateErr(); } const auto& vacuumTimeStmt = tryResult835
.inspect();
1062 const auto& vacuumTimeStmt,auto tryResult835 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult835.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult835.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1067, mozilla::dom::quota::Severity::Error); return tryResult835
.propagateErr(); } const auto& vacuumTimeStmt = tryResult835
.inspect();
1063 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCOMPtr<mozIStorageStatement>,auto tryResult835 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult835.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult835.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1067, mozilla::dom::quota::Severity::Error); return tryResult835
.propagateErr(); } const auto& vacuumTimeStmt = tryResult835
.inspect();
1064 connection, CreateStatement,auto tryResult835 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult835.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult835.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1067, mozilla::dom::quota::Severity::Error); return tryResult835
.propagateErr(); } const auto& vacuumTimeStmt = tryResult835
.inspect();
1065 "UPDATE database "auto tryResult835 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult835.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult835.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1067, mozilla::dom::quota::Severity::Error); return tryResult835
.propagateErr(); } const auto& vacuumTimeStmt = tryResult835
.inspect();
1066 "SET last_vacuum_time = :time"auto tryResult835 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult835.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult835.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1067, mozilla::dom::quota::Severity::Error); return tryResult835
.propagateErr(); } const auto& vacuumTimeStmt = tryResult835
.inspect();
1067 ", last_vacuum_size = :size;"_ns))auto tryResult835 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(connection)>::CreateStatement
), (connection), "UPDATE database " "SET last_vacuum_time = :time"
", last_vacuum_size = :size;"_ns)); if ((__builtin_expect(!!
(tryResult835.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(connection)>::CreateStatement), (connection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult835.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1067, mozilla::dom::quota::Severity::Error); return tryResult835
.propagateErr(); } const auto& vacuumTimeStmt = tryResult835
.inspect();
;
1068
1069 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))){auto tryResult836 = (ToResult(vacuumTimeStmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult836)::ok_type>); if ((__builtin_expect(!!(tryResult836
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult836.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1069, mozilla::dom::quota::Severity::Error); return tryResult836
.propagateErr(); }}
;
1070 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))){auto tryResult837 = (ToResult(vacuumTimeStmt->BindInt64ByIndex
(1, fileSize))); static_assert(std::is_empty_v<typename decltype
(tryResult837)::ok_type>); if ((__builtin_expect(!!(tryResult837
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))"
, tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1070, mozilla::dom::quota::Severity::Error); return tryResult837
.propagateErr(); }}
;
1071 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->Execute())){auto tryResult838 = (ToResult(vacuumTimeStmt->Execute()))
; static_assert(std::is_empty_v<typename decltype(tryResult838
)::ok_type>); if ((__builtin_expect(!!(tryResult838.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->Execute())"
, tryResult838.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1071, mozilla::dom::quota::Severity::Error); return tryResult838
.propagateErr(); }}
;
1072 }
1073 }
1074
1075 if (!journalModeSet) {
1076 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult839 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult839
)::ok_type>); if ((__builtin_expect(!!(tryResult839.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult839.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1076, mozilla::dom::quota::Severity::Error); return tryResult839
.propagateErr(); }}
;
1077 }
1078
1079 return WrapMovingNotNullUnchecked(std::move(connection));
1080}
1081
1082nsCOMPtr<nsIFile> GetFileForPath(const nsAString& aPath) {
1083 MOZ_ASSERT(!aPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aPath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aPath.IsEmpty()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!aPath.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1083)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()" ")"
); do { MOZ_CrashSequence(__null, 1083); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1084
1085 QM_TRY_RETURN(QM_NewLocalFile(aPath), nullptr){auto tryResult840 = (QM_NewLocalFile(aPath)); if ((__builtin_expect
(!!(tryResult840.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult840.unwrapErr(); mozilla::dom::quota
::HandleError("QM_NewLocalFile(aPath)", tryResult840.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1085
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "QM_NewLocalFile(aPath)"
, tryTempError, nullptr); } return tryResult840.unwrap();}
;
1086}
1087
1088Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
1089GetStorageConnection(nsIFile& aDatabaseFile, const int64_t aDirectoryLockId,
1090 const uint32_t aTelemetryId,
1091 const Maybe<CipherKey>& aMaybeKey) {
1092 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1092)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 1092); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1093 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1093)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 1093); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1094 MOZ_ASSERT(aDirectoryLockId >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectoryLockId >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1094)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0"
")"); do { MOZ_CrashSequence(__null, 1094); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1095
1096 AUTO_PROFILER_LABEL("GetStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject1096( "GetStorageConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
1097
1098 QM_TRY_INSPECT(const bool& exists,auto tryResult841 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::Exists)); if ((__builtin_expect(!!(tryResult841.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists)"
, tryResult841.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1099, mozilla::dom::quota::Severity::Error); return tryResult841
.propagateErr(); } const bool& exists = tryResult841.inspect
();
1099 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, Exists))auto tryResult841 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::Exists)); if ((__builtin_expect(!!(tryResult841.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists)"
, tryResult841.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1099, mozilla::dom::quota::Severity::Error); return tryResult841
.propagateErr(); } const bool& exists = tryResult841.inspect
();
;
1100
1101 QM_TRY(OkIf(exists), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult842 = (OkIf(exists)); static_assert(std::is_empty_v
<typename decltype(tryResult842)::ok_type>); if ((__builtin_expect
(!!(tryResult842.isErr()), 0))) { auto tryTempError = tryResult842
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1102, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1102, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(exists)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
1102 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult842 = (OkIf(exists)); static_assert(std::is_empty_v
<typename decltype(tryResult842)::ok_type>); if ((__builtin_expect
(!!(tryResult842.isErr()), 0))) { auto tryTempError = tryResult842
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1102, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1102, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(exists)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
1103
1104 QM_TRY_INSPECT(auto tryResult843 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult843.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1106, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } const auto& dbFileUrl = tryResult843.inspect
();
1105 const auto& dbFileUrl,auto tryResult843 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult843.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1106, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } const auto& dbFileUrl = tryResult843.inspect
();
1106 GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey))auto tryResult843 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult843.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult843.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1106, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } const auto& dbFileUrl = tryResult843.inspect
();
;
1107
1108 QM_TRY_INSPECT(const auto& storageService,auto tryResult844 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult844.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")"
, tryResult844.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1111, mozilla::dom::quota::Severity::Error); return tryResult844
.propagateErr(); } const auto& storageService = tryResult844
.inspect();
1109 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult844 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult844.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")"
, tryResult844.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1111, mozilla::dom::quota::Severity::Error); return tryResult844
.propagateErr(); } const auto& storageService = tryResult844
.inspect();
1110 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult844 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult844.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")"
, tryResult844.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1111, mozilla::dom::quota::Severity::Error); return tryResult844
.propagateErr(); } const auto& storageService = tryResult844
.inspect();
1111 MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult844 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult844.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultGet< nsCOMPtr<mozIStorageService>>([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...); }, \"@mozilla.org/storage\" \"/service;1\")"
, tryResult844.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1111, mozilla::dom::quota::Severity::Error); return tryResult844
.propagateErr(); } const auto& storageService = tryResult844
.inspect();
;
1112
1113 QM_TRY_UNWRAP(auto tryResult845 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult845
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1115, mozilla::dom::quota::Severity::Error); return tryResult845
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult845.unwrap();
1114 nsCOMPtr<mozIStorageConnection> connection,auto tryResult845 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult845
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1115, mozilla::dom::quota::Severity::Error); return tryResult845
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult845.unwrap();
1115 OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId))auto tryResult845 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult845
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1115, mozilla::dom::quota::Severity::Error); return tryResult845
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult845.unwrap();
;
1116
1117 QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult846 = (ToResult(SetDefaultPragmas(*connection)
)); static_assert(std::is_empty_v<typename decltype(tryResult846
)::ok_type>); if ((__builtin_expect(!!(tryResult846.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))"
, tryResult846.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1117, mozilla::dom::quota::Severity::Error); return tryResult846
.propagateErr(); }}
;
1118
1119 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult847 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult847
)::ok_type>); if ((__builtin_expect(!!(tryResult847.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult847.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1119, mozilla::dom::quota::Severity::Error); return tryResult847
.propagateErr(); }}
;
1120
1121 return WrapMovingNotNullUnchecked(std::move(connection));
1122}
1123
1124Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
1125GetStorageConnection(const nsAString& aDatabaseFilePath,
1126 const int64_t aDirectoryLockId,
1127 const uint32_t aTelemetryId,
1128 const Maybe<CipherKey>& aMaybeKey) {
1129 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1129)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 1129); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1130 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1130)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 1130); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1131 MOZ_ASSERT(!aDatabaseFilePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseFilePath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseFilePath.IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!aDatabaseFilePath.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilePath.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 1131); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1132 MOZ_ASSERT(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1132)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)"
")"); do { MOZ_CrashSequence(__null, 1132); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1133 MOZ_ASSERT(aDirectoryLockId >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectoryLockId >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1133)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0"
")"); do { MOZ_CrashSequence(__null, 1133); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1134
1135 nsCOMPtr<nsIFile> dbFile = GetFileForPath(aDatabaseFilePath);
1136
1137 QM_TRY(OkIf(dbFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult848 = (OkIf(dbFile)); static_assert(std::is_empty_v
<typename decltype(tryResult848)::ok_type>); if ((__builtin_expect
(!!(tryResult848.isErr()), 0))) { auto tryTempError = tryResult848
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1138, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1138, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
1138 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult848 = (OkIf(dbFile)); static_assert(std::is_empty_v
<typename decltype(tryResult848)::ok_type>); if ((__builtin_expect
(!!(tryResult848.isErr()), 0))) { auto tryTempError = tryResult848
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1138, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1138, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
1139
1140 return GetStorageConnection(*dbFile, aDirectoryLockId, aTelemetryId,
1141 aMaybeKey);
1142}
1143
1144/*******************************************************************************
1145 * ConnectionPool declarations
1146 ******************************************************************************/
1147
1148class DatabaseConnection final : public CachingDatabaseConnection {
1149 friend class ConnectionPool;
1150
1151 enum class CheckpointMode { Full, Restart, Truncate };
1152
1153 public:
1154 class AutoSavepoint;
1155 class UpdateRefcountFunction;
1156
1157 private:
1158 InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileManager>>> mFileManager;
1159 RefPtr<UpdateRefcountFunction> mUpdateRefcountFunction;
1160 RefPtr<QuotaObject> mQuotaObject;
1161 RefPtr<QuotaObject> mJournalQuotaObject;
1162 IDBTransaction::Durability mLastDurability;
1163 bool mInReadTransaction;
1164 bool mInWriteTransaction;
1165
1166#ifdef DEBUG1
1167 uint32_t mDEBUGSavepointCount;
1168#endif
1169
1170 public:
1171 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(DatabaseConnection)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<DatabaseConnection>, "Reference-counted class "
"DatabaseConnection" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 1171
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("DatabaseConnection"), (uint32_t)(sizeof(*this))); return
(nsrefcnt)count; } MozExternalRefCountType Release(void) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 1171
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("DatabaseConnection")); if (count == 0) { delete (this
); return 0; } return count; } using HasThreadSafeRefCnt = std
::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt
; public:
1172
1173 UpdateRefcountFunction* GetUpdateRefcountFunction() const {
1174 AssertIsOnConnectionThread();
1175
1176 return mUpdateRefcountFunction;
1177 }
1178
1179 nsresult BeginWriteTransaction(const IDBTransaction::Durability aDurability);
1180
1181 nsresult CommitWriteTransaction();
1182
1183 void RollbackWriteTransaction();
1184
1185 void FinishWriteTransaction();
1186
1187 nsresult StartSavepoint();
1188
1189 nsresult ReleaseSavepoint();
1190
1191 nsresult RollbackSavepoint();
1192
1193 nsresult Checkpoint() {
1194 AssertIsOnConnectionThread();
1195
1196 return CheckpointInternal(CheckpointMode::Full);
1197 }
1198
1199 void DoIdleProcessing(bool aNeedsCheckpoint,
1200 const Atomic<bool>& aInterrupted);
1201
1202 void Close();
1203
1204 nsresult DisableQuotaChecks();
1205
1206 void EnableQuotaChecks();
1207
1208 private:
1209 DatabaseConnection(
1210 MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection,
1211 MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager);
1212
1213 ~DatabaseConnection();
1214
1215 nsresult Init();
1216
1217 nsresult CheckpointInternal(CheckpointMode aMode);
1218
1219 Result<uint32_t, nsresult> GetFreelistCount(
1220 CachedStatement& aCachedStatement);
1221
1222 /**
1223 * On success, returns whether some pages were freed.
1224 */
1225 Result<bool, nsresult> ReclaimFreePagesWhileIdle(
1226 CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement,
1227 uint32_t aFreelistCount, bool aNeedsCheckpoint,
1228 const Atomic<bool>& aInterrupted);
1229
1230 Result<int64_t, nsresult> GetFileSize(const nsAString& aPath);
1231};
1232
1233class MOZ_STACK_CLASS DatabaseConnection::AutoSavepoint final {
1234 DatabaseConnection* mConnection;
1235#ifdef DEBUG1
1236 const TransactionBase* mDEBUGTransaction;
1237#endif
1238
1239 public:
1240 AutoSavepoint();
1241 ~AutoSavepoint();
1242
1243 nsresult Start(const TransactionBase& aTransaction);
1244
1245 nsresult Commit();
1246};
1247
1248class DatabaseConnection::UpdateRefcountFunction final
1249 : public mozIStorageFunction {
1250 class FileInfoEntry;
1251
1252 enum class UpdateType { Increment, Decrement };
1253
1254 DatabaseConnection* const mConnection;
1255 DatabaseFileManager& mFileManager;
1256 nsClassHashtable<nsUint64HashKey, FileInfoEntry> mFileInfoEntries;
1257 nsTHashMap<nsUint64HashKey, NotNull<FileInfoEntry*>> mSavepointEntriesIndex;
1258
1259 nsTArray<int64_t> mJournalsToCreateBeforeCommit;
1260 nsTArray<int64_t> mJournalsToRemoveAfterCommit;
1261 nsTArray<int64_t> mJournalsToRemoveAfterAbort;
1262
1263 bool mInSavepoint;
1264
1265 public:
1266 NS_DECL_ISUPPORTS_ONEVENTTARGETpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override; using HasThreadSafeRefCnt = std::false_type;
protected: nsAutoRefCnt mRefCnt; nsAutoOwningEventTarget _mOwningThread
; public:
1267 NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments
, nsIVariant **_retval) override;
1268
1269 UpdateRefcountFunction(DatabaseConnection* aConnection,
1270 DatabaseFileManager& aFileManager);
1271
1272 nsresult WillCommit();
1273
1274 void DidCommit();
1275
1276 void DidAbort();
1277
1278 void StartSavepoint();
1279
1280 void ReleaseSavepoint();
1281
1282 void RollbackSavepoint();
1283
1284 void Reset();
1285
1286 private:
1287 ~UpdateRefcountFunction() = default;
1288
1289 nsresult ProcessValue(mozIStorageValueArray* aValues, int32_t aIndex,
1290 UpdateType aUpdateType);
1291
1292 nsresult CreateJournals();
1293
1294 nsresult RemoveJournals(const nsTArray<int64_t>& aJournals);
1295};
1296
1297class DatabaseConnection::UpdateRefcountFunction::FileInfoEntry final {
1298 SafeRefPtr<DatabaseFileInfo> mFileInfo;
1299 int32_t mDelta;
1300 int32_t mSavepointDelta;
1301
1302 public:
1303 explicit FileInfoEntry(SafeRefPtr<DatabaseFileInfo> aFileInfo)
1304 : mFileInfo(std::move(aFileInfo)), mDelta(0), mSavepointDelta(0) {
1305 MOZ_COUNT_CTOR(DatabaseConnection::UpdateRefcountFunction::FileInfoEntry)do { static_assert(std::is_class_v<DatabaseConnection::UpdateRefcountFunction
::FileInfoEntry>, "Token '" "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry"
"' is not a class type."); static_assert(!std::is_base_of<
nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry
>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry"
, sizeof(*this)); } while (0)
;
1306 }
1307
1308 void IncDeltas(bool aUpdateSavepointDelta) {
1309 ++mDelta;
1310 if (aUpdateSavepointDelta) {
1311 ++mSavepointDelta;
1312 }
1313 }
1314 void DecDeltas(bool aUpdateSavepointDelta) {
1315 --mDelta;
1316 if (aUpdateSavepointDelta) {
1317 --mSavepointDelta;
1318 }
1319 }
1320 void DecBySavepointDelta() { mDelta -= mSavepointDelta; }
1321 SafeRefPtr<DatabaseFileInfo> ReleaseFileInfo() {
1322 return std::move(mFileInfo);
1323 }
1324 void MaybeUpdateDBRefs() {
1325 if (mDelta) {
1326 mFileInfo->UpdateDBRefs(mDelta);
1327 }
1328 }
1329
1330 int32_t Delta() const { return mDelta; }
1331 int32_t SavepointDelta() const { return mSavepointDelta; }
1332
1333 ~FileInfoEntry() {
1334 MOZ_COUNT_DTOR(DatabaseConnection::UpdateRefcountFunction::FileInfoEntry)do { static_assert(std::is_class_v<DatabaseConnection::UpdateRefcountFunction
::FileInfoEntry>, "Token '" "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry"
"' is not a class type."); static_assert(!std::is_base_of<
nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry
>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry"
, sizeof(*this)); } while (0)
;
1335 }
1336};
1337
1338class ConnectionPool final {
1339 public:
1340 class FinishCallback;
1341
1342 private:
1343 class ConnectionRunnable;
1344 class CloseConnectionRunnable;
1345 struct DatabaseInfo;
1346 struct DatabaseCompleteCallback;
1347 class FinishCallbackWrapper;
1348 class IdleConnectionRunnable;
1349
1350#ifdef DEBUG1
1351 class TransactionRunnable;
1352#endif
1353 class TransactionInfo;
1354 struct TransactionInfoPair;
1355
1356 struct IdleResource {
1357 TimeStamp mIdleTime;
1358
1359 IdleResource(const IdleResource& aOther) = delete;
1360 IdleResource(IdleResource&& aOther) noexcept
1361 : IdleResource(aOther.mIdleTime) {}
1362 IdleResource& operator=(const IdleResource& aOther) = delete;
1363 IdleResource& operator=(IdleResource&& aOther) = delete;
1364
1365 protected:
1366 explicit IdleResource(const TimeStamp& aIdleTime);
1367
1368 ~IdleResource();
1369 };
1370
1371 struct IdleDatabaseInfo final : public IdleResource {
1372 InitializedOnce<const NotNull<DatabaseInfo*>> mDatabaseInfo;
1373
1374 public:
1375 explicit IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo);
1376
1377 IdleDatabaseInfo(const IdleDatabaseInfo& aOther) = delete;
1378 IdleDatabaseInfo(IdleDatabaseInfo&& aOther) noexcept
1379 : IdleResource(std::move(aOther)),
1380 mDatabaseInfo{std::move(aOther.mDatabaseInfo)} {
1381 MOZ_ASSERT(mDatabaseInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseInfo))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mDatabaseInfo",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1381);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo" ")")
; do { MOZ_CrashSequence(__null, 1381); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1382
1383 MOZ_COUNT_CTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo
>, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::IdleDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleDatabaseInfo"
, sizeof(*this)); } while (0)
;
1384 }
1385 IdleDatabaseInfo& operator=(const IdleDatabaseInfo& aOther) = delete;
1386 IdleDatabaseInfo& operator=(IdleDatabaseInfo&& aOther) = delete;
1387
1388 ~IdleDatabaseInfo();
1389
1390 bool operator==(const IdleDatabaseInfo& aOther) const {
1391 return *mDatabaseInfo == *aOther.mDatabaseInfo;
1392 }
1393
1394 bool operator==(const DatabaseInfo* aDatabaseInfo) const {
1395 return *mDatabaseInfo == aDatabaseInfo;
1396 }
1397
1398 bool operator<(const IdleDatabaseInfo& aOther) const {
1399 return mIdleTime < aOther.mIdleTime;
1400 }
1401 };
1402
1403 struct PerformingIdleMaintenanceDatabaseInfo {
1404 const NotNull<DatabaseInfo*> mDatabaseInfo;
1405 RefPtr<IdleConnectionRunnable> mIdleConnectionRunnable;
1406
1407 PerformingIdleMaintenanceDatabaseInfo(
1408 DatabaseInfo& aDatabaseInfo,
1409 RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable);
1410
1411 PerformingIdleMaintenanceDatabaseInfo(
1412 const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete;
1413 PerformingIdleMaintenanceDatabaseInfo(
1414 PerformingIdleMaintenanceDatabaseInfo&& aOther) noexcept
1415 : mDatabaseInfo{aOther.mDatabaseInfo},
1416 mIdleConnectionRunnable{std::move(aOther.mIdleConnectionRunnable)} {
1417 MOZ_COUNT_CTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
"' is not a class type."); static_assert(!std::is_base_of<
nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
, sizeof(*this)); } while (0)
;
1418 }
1419 PerformingIdleMaintenanceDatabaseInfo& operator=(
1420 const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete;
1421 PerformingIdleMaintenanceDatabaseInfo& operator=(
1422 PerformingIdleMaintenanceDatabaseInfo&& aOther) = delete;
1423
1424 ~PerformingIdleMaintenanceDatabaseInfo();
1425
1426 bool operator==(const DatabaseInfo* aDatabaseInfo) const {
1427 return mDatabaseInfo == aDatabaseInfo;
1428 }
1429 };
1430
1431 // This mutex guards mDatabases, see below.
1432 Mutex mDatabasesMutex MOZ_UNANNOTATED;
1433
1434 nsCOMPtr<nsIThreadPool> mIOTarget;
1435 nsTArray<IdleDatabaseInfo> mIdleDatabases;
1436 nsTArray<PerformingIdleMaintenanceDatabaseInfo>
1437 mDatabasesPerformingIdleMaintenance;
1438 nsCOMPtr<nsITimer> mIdleTimer;
1439 TimeStamp mTargetIdleTime;
1440
1441 // Only modifed on the owning thread, but read on multiple threads. Therefore
1442 // all modifications and all reads off the owning thread must be protected by
1443 // mDatabasesMutex.
1444 nsClassHashtable<nsCStringHashKey, DatabaseInfo> mDatabases;
1445
1446 nsClassHashtable<nsUint64HashKey, TransactionInfo> mTransactions;
1447 nsTArray<NotNull<TransactionInfo*>> mQueuedTransactions;
1448
1449 nsTArray<UniquePtr<DatabaseCompleteCallback>> mCompleteCallbacks;
1450
1451 uint64_t mNextTransactionId;
1452 FlippedOnce<false> mShutdownRequested;
1453 FlippedOnce<false> mShutdownComplete;
1454
1455 public:
1456 ConnectionPool();
1457
1458 void AssertIsOnOwningThread() const {
1459 NS_ASSERT_OWNINGTHREAD(ConnectionPool)_mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe"
)
;
1460 }
1461
1462 Result<RefPtr<DatabaseConnection>, nsresult> GetOrCreateConnection(
1463 const Database& aDatabase);
1464
1465 uint64_t Start(const nsID& aBackgroundChildLoggingId,
1466 const nsACString& aDatabaseId, int64_t aLoggingSerialNumber,
1467 const nsTArray<nsString>& aObjectStoreNames,
1468 bool aIsWriteTransaction,
1469 TransactionDatabaseOperationBase* aTransactionOp);
1470
1471 /**
1472 * Starts a new operation associated with the given transaction.
1473 *
1474 * This method initiates an operation by:
1475 * 1. Dispatching the provided runnable to the task queue created on top of
1476 * the I/O thread pool if the transaction is currently running.
1477 * 2. Queuing the runnable for later execution if the transaction is not yet
1478 * running.
1479 *
1480 * It is mandatory for all operations to call StartOp to ensure proper
1481 * handling and sequencing within the transaction context.
1482 *
1483 * Note:
1484 * - For more complex operations that involve work on other threads or require
1485 * communication with content processes, StartOp should not be called again
1486 * to dispatch to the task queue, as this could disrupt proper queuing and
1487 * execution.
1488 */
1489 void StartOp(uint64_t aTransactionId, nsCOMPtr<nsIRunnable> aRunnable);
1490
1491 /**
1492 * Marks the completion of an operation associated with the given transaction.
1493 *
1494 * This method signals that the current operation has finished, allowing the
1495 * next queued operation (if any) for the transaction to start.
1496 */
1497 void FinishOp(uint64_t aTransactionId);
1498
1499 void Finish(uint64_t aTransactionId, FinishCallback* aCallback);
1500
1501 void CloseDatabaseWhenIdle(const nsACString& aDatabaseId) {
1502 Unused << CloseDatabaseWhenIdleInternal(aDatabaseId);
1503 }
1504
1505 void WaitForDatabaseToComplete(const nsCString& aDatabaseId,
1506 nsIRunnable* aCallback);
1507
1508 void Shutdown();
1509
1510 NS_INLINE_DECL_REFCOUNTING(ConnectionPool)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<ConnectionPool>, "Reference-counted class "
"ConnectionPool" " should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1510); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 1510
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); _mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe"
); ++mRefCnt; NS_LogAddRef((this), (mRefCnt), ("ConnectionPool"
), (uint32_t)(sizeof(*this))); return mRefCnt; } MozExternalRefCountType
Release(void) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 1510); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 1510
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); _mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe"
); --mRefCnt; NS_LogRelease((this), (mRefCnt), ("ConnectionPool"
)); if (mRefCnt == 0) { mRefCnt = 1; delete (this); return 0;
} return mRefCnt; } using HasThreadSafeRefCnt = std::false_type
; protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread
; public:
1511
1512 private:
1513 ~ConnectionPool();
1514
1515 static void IdleTimerCallback(nsITimer* aTimer, void* aClosure);
1516
1517 static uint32_t SerialNumber() { return ++sSerialNumber; }
1518
1519 static uint32_t sSerialNumber;
1520
1521 void Cleanup();
1522
1523 void AdjustIdleTimer();
1524
1525 void CancelIdleTimer();
1526
1527 void CloseIdleDatabases();
1528
1529 bool ScheduleTransaction(TransactionInfo& aTransactionInfo,
1530 bool aFromQueuedTransactions);
1531
1532 void NoteFinishedTransaction(uint64_t aTransactionId);
1533
1534 void ScheduleQueuedTransactions();
1535
1536 void NoteIdleDatabase(DatabaseInfo& aDatabaseInfo);
1537
1538 void NoteClosedDatabase(DatabaseInfo& aDatabaseInfo);
1539
1540 bool MaybeFireCallback(DatabaseCompleteCallback* aCallback);
1541
1542 void PerformIdleDatabaseMaintenance(DatabaseInfo& aDatabaseInfo);
1543
1544 void CloseDatabase(DatabaseInfo& aDatabaseInfo) const;
1545
1546 bool CloseDatabaseWhenIdleInternal(const nsACString& aDatabaseId);
1547};
1548
1549class ConnectionPool::ConnectionRunnable : public Runnable {
1550 protected:
1551 DatabaseInfo& mDatabaseInfo;
1552 nsCOMPtr<nsIEventTarget> mOwningEventTarget;
1553
1554 explicit ConnectionRunnable(DatabaseInfo& aDatabaseInfo);
1555
1556 ~ConnectionRunnable() override = default;
1557};
1558
1559class ConnectionPool::IdleConnectionRunnable final : public ConnectionRunnable {
1560 const bool mNeedsCheckpoint;
1561 Atomic<bool> mInterrupted;
1562
1563 public:
1564 IdleConnectionRunnable(DatabaseInfo& aDatabaseInfo, bool aNeedsCheckpoint)
1565 : ConnectionRunnable(aDatabaseInfo), mNeedsCheckpoint(aNeedsCheckpoint) {}
1566
1567 NS_INLINE_DECL_REFCOUNTING_INHERITED(IdleConnectionRunnable,virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<IdleConnectionRunnable>, "Reference-counted class "
"IdleConnectionRunnable" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<IdleConnectionRunnable>) { NS_LogAddRef((this), (r), (
"IdleConnectionRunnable"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = ConnectionRunnable::Release(); if constexpr (::mozilla::
detail::ShouldLogInheritedRefcnt<IdleConnectionRunnable>
) { NS_LogRelease((this), (r), ("IdleConnectionRunnable")); }
return r; }
1568 ConnectionRunnable)virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<IdleConnectionRunnable>, "Reference-counted class "
"IdleConnectionRunnable" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<IdleConnectionRunnable>) { NS_LogAddRef((this), (r), (
"IdleConnectionRunnable"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = ConnectionRunnable::Release(); if constexpr (::mozilla::
detail::ShouldLogInheritedRefcnt<IdleConnectionRunnable>
) { NS_LogRelease((this), (r), ("IdleConnectionRunnable")); }
return r; }
1569
1570 void Interrupt() { mInterrupted = true; }
1571
1572 private:
1573 ~IdleConnectionRunnable() override = default;
1574
1575 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1576};
1577
1578class ConnectionPool::CloseConnectionRunnable final
1579 : public ConnectionRunnable {
1580 public:
1581 explicit CloseConnectionRunnable(DatabaseInfo& aDatabaseInfo)
1582 : ConnectionRunnable(aDatabaseInfo) {}
1583
1584 NS_INLINE_DECL_REFCOUNTING_INHERITED(CloseConnectionRunnable,virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<CloseConnectionRunnable>, "Reference-counted class "
"CloseConnectionRunnable" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<CloseConnectionRunnable>) { NS_LogAddRef((this), (r), (
"CloseConnectionRunnable"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = ConnectionRunnable::Release(); if constexpr (::mozilla::
detail::ShouldLogInheritedRefcnt<CloseConnectionRunnable>
) { NS_LogRelease((this), (r), ("CloseConnectionRunnable")); }
return r; }
1585 ConnectionRunnable)virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<CloseConnectionRunnable>, "Reference-counted class "
"CloseConnectionRunnable" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<CloseConnectionRunnable>) { NS_LogAddRef((this), (r), (
"CloseConnectionRunnable"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = ConnectionRunnable::Release(); if constexpr (::mozilla::
detail::ShouldLogInheritedRefcnt<CloseConnectionRunnable>
) { NS_LogRelease((this), (r), ("CloseConnectionRunnable")); }
return r; }
1586
1587 private:
1588 ~CloseConnectionRunnable() override = default;
1589
1590 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1591};
1592
1593struct ConnectionPool::DatabaseInfo final {
1594 friend class mozilla::DefaultDelete<DatabaseInfo>;
1595
1596 RefPtr<ConnectionPool> mConnectionPool;
1597 const nsCString mDatabaseId;
1598 RefPtr<DatabaseConnection> mConnection;
1599 nsClassHashtable<nsStringHashKey, TransactionInfoPair> mBlockingTransactions;
1600 nsTArray<NotNull<TransactionInfo*>> mTransactionsScheduledDuringClose;
1601 nsTArray<NotNull<TransactionInfo*>> mScheduledWriteTransactions;
1602 Maybe<TransactionInfo&> mRunningWriteTransaction;
1603 RefPtr<TaskQueue> mEventTarget;
1604 uint32_t mReadTransactionCount;
1605 uint32_t mWriteTransactionCount;
1606 bool mNeedsCheckpoint;
1607 bool mIdle;
1608 FlippedOnce<false> mCloseOnIdle;
1609 bool mClosing;
1610
1611#ifdef DEBUG1
1612 nsISerialEventTarget* mDEBUGConnectionEventTarget;
1613#endif
1614
1615 DatabaseInfo(ConnectionPool* aConnectionPool, const nsACString& aDatabaseId);
1616
1617 void AssertIsOnConnectionThread() const {
1618 MOZ_ASSERT(mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGConnectionEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGConnectionEventTarget)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGConnectionEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1618)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGConnectionEventTarget"
")"); do { MOZ_CrashSequence(__null, 1618); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1619 MOZ_ASSERT(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1619)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget"
")"); do { MOZ_CrashSequence(__null, 1619); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1620 }
1621
1622 uint64_t TotalTransactionCount() const {
1623 return mReadTransactionCount + mWriteTransactionCount;
1624 }
1625
1626 nsresult Dispatch(already_AddRefed<nsIRunnable> aRunnable);
1627
1628 private:
1629 ~DatabaseInfo();
1630
1631 DatabaseInfo(const DatabaseInfo&) = delete;
1632 DatabaseInfo& operator=(const DatabaseInfo&) = delete;
1633};
1634
1635struct ConnectionPool::DatabaseCompleteCallback final {
1636 friend class DefaultDelete<DatabaseCompleteCallback>;
1637
1638 nsCString mDatabaseId;
1639 nsCOMPtr<nsIRunnable> mCallback;
1640
1641 DatabaseCompleteCallback(const nsCString& aDatabaseIds,
1642 nsIRunnable* aCallback);
1643
1644 private:
1645 ~DatabaseCompleteCallback();
1646};
1647
1648class NS_NO_VTABLE ConnectionPool::FinishCallback : public nsIRunnable {
1649 public:
1650 // Called on the owning thread before any additional transactions are
1651 // unblocked.
1652 virtual void TransactionFinishedBeforeUnblock() = 0;
1653
1654 // Called on the owning thread after additional transactions may have been
1655 // unblocked.
1656 virtual void TransactionFinishedAfterUnblock() = 0;
1657
1658 protected:
1659 FinishCallback() = default;
1660
1661 virtual ~FinishCallback() = default;
1662};
1663
1664class ConnectionPool::FinishCallbackWrapper final : public Runnable {
1665 RefPtr<ConnectionPool> mConnectionPool;
1666 RefPtr<FinishCallback> mCallback;
1667 nsCOMPtr<nsIEventTarget> mOwningEventTarget;
1668 uint64_t mTransactionId;
1669 bool mHasRunOnce;
1670
1671 public:
1672 FinishCallbackWrapper(ConnectionPool* aConnectionPool,
1673 uint64_t aTransactionId, FinishCallback* aCallback);
1674
1675 NS_INLINE_DECL_REFCOUNTING_INHERITED(FinishCallbackWrapper, Runnable)virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<FinishCallbackWrapper>, "Reference-counted class "
"FinishCallbackWrapper" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = Runnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<FinishCallbackWrapper>) { NS_LogAddRef((this), (r), ("FinishCallbackWrapper"
), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType
Release() override { nsrefcnt r = Runnable::Release(); if constexpr
(::mozilla::detail::ShouldLogInheritedRefcnt<FinishCallbackWrapper
>) { NS_LogRelease((this), (r), ("FinishCallbackWrapper"))
; } return r; }
1676
1677 private:
1678 ~FinishCallbackWrapper() override;
1679
1680 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1681};
1682
1683#ifdef DEBUG1
1684
1685class ConnectionPool::TransactionRunnable final : public Runnable {
1686 public:
1687 explicit TransactionRunnable(nsCOMPtr<nsIRunnable> aRunnable);
1688
1689 private:
1690 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1691
1692 nsCOMPtr<nsIRunnable> mRunnable;
1693};
1694
1695#endif
1696
1697class ConnectionPool::TransactionInfo final {
1698 friend class mozilla::DefaultDelete<TransactionInfo>;
1699
1700 nsTHashSet<TransactionInfo*> mBlocking;
1701 nsTArray<NotNull<TransactionInfo*>> mBlockingOrdered;
1702
1703 public:
1704 DatabaseInfo& mDatabaseInfo;
1705 const nsID mBackgroundChildLoggingId;
1706 const nsCString mDatabaseId;
1707 const uint64_t mTransactionId;
1708 const int64_t mLoggingSerialNumber;
1709 const nsTArray<nsString> mObjectStoreNames;
1710 nsTHashSet<TransactionInfo*> mBlockedOn;
1711 mozilla::Queue<nsCOMPtr<nsIRunnable>, 16> mQueuedOps;
1712 const bool mIsWriteTransaction;
1713 bool mRunning;
1714 bool mRunningOp;
1715
1716#ifdef DEBUG1
1717 FlippedOnce<false> mFinished;
1718#endif
1719
1720 TransactionInfo(DatabaseInfo& aDatabaseInfo,
1721 const nsID& aBackgroundChildLoggingId,
1722 const nsACString& aDatabaseId, uint64_t aTransactionId,
1723 int64_t aLoggingSerialNumber,
1724 const nsTArray<nsString>& aObjectStoreNames,
1725 bool aIsWriteTransaction,
1726 TransactionDatabaseOperationBase* aTransactionOp);
1727
1728 void AddBlockingTransaction(TransactionInfo& aTransactionInfo);
1729
1730 void RemoveBlockingTransactions();
1731
1732 void SetRunning();
1733
1734 void StartOp(nsCOMPtr<nsIRunnable> aRunnable);
1735
1736 void FinishOp();
1737
1738 private:
1739 ~TransactionInfo();
1740
1741 void MaybeUnblock(TransactionInfo& aTransactionInfo);
1742};
1743
1744struct ConnectionPool::TransactionInfoPair final {
1745 // Multiple reading transactions can block future writes.
1746 nsTArray<NotNull<TransactionInfo*>> mLastBlockingWrites;
1747 // But only a single writing transaction can block future reads.
1748 Maybe<TransactionInfo&> mLastBlockingReads;
1749
1750#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
1751 TransactionInfoPair();
1752 ~TransactionInfoPair();
1753#endif
1754};
1755
1756/*******************************************************************************
1757 * Actor class declarations
1758 ******************************************************************************/
1759
1760template <IDBCursorType CursorType>
1761class CommonOpenOpHelper;
1762template <IDBCursorType CursorType>
1763class IndexOpenOpHelper;
1764template <IDBCursorType CursorType>
1765class ObjectStoreOpenOpHelper;
1766template <IDBCursorType CursorType>
1767class OpenOpHelper;
1768
1769class DatabaseOperationBase : public Runnable,
1770 public mozIStorageProgressHandler {
1771 template <IDBCursorType CursorType>
1772 friend class OpenOpHelper;
1773
1774 protected:
1775 class AutoSetProgressHandler;
1776
1777 using UniqueIndexTable = nsTHashMap<nsUint64HashKey, bool>;
1778
1779 const nsCOMPtr<nsIEventTarget> mOwningEventTarget;
1780 const nsID mBackgroundChildLoggingId;
1781 const uint64_t mLoggingSerialNumber;
1782
1783 private:
1784 nsresult mResultCode = NS_OK;
1785 Atomic<bool> mOperationMayProceed;
1786 FlippedOnce<false> mActorDestroyed;
1787
1788 public:
1789 NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override;
1790
1791 bool IsOnOwningThread() const {
1792 MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOwningEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1792)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { MOZ_CrashSequence(__null, 1792); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1793
1794 bool current;
1795 return NS_SUCCEEDED(mOwningEventTarget->IsOnCurrentThread(&current))((bool)(__builtin_expect(!!(!NS_FAILED_impl(mOwningEventTarget
->IsOnCurrentThread(&current))), 1)))
&&
1796 current;
1797 }
1798
1799 void AssertIsOnOwningThread() const {
1800 MOZ_ASSERT(IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1800)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 1800); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1801 MOZ_ASSERT(IsOnOwningThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsOnOwningThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsOnOwningThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("IsOnOwningThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1801)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnOwningThread()"
")"); do { MOZ_CrashSequence(__null, 1801); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1802 }
1803
1804 void NoteActorDestroyed() {
1805 AssertIsOnOwningThread();
1806
1807 mActorDestroyed.EnsureFlipped();
1808 mOperationMayProceed = false;
1809 }
1810
1811 bool IsActorDestroyed() const {
1812 AssertIsOnOwningThread();
1813
1814 return mActorDestroyed;
1815 }
1816
1817 // May be called on any thread, but you should call IsActorDestroyed() if
1818 // you know you're on the background thread because it is slightly faster.
1819 bool OperationMayProceed() const { return mOperationMayProceed; }
1820
1821 const nsID& BackgroundChildLoggingId() const {
1822 return mBackgroundChildLoggingId;
1823 }
1824
1825 uint64_t LoggingSerialNumber() const { return mLoggingSerialNumber; }
1826
1827 nsresult ResultCode() const { return mResultCode; }
1828
1829 void SetFailureCode(nsresult aFailureCode) {
1830 MOZ_ASSERT(NS_SUCCEEDED(mResultCode))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mResultCode)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1830)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))"
")"); do { MOZ_CrashSequence(__null, 1830); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1831 OverrideFailureCode(aFailureCode);
1832 }
1833
1834 void SetFailureCodeIfUnset(nsresult aFailureCode) {
1835 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
1836 OverrideFailureCode(aFailureCode);
1837 }
1838 }
1839
1840 bool HasFailed() const { return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
; }
1841
1842 protected:
1843 DatabaseOperationBase(const nsID& aBackgroundChildLoggingId,
1844 uint64_t aLoggingSerialNumber)
1845 : Runnable("dom::indexedDB::DatabaseOperationBase"),
1846 mOwningEventTarget(GetCurrentSerialEventTarget()),
1847 mBackgroundChildLoggingId(aBackgroundChildLoggingId),
1848 mLoggingSerialNumber(aLoggingSerialNumber),
1849 mOperationMayProceed(true) {
1850 AssertIsOnOwningThread();
1851 }
1852
1853 ~DatabaseOperationBase() override { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1853)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 1853); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
1854
1855 void OverrideFailureCode(nsresult aFailureCode) {
1856 MOZ_ASSERT(NS_FAILED(aFailureCode))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode
)), 0))))>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aFailureCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1856)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))"
")"); do { MOZ_CrashSequence(__null, 1856); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1857
1858 mResultCode = aFailureCode;
1859 }
1860
1861 static nsAutoCString MaybeGetBindingClauseForKeyRange(
1862 const Maybe<SerializedKeyRange>& aOptionalKeyRange,
1863 const nsACString& aKeyColumnName);
1864
1865 static nsAutoCString GetBindingClauseForKeyRange(
1866 const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName);
1867
1868 static uint64_t ReinterpretDoubleAsUInt64(double aDouble);
1869
1870 static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange,
1871 mozIStorageStatement* aStatement);
1872
1873 static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange,
1874 mozIStorageStatement* aStatement,
1875 const nsCString& aLocale);
1876
1877 static Result<IndexDataValuesAutoArray, nsresult>
1878 IndexDataValuesFromUpdateInfos(const nsTArray<IndexUpdateInfo>& aUpdateInfos,
1879 const UniqueIndexTable& aUniqueIndexTable);
1880
1881 static nsresult InsertIndexTableRows(
1882 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1883 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues);
1884
1885 static nsresult DeleteIndexDataTableRows(
1886 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
1887 const nsTArray<IndexDataValue>& aIndexValues);
1888
1889 static nsresult DeleteObjectStoreDataTableRowsWithIndexes(
1890 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1891 const Maybe<SerializedKeyRange>& aKeyRange);
1892
1893 static nsresult UpdateIndexValues(
1894 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1895 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues);
1896
1897 static Result<bool, nsresult> ObjectStoreHasIndexes(
1898 DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId);
1899
1900 private:
1901 template <typename KeyTransformation>
1902 static nsresult MaybeBindKeyToStatement(
1903 const Key& aKey, mozIStorageStatement* aStatement,
1904 const nsACString& aParameterName,
1905 const KeyTransformation& aKeyTransformation);
1906
1907 template <typename KeyTransformation>
1908 static nsresult BindTransformedKeyRangeToStatement(
1909 const SerializedKeyRange& aKeyRange, mozIStorageStatement* aStatement,
1910 const KeyTransformation& aKeyTransformation);
1911
1912 // Not to be overridden by subclasses.
1913 NS_DECL_MOZISTORAGEPROGRESSHANDLERvirtual nsresult OnProgress(mozIStorageConnection *aConnection
, bool *_retval) override;
1914};
1915
1916class MOZ_STACK_CLASS DatabaseOperationBase::AutoSetProgressHandler final {
1917 Maybe<mozIStorageConnection&> mConnection;
1918#ifdef DEBUG1
1919 DatabaseOperationBase* mDEBUGDatabaseOp;
1920#endif
1921
1922 public:
1923 AutoSetProgressHandler();
1924
1925 ~AutoSetProgressHandler();
1926
1927 nsresult Register(mozIStorageConnection& aConnection,
1928 DatabaseOperationBase* aDatabaseOp);
1929
1930 void Unregister();
1931};
1932
1933class TransactionDatabaseOperationBase : public DatabaseOperationBase {
1934 enum class InternalState {
1935 Initial,
1936 DatabaseWork,
1937 SendingPreprocess,
1938 WaitingForContinue,
1939 SendingResults,
1940 Completed
1941 };
1942
1943 InitializedOnce<const NotNull<SafeRefPtr<TransactionBase>>> mTransaction;
1944 // Unique request id within the context of the transaction, allocated by the
1945 // transaction in the content process starting from 0. Values less than 0 are
1946 // impossible and forbidden. Used to support the explicit commit() request.
1947 const int64_t mRequestId;
1948 InternalState mInternalState = InternalState::Initial;
1949 bool mWaitingForContinue = false;
1950 const bool mTransactionIsAborted;
1951
1952 protected:
1953 const int64_t mTransactionLoggingSerialNumber;
1954
1955#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1
1956 protected:
1957 // A check only enables when the diagnostic assert turns on. It assumes the
1958 // mUpdateRefcountFunction is a nullptr because the previous
1959 // StartTransactionOp failed on the connection thread and the next write
1960 // operation (e.g. ObjectstoreAddOrPutRequestOp) doesn't have enough time to
1961 // catch up the failure information.
1962 bool mAssumingPreviousOperationFail = false;
1963#endif
1964
1965 public:
1966 void AssertIsOnConnectionThread() const
1967#ifdef DEBUG1
1968 ;
1969#else
1970 {
1971 }
1972#endif
1973
1974 uint64_t StartOnConnectionPool(const nsID& aBackgroundChildLoggingId,
1975 const nsACString& aDatabaseId,
1976 int64_t aLoggingSerialNumber,
1977 const nsTArray<nsString>& aObjectStoreNames,
1978 bool aIsWriteTransaction);
1979
1980 void DispatchToConnectionPool();
1981
1982 TransactionBase& Transaction() { return **mTransaction; }
1983
1984 const TransactionBase& Transaction() const { return **mTransaction; }
1985
1986 bool IsWaitingForContinue() const {
1987 AssertIsOnOwningThread();
1988
1989 return mWaitingForContinue;
1990 }
1991
1992 void NoteContinueReceived();
1993
1994 int64_t TransactionLoggingSerialNumber() const {
1995 return mTransactionLoggingSerialNumber;
1996 }
1997
1998 // May be overridden by subclasses if they need to perform work on the
1999 // background thread before being dispatched. Returning false will kill the
2000 // child actors and prevent dispatch.
2001 virtual bool Init(TransactionBase& aTransaction);
2002
2003 // This callback will be called on the background thread before releasing the
2004 // final reference to this request object. Subclasses may perform any
2005 // additional cleanup here but must always call the base class implementation.
2006 virtual void Cleanup();
2007
2008 protected:
2009 TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction,
2010 int64_t aRequestId);
2011
2012 TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction,
2013 const int64_t aRequestId,
2014 uint64_t aLoggingSerialNumber);
2015
2016 ~TransactionDatabaseOperationBase() override;
2017
2018 virtual void RunOnConnectionThread();
2019
2020 // Must be overridden in subclasses. Called on the target thread to allow the
2021 // subclass to perform necessary database or file operations. A successful
2022 // return value will trigger a SendSuccessResult callback on the background
2023 // thread while a failure value will trigger a SendFailureResult callback.
2024 virtual nsresult DoDatabaseWork(DatabaseConnection* aConnection) = 0;
2025
2026 // May be overriden in subclasses. Called on the background thread to decide
2027 // if the subclass needs to send any preprocess info to the child actor.
2028 virtual bool HasPreprocessInfo();
2029
2030 // May be overriden in subclasses. Called on the background thread to allow
2031 // the subclass to serialize its preprocess info and send it to the child
2032 // actor. A successful return value will trigger a wait for a
2033 // NoteContinueReceived callback on the background thread while a failure
2034 // value will trigger a SendFailureResult callback.
2035 virtual nsresult SendPreprocessInfo();
2036
2037 // Must be overridden in subclasses. Called on the background thread to allow
2038 // the subclass to serialize its results and send them to the child actor. A
2039 // failed return value will trigger a SendFailureResult callback.
2040 virtual nsresult SendSuccessResult() = 0;
2041
2042 // Must be overridden in subclasses. Called on the background thread to allow
2043 // the subclass to send its failure code. Returning false will cause the
2044 // transaction to be aborted with aResultCode. Returning true will not cause
2045 // the transaction to be aborted.
2046 virtual bool SendFailureResult(nsresult aResultCode) = 0;
2047
2048#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1
2049 auto MakeAutoSavepointCleanupHandler(DatabaseConnection& aConnection) {
2050 return [this, &aConnection](const auto) {
2051 if (!aConnection.GetUpdateRefcountFunction()) {
2052 mAssumingPreviousOperationFail = true;
2053 }
2054 };
2055 }
2056#endif
2057
2058 private:
2059 void SendToConnectionPool();
2060
2061 void SendPreprocess();
2062
2063 void SendResults();
2064
2065 void SendPreprocessInfoOrResults(bool aSendPreprocessInfo);
2066
2067 // Not to be overridden by subclasses.
2068 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2069};
2070
2071class Factory final : public PBackgroundIDBFactoryParent,
2072 public AtomicSafeRefCounted<Factory> {
2073 nsCString mSystemLocale;
2074 RefPtr<DatabaseLoggingInfo> mLoggingInfo;
2075
2076#ifdef DEBUG1
2077 bool mActorDestroyed;
2078#endif
2079
2080 // Reference counted.
2081 ~Factory() override;
2082
2083 public:
2084 [[nodiscard]] static SafeRefPtr<Factory> Create(
2085 const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale);
2086
2087 DatabaseLoggingInfo* GetLoggingInfo() const {
2088 AssertIsOnBackgroundThread();
2089 MOZ_ASSERT(mLoggingInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLoggingInfo))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mLoggingInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2089); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo"
")"); do { MOZ_CrashSequence(__null, 2089); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2090
2091 return mLoggingInfo;
2092 }
2093
2094 const nsCString& GetSystemLocale() const { return mSystemLocale; }
2095
2096 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Factory)const char* typeName() const { return "mozilla::dom::indexedDB::Factory"
; } size_t typeSize() const { return sizeof(*this); }
2097 MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(Factory, AtomicSafeRefCounted)template <typename T, ::mozilla::detail::RefCountAtomicity
Atomicity> friend class ::mozilla::detail::SafeRefCounted
; virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<Factory>, "Reference-counted class "
"Factory" " should not have a public destructor. " "Make this class's destructor non-public"
); nsrefcnt r = AtomicSafeRefCounted::AddRef(); if constexpr (
::mozilla::detail::ShouldLogInheritedRefcnt<Factory>) {
NS_LogAddRef((this), (r), ("Factory"), (uint32_t)(sizeof(*this
))); } return r; } virtual MozExternalRefCountType Release() override
{ nsrefcnt r = AtomicSafeRefCounted::Release(); if constexpr
(::mozilla::detail::ShouldLogInheritedRefcnt<Factory>)
{ NS_LogRelease((this), (r), ("Factory")); } return r; }
2098
2099 // Only constructed in Create().
2100 Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo,
2101 const nsACString& aSystemLocale);
2102
2103 // IPDL methods are only called by IPDL.
2104 void ActorDestroy(ActorDestroyReason aWhy) override;
2105
2106 mozilla::ipc::IPCResult RecvDeleteMe() override;
2107
2108 PBackgroundIDBFactoryRequestParent* AllocPBackgroundIDBFactoryRequestParent(
2109 const FactoryRequestParams& aParams) override;
2110
2111 mozilla::ipc::IPCResult RecvPBackgroundIDBFactoryRequestConstructor(
2112 PBackgroundIDBFactoryRequestParent* aActor,
2113 const FactoryRequestParams& aParams) override;
2114
2115 bool DeallocPBackgroundIDBFactoryRequestParent(
2116 PBackgroundIDBFactoryRequestParent* aActor) override;
2117
2118 mozilla::ipc::IPCResult RecvGetDatabases(
2119 const PersistenceType& aPersistenceType,
2120 const PrincipalInfo& aPrincipalInfo,
2121 GetDatabasesResolver&& aResolve) override;
2122
2123 private:
2124 Maybe<ContentParentId> GetContentParentId() const;
2125};
2126
2127class WaitForTransactionsHelper final : public Runnable {
2128 const nsCString mDatabaseId;
2129 nsCOMPtr<nsIRunnable> mCallback;
2130
2131 enum class State { Initial = 0, WaitingForTransactions, Complete } mState;
2132
2133 public:
2134 WaitForTransactionsHelper(const nsACString& aDatabaseId,
2135 nsIRunnable* aCallback)
2136 : Runnable("dom::indexedDB::WaitForTransactionsHelper"),
2137 mDatabaseId(aDatabaseId),
2138 mCallback(aCallback),
2139 mState(State::Initial) {
2140 AssertIsOnBackgroundThread();
2141 MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2141)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 2141); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2142 MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2142); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { MOZ_CrashSequence(__null, 2142); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2143 }
2144
2145 void WaitForTransactions();
2146
2147 NS_INLINE_DECL_REFCOUNTING_INHERITED(WaitForTransactionsHelper, Runnable)virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<WaitForTransactionsHelper>, "Reference-counted class "
"WaitForTransactionsHelper" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = Runnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<WaitForTransactionsHelper>) { NS_LogAddRef((this), (r)
, ("WaitForTransactionsHelper"), (uint32_t)(sizeof(*this))); }
return r; } virtual MozExternalRefCountType Release() override
{ nsrefcnt r = Runnable::Release(); if constexpr (::mozilla::
detail::ShouldLogInheritedRefcnt<WaitForTransactionsHelper
>) { NS_LogRelease((this), (r), ("WaitForTransactionsHelper"
)); } return r; }
2148
2149 private:
2150 ~WaitForTransactionsHelper() override {
2151 MOZ_ASSERT(!mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mCallback))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2151); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback"
")"); do { MOZ_CrashSequence(__null, 2151); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2152 MOZ_ASSERT(mState == State::Complete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Complete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Complete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Complete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2152)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete"
")"); do { MOZ_CrashSequence(__null, 2152); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2153 }
2154
2155 void MaybeWaitForTransactions();
2156
2157 void CallCallback();
2158
2159 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2160};
2161
2162class Database final : public PBackgroundIDBDatabaseParent,
2163 public LinkedListElement<Database>,
2164 public AtomicSafeRefCounted<Database> {
2165 friend class VersionChangeTransaction;
2166
2167 class StartTransactionOp;
2168 class UnmapBlobCallback;
2169
2170 private:
2171 SafeRefPtr<Factory> mFactory;
2172 SafeRefPtr<FullDatabaseMetadata> mMetadata;
2173 SafeRefPtr<DatabaseFileManager> mFileManager;
2174 ClientDirectoryLockHandle mDirectoryLockHandle;
2175 nsTHashSet<TransactionBase*> mTransactions;
2176 nsTHashMap<nsIDHashKey, SafeRefPtr<DatabaseFileInfo>> mMappedBlobs;
2177 RefPtr<DatabaseConnection> mConnection;
2178 const PrincipalInfo mPrincipalInfo;
2179 const Maybe<ContentParentId> mOptionalContentParentId;
2180 // XXX Consider changing this to ClientMetadata.
2181 const quota::OriginMetadata mOriginMetadata;
2182 const nsCString mId;
2183 const nsString mFilePath;
2184 const Maybe<const CipherKey> mKey;
2185 int64_t mDirectoryLockId;
2186 const uint32_t mTelemetryId;
2187 const PersistenceType mPersistenceType;
2188 const bool mInPrivateBrowsing;
2189 FlippedOnce<false> mClosed;
2190 FlippedOnce<false> mInvalidated;
2191 FlippedOnce<false> mActorWasAlive;
2192 FlippedOnce<false> mActorDestroyed;
2193 nsCOMPtr<nsIEventTarget> mBackgroundThread;
2194#ifdef DEBUG1
2195 bool mAllBlobsUnmapped;
2196#endif
2197
2198 public:
2199 // Created by OpenDatabaseOp.
2200 Database(SafeRefPtr<Factory> aFactory, const PrincipalInfo& aPrincipalInfo,
2201 const Maybe<ContentParentId>& aOptionalContentParentId,
2202 const quota::OriginMetadata& aOriginMetadata, uint32_t aTelemetryId,
2203 SafeRefPtr<FullDatabaseMetadata> aMetadata,
2204 SafeRefPtr<DatabaseFileManager> aFileManager,
2205 ClientDirectoryLockHandle aDirectoryLockHandle,
2206 bool aInPrivateBrowsing, const Maybe<const CipherKey>& aMaybeKey);
2207
2208 void AssertIsOnConnectionThread() const {
2209#ifdef DEBUG1
2210 // mConnection is used to cache the result from ConnectionPool's
2211 // GetOrCreateConnection method (potentially avoiding a lock and a hash
2212 // lookup). However, once the connection is closed, the task queue for the
2213 // given database is also destroyed, so the connection, which caches the
2214 // event target it was created on, is no longer reliable for asserting that
2215 // the current thread is the connection thread (mConnection might be reset
2216 // when EnsureConnection is called again, but in the meantime, we have to
2217 // fallback to just checking the main thread and the PBackgroud thread).
2218 if (mConnection && !mConnection->Closed()) {
2219 mConnection->AssertIsOnConnectionThread();
2220 } else {
2221 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2221)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 2221); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2222 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2222)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 2222); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2223 MOZ_ASSERT(mInvalidated)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInvalidated)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInvalidated))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mInvalidated", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2223); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated"
")"); do { MOZ_CrashSequence(__null, 2223); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2224 }
2225#endif
2226 }
2227
2228 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType AddRef() override {
2229 return AtomicSafeRefCounted<Database>::AddRef();
2230 }
2231 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType Release() override {
2232 return AtomicSafeRefCounted<Database>::Release();
2233 }
2234
2235 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Database)const char* typeName() const { return "mozilla::dom::indexedDB::Database"
; } size_t typeSize() const { return sizeof(*this); }
2236
2237 void Invalidate();
2238
2239 bool IsOwnedByProcess(ContentParentId aContentParentId) const {
2240 return mOptionalContentParentId &&
2241 mOptionalContentParentId.value() == aContentParentId;
2242 }
2243
2244 const quota::OriginMetadata& OriginMetadata() const {
2245 return mOriginMetadata;
2246 }
2247
2248 const nsCString& Id() const { return mId; }
2249
2250 Maybe<ClientDirectoryLock&> MaybeDirectoryLockRef() const {
2251 AssertIsOnBackgroundThread();
2252
2253 return ToMaybeRef(mDirectoryLockHandle.get());
2254 }
2255
2256 int64_t DirectoryLockId() const { return mDirectoryLockId; }
2257
2258 uint32_t TelemetryId() const { return mTelemetryId; }
2259
2260 PersistenceType Type() const { return mPersistenceType; }
2261
2262 const nsString& FilePath() const { return mFilePath; }
2263
2264 DatabaseFileManager& GetFileManager() const { return *mFileManager; }
2265
2266 MovingNotNull<SafeRefPtr<DatabaseFileManager>> GetFileManagerPtr() const {
2267 return WrapMovingNotNull(mFileManager.clonePtr());
2268 }
2269
2270 const FullDatabaseMetadata& Metadata() const {
2271 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { MOZ_CrashSequence(__null, 2271); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2272 return *mMetadata;
2273 }
2274
2275 SafeRefPtr<FullDatabaseMetadata> MetadataPtr() const {
2276 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2276); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { MOZ_CrashSequence(__null, 2276); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2277 return mMetadata.clonePtr();
2278 }
2279
2280 PBackgroundParent* GetBackgroundParent() const {
2281 AssertIsOnBackgroundThread();
2282 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2282)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 2282); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2283
2284 return Manager()->Manager();
2285 }
2286
2287 DatabaseLoggingInfo* GetLoggingInfo() const {
2288 AssertIsOnBackgroundThread();
2289 MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFactory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2289); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { MOZ_CrashSequence(__null, 2289); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2290
2291 return mFactory->GetLoggingInfo();
2292 }
2293
2294 bool RegisterTransaction(TransactionBase& aTransaction);
2295
2296 void UnregisterTransaction(TransactionBase& aTransaction);
2297
2298 void SetActorAlive();
2299
2300 void MapBlob(const IPCBlob& aIPCBlob, SafeRefPtr<DatabaseFileInfo> aFileInfo);
2301
2302 bool IsActorAlive() const {
2303 AssertIsOnBackgroundThread();
2304
2305 return mActorWasAlive && !mActorDestroyed;
2306 }
2307
2308 bool IsActorDestroyed() const {
2309 AssertIsOnBackgroundThread();
2310
2311 return mActorWasAlive && mActorDestroyed;
2312 }
2313
2314 bool IsClosed() const {
2315 AssertIsOnBackgroundThread();
2316
2317 return mClosed;
2318 }
2319
2320 bool IsInvalidated() const {
2321 AssertIsOnBackgroundThread();
2322
2323 return mInvalidated;
2324 }
2325
2326 nsresult EnsureConnection();
2327
2328 DatabaseConnection* GetConnection() const {
2329#ifdef DEBUG1
2330 if (mConnection) {
2331 mConnection->AssertIsOnConnectionThread();
2332 }
2333#endif
2334
2335 return mConnection;
2336 }
2337
2338 void Stringify(nsACString& aResult) const;
2339
2340 bool IsInPrivateBrowsing() const {
2341 AssertIsOnBackgroundThread();
2342 return mInPrivateBrowsing;
2343 }
2344
2345 const Maybe<const CipherKey>& MaybeKeyRef() const {
2346 // This can be called on any thread, as it is const.
2347 MOZ_ASSERT(mKey.isSome() == mInPrivateBrowsing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mKey.isSome() == mInPrivateBrowsing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mKey.isSome() == mInPrivateBrowsing
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mKey.isSome() == mInPrivateBrowsing", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2347); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKey.isSome() == mInPrivateBrowsing"
")"); do { MOZ_CrashSequence(__null, 2347); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2348 return mKey;
2349 }
2350
2351 ~Database() override {
2352 MOZ_ASSERT(mClosed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mClosed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mClosed))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")"
); do { MOZ_CrashSequence(__null, 2352); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2353 MOZ_ASSERT_IF(mActorWasAlive, mActorDestroyed)do { if (mActorWasAlive) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mActorDestroyed)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mActorDestroyed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { MOZ_CrashSequence(__null, 2353); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
2354 MOZ_DIAGNOSTIC_ASSERT(!isInList())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!isInList())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!isInList()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!isInList()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2354); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!isInList()"
")"); do { MOZ_CrashSequence(__null, 2354); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2355
2356 NS_ProxyRelease("ReleaseIDBFactory", mBackgroundThread.get(),
2357 mFactory.forget());
2358 }
2359
2360 private:
2361 [[nodiscard]] SafeRefPtr<DatabaseFileInfo> GetBlob(const IPCBlob& aIPCBlob);
2362
2363 void UnmapBlob(const nsID& aID);
2364
2365 void UnmapAllBlobs();
2366
2367 bool CloseInternal();
2368
2369 void MaybeCloseConnection();
2370
2371 void ConnectionClosedCallback();
2372
2373 void CleanupMetadata();
2374
2375 // IPDL methods are only called by IPDL.
2376 void ActorDestroy(ActorDestroyReason aWhy) override;
2377
2378 PBackgroundIDBDatabaseFileParent* AllocPBackgroundIDBDatabaseFileParent(
2379 const IPCBlob& aIPCBlob) override;
2380
2381 bool DeallocPBackgroundIDBDatabaseFileParent(
2382 PBackgroundIDBDatabaseFileParent* aActor) override;
2383
2384 already_AddRefed<PBackgroundIDBTransactionParent>
2385 AllocPBackgroundIDBTransactionParent(
2386 const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode,
2387 const Durability& aDurability) override;
2388
2389 mozilla::ipc::IPCResult RecvPBackgroundIDBTransactionConstructor(
2390 PBackgroundIDBTransactionParent* aActor,
2391 nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode,
2392 const Durability& aDurability) override;
2393
2394 mozilla::ipc::IPCResult RecvDeleteMe() override;
2395
2396 mozilla::ipc::IPCResult RecvBlocked() override;
2397
2398 mozilla::ipc::IPCResult RecvClose() override;
2399
2400 template <typename T>
2401 static bool InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable);
2402};
2403
2404class Database::StartTransactionOp final
2405 : public TransactionDatabaseOperationBase {
2406 friend class Database;
2407
2408 private:
2409 explicit StartTransactionOp(SafeRefPtr<TransactionBase> aTransaction)
2410 : TransactionDatabaseOperationBase(std::move(aTransaction),
2411 /* aRequestId */ 0,
2412 /* aLoggingSerialNumber */ 0) {}
2413
2414 ~StartTransactionOp() override = default;
2415
2416 void RunOnConnectionThread() override;
2417
2418 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
2419
2420 nsresult SendSuccessResult() override;
2421
2422 bool SendFailureResult(nsresult aResultCode) override;
2423
2424 void Cleanup() override;
2425};
2426
2427class Database::UnmapBlobCallback final
2428 : public RemoteLazyInputStreamParentCallback {
2429 SafeRefPtr<Database> mDatabase;
2430 nsCOMPtr<nsISerialEventTarget> mBackgroundThread;
2431
2432 public:
2433 explicit UnmapBlobCallback(SafeRefPtr<Database> aDatabase)
2434 : mDatabase(std::move(aDatabase)),
2435 mBackgroundThread(GetCurrentSerialEventTarget()) {
2436 AssertIsOnBackgroundThread();
2437 }
2438
2439 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(Database::UnmapBlobCallback, override)public: MozExternalRefCountType AddRef(void) override { static_assert
(!std::is_destructible_v<Database::UnmapBlobCallback>, "Reference-counted class "
"Database::UnmapBlobCallback" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2439); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 2439
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("Database::UnmapBlobCallback"), (uint32_t)(sizeof(*this))
); return (nsrefcnt)count; } MozExternalRefCountType Release(
void) override { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2439); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 2439
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("Database::UnmapBlobCallback")); if (count == 0) { delete
(this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
2440
2441 void ActorDestroyed(const nsID& aID) override {
2442 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2442); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2442); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2443 mBackgroundThread->Dispatch(NS_NewRunnableFunction(
2444 "UnmapBlobCallback", [aID, database = std::move(mDatabase)] {
2445 AssertIsOnBackgroundThread();
2446 database->UnmapBlob(aID);
2447 }));
2448 }
2449
2450 private:
2451 ~UnmapBlobCallback() = default;
2452};
2453
2454/**
2455 * In coordination with IDBDatabase's mFileActors weak-map on the child side, a
2456 * long-lived mapping from a child process's live Blobs to their corresponding
2457 * DatabaseFileInfo in our owning database. Assists in avoiding redundant IPC
2458 * traffic and disk storage. This includes both:
2459 * - Blobs retrieved from this database and sent to the child that do not need
2460 * to be written to disk because they already exist on disk in this database's
2461 * files directory.
2462 * - Blobs retrieved from other databases or from anywhere else that will need
2463 * to be written to this database's files directory. In this case we will
2464 * hold a reference to its BlobImpl in mBlobImpl until we have successfully
2465 * written the Blob to disk.
2466 *
2467 * Relevant Blob context: Blobs sent from the parent process to child processes
2468 * are automatically linked back to their source BlobImpl when the child process
2469 * references the Blob via IPC. This is done using the internal IPCBlob
2470 * inputStream actor ID to DatabaseFileInfo mapping. However, when getting an
2471 * actor in the child process for sending an in-child-created Blob to the
2472 * parent process, there is (currently) no Blob machinery to automatically
2473 * establish and reuse a long-lived Actor. As a result, without IDB's weak-map
2474 * cleverness, a memory-backed Blob repeatedly sent from the child to the parent
2475 * would appear as a different Blob each time, requiring the Blob data to be
2476 * sent over IPC each time as well as potentially needing to be written to disk
2477 * each time.
2478 *
2479 * This object remains alive as long as there is an active child actor or an
2480 * ObjectStoreAddOrPutRequestOp::StoredFileInfo for a queued or active add/put
2481 * op is holding a reference to us.
2482 */
2483class DatabaseFile final : public PBackgroundIDBDatabaseFileParent {
2484 // mBlobImpl's ownership lifecycle:
2485 // - Initialized on the background thread at creation time. Then
2486 // responsibility is handed off to the connection thread.
2487 // - Checked and used by the connection thread to generate a stream to write
2488 // the blob to disk by an add/put operation.
2489 // - Cleared on the connection thread once the file has successfully been
2490 // written to disk.
2491 InitializedOnce<const RefPtr<BlobImpl>> mBlobImpl;
2492 const SafeRefPtr<DatabaseFileInfo> mFileInfo;
2493
2494 public:
2495 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::DatabaseFile)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<mozilla::dom::indexedDB::DatabaseFile
>, "Reference-counted class " "mozilla::dom::indexedDB::DatabaseFile"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2495); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 2495
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::DatabaseFile"), (uint32_t)(sizeof
(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2495); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 2495
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::DatabaseFile")); if (count
== 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
;
2496
2497 const DatabaseFileInfo& GetFileInfo() const {
2498 AssertIsOnBackgroundThread();
2499
2500 return *mFileInfo;
2501 }
2502
2503 SafeRefPtr<DatabaseFileInfo> GetFileInfoPtr() const {
2504 AssertIsOnBackgroundThread();
2505
2506 return mFileInfo.clonePtr();
2507 }
2508
2509 /**
2510 * If mBlobImpl is non-null (implying the contents of this file have not yet
2511 * been written to disk), then return an input stream. Otherwise, if mBlobImpl
2512 * is null (because the contents have been written to disk), returns null.
2513 */
2514 [[nodiscard]] nsCOMPtr<nsIInputStream> GetInputStream(ErrorResult& rv) const;
2515
2516 /**
2517 * To be called upon successful copying of the stream GetInputStream()
2518 * returned so that we won't try and redundantly write the file to disk in the
2519 * future. This is a separate step from GetInputStream() because
2520 * the write could fail due to quota errors that happen now but that might
2521 * not happen in a future attempt.
2522 */
2523 void WriteSucceededClearBlobImpl() {
2524 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2524)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 2524); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2525
2526 MOZ_ASSERT(*mBlobImpl)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(*mBlobImpl)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(*mBlobImpl))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("*mBlobImpl", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl"
")"); do { MOZ_CrashSequence(__null, 2526); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2527 mBlobImpl.destroy();
2528 }
2529
2530 public:
2531 // Called when sending to the child.
2532 explicit DatabaseFile(SafeRefPtr<DatabaseFileInfo> aFileInfo)
2533 : mBlobImpl{nullptr}, mFileInfo(std::move(aFileInfo)) {
2534 AssertIsOnBackgroundThread();
2535 MOZ_ASSERT(mFileInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileInfo))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2535); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")"
); do { MOZ_CrashSequence(__null, 2535); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2536 }
2537
2538 // Called when receiving from the child.
2539 DatabaseFile(RefPtr<BlobImpl> aBlobImpl,
2540 SafeRefPtr<DatabaseFileInfo> aFileInfo)
2541 : mBlobImpl(std::move(aBlobImpl)), mFileInfo(std::move(aFileInfo)) {
2542 AssertIsOnBackgroundThread();
2543 MOZ_ASSERT(*mBlobImpl)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(*mBlobImpl)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(*mBlobImpl))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("*mBlobImpl", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2543); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl"
")"); do { MOZ_CrashSequence(__null, 2543); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2544 MOZ_ASSERT(mFileInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileInfo))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2544); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")"
); do { MOZ_CrashSequence(__null, 2544); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2545 }
2546
2547 private:
2548 ~DatabaseFile() override = default;
2549
2550 void ActorDestroy(ActorDestroyReason aWhy) override {
2551 AssertIsOnBackgroundThread();
2552 }
2553};
2554
2555nsCOMPtr<nsIInputStream> DatabaseFile::GetInputStream(ErrorResult& rv) const {
2556 // We should only be called from our DB connection thread, not the background
2557 // thread.
2558 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2558)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 2558); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2559
2560 // If we were constructed without a BlobImpl, or WriteSucceededClearBlobImpl
2561 // was already called, return nullptr.
2562 if (!mBlobImpl || !*mBlobImpl) {
2563 return nullptr;
2564 }
2565
2566 nsCOMPtr<nsIInputStream> inputStream;
2567 (*mBlobImpl)->CreateInputStream(getter_AddRefs(inputStream), rv);
2568 if (rv.Failed()) {
2569 return nullptr;
2570 }
2571
2572 return inputStream;
2573}
2574
2575class TransactionBase : public AtomicSafeRefCounted<TransactionBase> {
2576 friend class CursorBase;
2577
2578 template <IDBCursorType CursorType>
2579 friend class Cursor;
2580
2581 class CommitOp;
2582
2583 protected:
2584 using Mode = IDBTransaction::Mode;
2585 using Durability = IDBTransaction::Durability;
2586
2587 private:
2588 const SafeRefPtr<Database> mDatabase;
2589 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>
2590 mModifiedAutoIncrementObjectStoreMetadataArray;
2591 LazyInitializedOnceNotNull<const uint64_t> mTransactionId;
2592 const nsCString mDatabaseId;
2593 const int64_t mLoggingSerialNumber;
2594 uint64_t mActiveRequestCount;
2595 Atomic<bool> mInvalidatedOnAnyThread;
2596 const Mode mMode;
2597 const Durability mDurability;
2598 FlippedOnce<false> mInitialized;
2599 FlippedOnce<false> mHasBeenActiveOnConnectionThread;
2600 FlippedOnce<false> mActorDestroyed;
2601 FlippedOnce<false> mInvalidated;
2602
2603 protected:
2604 nsresult mResultCode;
2605 FlippedOnce<false> mCommitOrAbortReceived;
2606 FlippedOnce<false> mCommittedOrAborted;
2607 FlippedOnce<false> mForceAborted;
2608 LazyInitializedOnce<const Maybe<int64_t>> mLastRequestBeforeCommit;
2609 Maybe<int64_t> mLastFailedRequest;
2610
2611 public:
2612 void AssertIsOnConnectionThread() const {
2613 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2613); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2613); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2614 mDatabase->AssertIsOnConnectionThread();
2615 }
2616
2617 bool IsActorDestroyed() const {
2618 AssertIsOnBackgroundThread();
2619
2620 return mActorDestroyed;
2621 }
2622
2623 // Must be called on the background thread.
2624 bool IsInvalidated() const {
2625 MOZ_ASSERT(IsOnBackgroundThread(), "Use IsInvalidatedOnAnyThread()")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnBackgroundThread()"
" (" "Use IsInvalidatedOnAnyThread()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2625); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()"
") (" "Use IsInvalidatedOnAnyThread()" ")"); do { MOZ_CrashSequence
(__null, 2625); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false)
;
2626 MOZ_ASSERT_IF(mInvalidated, NS_FAILED(mResultCode))do { if (mInvalidated) { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(((bool)(__builtin_expect(!
!(NS_FAILED_impl(mResultCode)), 0))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
NS_FAILED_impl(mResultCode)), 0)))))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2626)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))"
")"); do { MOZ_CrashSequence(__null, 2626); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
2627
2628 return mInvalidated;
2629 }
2630
2631 // May be called on any thread, but is more expensive than IsInvalidated().
2632 bool IsInvalidatedOnAnyThread() const { return mInvalidatedOnAnyThread; }
2633
2634 void Init(const uint64_t aTransactionId) {
2635 AssertIsOnBackgroundThread();
2636 MOZ_ASSERT(aTransactionId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTransactionId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aTransactionId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aTransactionId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2636)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransactionId" ")"
); do { MOZ_CrashSequence(__null, 2636); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2637
2638 mTransactionId.init(aTransactionId);
2639 mInitialized.Flip();
2640 }
2641
2642 void SetActiveOnConnectionThread() {
2643 AssertIsOnConnectionThread();
2644 mHasBeenActiveOnConnectionThread.Flip();
2645 }
2646
2647 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::TransactionBase)const char* typeName() const { return "mozilla::dom::indexedDB::TransactionBase"
; } size_t typeSize() const { return sizeof(*this); }
2648
2649 void Abort(nsresult aResultCode, bool aForce);
2650
2651 uint64_t TransactionId() const { return *mTransactionId; }
2652
2653 const nsACString& DatabaseId() const { return mDatabaseId; }
2654
2655 Mode GetMode() const { return mMode; }
2656
2657 Durability GetDurability() const { return mDurability; }
2658
2659 const Database& GetDatabase() const {
2660 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2660); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2660); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2661
2662 return *mDatabase;
2663 }
2664
2665 Database& GetMutableDatabase() const {
2666 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2666); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2666); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2667
2668 return *mDatabase;
2669 }
2670
2671 SafeRefPtr<Database> GetDatabasePtr() const {
2672 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2672); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2672); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2673
2674 return mDatabase.clonePtr();
2675 }
2676
2677 DatabaseLoggingInfo* GetLoggingInfo() const {
2678 AssertIsOnBackgroundThread();
2679 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2679); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2679); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2680
2681 return mDatabase->GetLoggingInfo();
2682 }
2683
2684 int64_t LoggingSerialNumber() const { return mLoggingSerialNumber; }
2685
2686 bool IsAborted() const {
2687 AssertIsOnBackgroundThread();
2688
2689 return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
;
2690 }
2691
2692 [[nodiscard]] SafeRefPtr<FullObjectStoreMetadata> GetMetadataForObjectStoreId(
2693 IndexOrObjectStoreId aObjectStoreId) const;
2694
2695 [[nodiscard]] SafeRefPtr<FullIndexMetadata> GetMetadataForIndexId(
2696 FullObjectStoreMetadata& aObjectStoreMetadata,
2697 IndexOrObjectStoreId aIndexId) const;
2698
2699 PBackgroundParent* GetBackgroundParent() const {
2700 AssertIsOnBackgroundThread();
2701 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2701)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 2701); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2702
2703 return GetDatabase().GetBackgroundParent();
2704 }
2705
2706 void NoteModifiedAutoIncrementObjectStore(
2707 const SafeRefPtr<FullObjectStoreMetadata>& aMetadata);
2708
2709 void ForgetModifiedAutoIncrementObjectStore(
2710 FullObjectStoreMetadata& aMetadata);
2711
2712 void NoteActiveRequest();
2713
2714 void NoteFinishedRequest(int64_t aRequestId, nsresult aResultCode);
2715
2716 void Invalidate();
2717
2718 virtual ~TransactionBase();
2719
2720 protected:
2721 TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode,
2722 Durability aDurability);
2723
2724 void NoteActorDestroyed() {
2725 AssertIsOnBackgroundThread();
2726
2727 mActorDestroyed.Flip();
2728 }
2729
2730#ifdef DEBUG1
2731 // Only called by VersionChangeTransaction.
2732 void FakeActorDestroyed() { mActorDestroyed.EnsureFlipped(); }
2733#endif
2734
2735 mozilla::ipc::IPCResult RecvCommit(IProtocol* aActor,
2736 const Maybe<int64_t> aLastRequest);
2737
2738 mozilla::ipc::IPCResult RecvAbort(IProtocol* aActor, nsresult aResultCode);
2739
2740 void MaybeCommitOrAbort() {
2741 AssertIsOnBackgroundThread();
2742
2743 // If we've already committed or aborted then there's nothing else to do.
2744 if (mCommittedOrAborted) {
2745 return;
2746 }
2747
2748 // If there are active requests then we have to wait for those requests to
2749 // complete (see NoteFinishedRequest).
2750 if (mActiveRequestCount) {
2751 return;
2752 }
2753
2754 // If we haven't yet received a commit or abort message then there could be
2755 // additional requests coming so we should wait unless we're being forced to
2756 // abort.
2757 if (!mCommitOrAbortReceived && !mForceAborted) {
2758 return;
2759 }
2760
2761 CommitOrAbort();
2762 }
2763
2764 PBackgroundIDBRequestParent* AllocRequest(const int64_t aRequestId,
2765 RequestParams&& aParams,
2766 bool aTrustParams);
2767
2768 bool StartRequest(PBackgroundIDBRequestParent* aActor);
2769
2770 bool DeallocRequest(PBackgroundIDBRequestParent* aActor);
2771
2772 already_AddRefed<PBackgroundIDBCursorParent> AllocCursor(
2773 const OpenCursorParams& aParams, bool aTrustParams);
2774
2775 bool StartCursor(PBackgroundIDBCursorParent* aActor, const int64_t aRequestId,
2776 const OpenCursorParams& aParams);
2777
2778 virtual void UpdateMetadata(nsresult aResult) {}
2779
2780 virtual void SendCompleteNotification(nsresult aResult) = 0;
2781
2782 private:
2783 bool VerifyRequestParams(const RequestParams& aParams) const;
2784
2785 bool VerifyRequestParams(const SerializedKeyRange& aParams) const;
2786
2787 bool VerifyRequestParams(const ObjectStoreAddPutParams& aParams) const;
2788
2789 bool VerifyRequestParams(const Maybe<SerializedKeyRange>& aParams) const;
2790
2791 void CommitOrAbort();
2792};
2793
2794class TransactionBase::CommitOp final : public DatabaseOperationBase,
2795 public ConnectionPool::FinishCallback {
2796 friend class TransactionBase;
2797
2798 SafeRefPtr<TransactionBase> mTransaction;
2799 nsresult mResultCode; ///< TODO: There is also a mResultCode in
2800 ///< DatabaseOperationBase. Is there a reason not to
2801 ///< use that? At least a more specific name should be
2802 ///< given to this one.
2803
2804 private:
2805 CommitOp(SafeRefPtr<TransactionBase> aTransaction, nsresult aResultCode);
2806
2807 ~CommitOp() override = default;
2808
2809 // Writes new autoIncrement counts to database.
2810 nsresult WriteAutoIncrementCounts();
2811
2812 // Updates counts after a database activity has finished.
2813 void CommitOrRollbackAutoIncrementCounts();
2814
2815 void AssertForeignKeyConsistency(DatabaseConnection* aConnection)
2816#ifdef DEBUG1
2817 ;
2818#else
2819 {
2820 }
2821#endif
2822
2823 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2824
2825 void TransactionFinishedBeforeUnblock() override;
2826
2827 void TransactionFinishedAfterUnblock() override;
2828
2829 public:
2830 // We need to declare all of nsISupports, because FinishCallback has
2831 // a pure-virtual nsISupports declaration.
2832 NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override;
2833};
2834
2835class NormalTransaction final : public TransactionBase,
2836 public PBackgroundIDBTransactionParent {
2837 nsTArray<SafeRefPtr<FullObjectStoreMetadata>> mObjectStores;
2838
2839 // Reference counted.
2840 ~NormalTransaction() override = default;
2841
2842 bool IsSameProcessActor();
2843
2844 // Only called by TransactionBase.
2845 void SendCompleteNotification(nsresult aResult) override;
2846
2847 // IPDL methods are only called by IPDL.
2848 void ActorDestroy(ActorDestroyReason aWhy) override;
2849
2850 mozilla::ipc::IPCResult RecvDeleteMe() override;
2851
2852 mozilla::ipc::IPCResult RecvCommit(
2853 const Maybe<int64_t>& aLastRequest) override;
2854
2855 mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override;
2856
2857 PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent(
2858 const int64_t& aRequestId, const RequestParams& aParams) override;
2859
2860 mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor(
2861 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
2862 const RequestParams& aParams) override;
2863
2864 bool DeallocPBackgroundIDBRequestParent(
2865 PBackgroundIDBRequestParent* aActor) override;
2866
2867 already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent(
2868 const int64_t& aRequestId, const OpenCursorParams& aParams) override;
2869
2870 mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor(
2871 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
2872 const OpenCursorParams& aParams) override;
2873
2874 public:
2875 // This constructor is only called by Database.
2876 NormalTransaction(
2877 SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode,
2878 TransactionBase::Durability aDurability,
2879 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores);
2880
2881 MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(NormalTransaction, TransactionBase)template <typename T, ::mozilla::detail::RefCountAtomicity
Atomicity> friend class ::mozilla::detail::SafeRefCounted
; virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<NormalTransaction>, "Reference-counted class "
"NormalTransaction" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = TransactionBase
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<NormalTransaction>) { NS_LogAddRef((this), (r), ("NormalTransaction"
), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType
Release() override { nsrefcnt r = TransactionBase::Release()
; if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt<
NormalTransaction>) { NS_LogRelease((this), (r), ("NormalTransaction"
)); } return r; }
2882};
2883
2884class VersionChangeTransaction final
2885 : public TransactionBase,
2886 public PBackgroundIDBVersionChangeTransactionParent {
2887 friend class OpenDatabaseOp;
2888
2889 RefPtr<OpenDatabaseOp> mOpenDatabaseOp;
2890 SafeRefPtr<FullDatabaseMetadata> mOldMetadata;
2891
2892 FlippedOnce<false> mActorWasAlive;
2893
2894 public:
2895 // Only called by OpenDatabaseOp.
2896 explicit VersionChangeTransaction(OpenDatabaseOp* aOpenDatabaseOp);
2897
2898 MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(VersionChangeTransaction,template <typename T, ::mozilla::detail::RefCountAtomicity
Atomicity> friend class ::mozilla::detail::SafeRefCounted
; virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<VersionChangeTransaction>, "Reference-counted class "
"VersionChangeTransaction" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = TransactionBase
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<VersionChangeTransaction>) { NS_LogAddRef((this), (r),
("VersionChangeTransaction"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = TransactionBase::Release(); if constexpr (::mozilla::detail
::ShouldLogInheritedRefcnt<VersionChangeTransaction>) {
NS_LogRelease((this), (r), ("VersionChangeTransaction")); } return
r; }
2899 TransactionBase)template <typename T, ::mozilla::detail::RefCountAtomicity
Atomicity> friend class ::mozilla::detail::SafeRefCounted
; virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<VersionChangeTransaction>, "Reference-counted class "
"VersionChangeTransaction" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = TransactionBase
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<VersionChangeTransaction>) { NS_LogAddRef((this), (r),
("VersionChangeTransaction"), (uint32_t)(sizeof(*this))); } return
r; } virtual MozExternalRefCountType Release() override { nsrefcnt
r = TransactionBase::Release(); if constexpr (::mozilla::detail
::ShouldLogInheritedRefcnt<VersionChangeTransaction>) {
NS_LogRelease((this), (r), ("VersionChangeTransaction")); } return
r; }
2900
2901 private:
2902 // Reference counted.
2903 ~VersionChangeTransaction() override;
2904
2905 bool IsSameProcessActor();
2906
2907 // Only called by OpenDatabaseOp.
2908 bool CopyDatabaseMetadata();
2909
2910 void SetActorAlive();
2911
2912 // Only called by TransactionBase.
2913 void UpdateMetadata(nsresult aResult) override;
2914
2915 // Only called by TransactionBase.
2916 void SendCompleteNotification(nsresult aResult) override;
2917
2918 // IPDL methods are only called by IPDL.
2919 void ActorDestroy(ActorDestroyReason aWhy) override;
2920
2921 mozilla::ipc::IPCResult RecvDeleteMe() override;
2922
2923 mozilla::ipc::IPCResult RecvCommit(
2924 const Maybe<int64_t>& aLastRequest) override;
2925
2926 mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override;
2927
2928 mozilla::ipc::IPCResult RecvCreateObjectStore(
2929 const ObjectStoreMetadata& aMetadata) override;
2930
2931 mozilla::ipc::IPCResult RecvDeleteObjectStore(
2932 const IndexOrObjectStoreId& aObjectStoreId) override;
2933
2934 mozilla::ipc::IPCResult RecvRenameObjectStore(
2935 const IndexOrObjectStoreId& aObjectStoreId,
2936 const nsAString& aName) override;
2937
2938 mozilla::ipc::IPCResult RecvCreateIndex(
2939 const IndexOrObjectStoreId& aObjectStoreId,
2940 const IndexMetadata& aMetadata) override;
2941
2942 mozilla::ipc::IPCResult RecvDeleteIndex(
2943 const IndexOrObjectStoreId& aObjectStoreId,
2944 const IndexOrObjectStoreId& aIndexId) override;
2945
2946 mozilla::ipc::IPCResult RecvRenameIndex(
2947 const IndexOrObjectStoreId& aObjectStoreId,
2948 const IndexOrObjectStoreId& aIndexId, const nsAString& aName) override;
2949
2950 PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent(
2951 const int64_t& aRequestId, const RequestParams& aParams) override;
2952
2953 mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor(
2954 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
2955 const RequestParams& aParams) override;
2956
2957 bool DeallocPBackgroundIDBRequestParent(
2958 PBackgroundIDBRequestParent* aActor) override;
2959
2960 already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent(
2961 const int64_t& aRequestId, const OpenCursorParams& aParams) override;
2962
2963 mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor(
2964 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
2965 const OpenCursorParams& aParams) override;
2966};
2967
2968class FactoryOp : public DatabaseOperationBase,
2969 public LinkedListElement<FactoryOp> {
2970 public:
2971 struct MaybeBlockedDatabaseInfo final {
2972 SafeRefPtr<Database> mDatabase;
2973 bool mBlocked;
2974
2975 MaybeBlockedDatabaseInfo(MaybeBlockedDatabaseInfo&&) = default;
2976 MaybeBlockedDatabaseInfo& operator=(MaybeBlockedDatabaseInfo&&) = default;
2977
2978 MOZ_IMPLICIT MaybeBlockedDatabaseInfo(SafeRefPtr<Database> aDatabase)
2979 : mDatabase(std::move(aDatabase)), mBlocked(false) {
2980 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 2980); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 2980); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2981
2982 MOZ_COUNT_CTOR(FactoryOp::MaybeBlockedDatabaseInfo)do { static_assert(std::is_class_v<FactoryOp::MaybeBlockedDatabaseInfo
>, "Token '" "FactoryOp::MaybeBlockedDatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, FactoryOp::
MaybeBlockedDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo"
, sizeof(*this)); } while (0)
;
2983 }
2984
2985 ~MaybeBlockedDatabaseInfo() {
2986 MOZ_COUNT_DTOR(FactoryOp::MaybeBlockedDatabaseInfo)do { static_assert(std::is_class_v<FactoryOp::MaybeBlockedDatabaseInfo
>, "Token '" "FactoryOp::MaybeBlockedDatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, FactoryOp::
MaybeBlockedDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo"
, sizeof(*this)); } while (0)
;
2987 }
2988
2989 bool operator==(const Database* aOther) const {
2990 return mDatabase == aOther;
2991 }
2992
2993 Database* operator->() const& MOZ_NO_ADDREF_RELEASE_ON_RETURN {
2994 return mDatabase.unsafeGetRawPtr();
2995 }
2996 };
2997
2998 protected:
2999 enum class State {
3000 // Just created on the PBackground thread, dispatched to the current thread.
3001 // Next step is either SendingResults if opening initialization failed, or
3002 // DirectoryOpenPending if the opening initialization succeeded.
3003 Initial,
3004
3005 // Waiting for directory open allowed on the PBackground thread. The next
3006 // step is either SendingResults if directory lock failed to acquire, or
3007 // DirectoryWorkOpen if the factory operation is not tied up to a specific
3008 // database, or DatabaseOpenPending otherwise.
3009 DirectoryOpenPending,
3010
3011 // Waiting to do/doing directory work on the QuotaManager IO thread. Its
3012 // next step is DirectoryWorkDone if directory work was successful or
3013 // SendingResults if directory work failed.
3014 DirectoryWorkOpen,
3015
3016 // Checking if database work can be started. If the database is not blocked
3017 // by other factory operations then the next step is DatabaseWorkOpen.
3018 // Otherwise the next step is DatabaseOpenPending.
3019 DirectoryWorkDone,
3020
3021 // Waiting for database open allowed on the PBackground thread. The next
3022 // step is DatabaseWorkOpen.
3023 DatabaseOpenPending,
3024
3025 // Waiting to do/doing work on the QuotaManager IO thread. Its next step is
3026 // either BeginVersionChange if the requested version doesn't match the
3027 // existing database version or SendingResults if the versions match.
3028 DatabaseWorkOpen,
3029
3030 // Starting a version change transaction or deleting a database on the
3031 // PBackground thread. We need to notify other databases that a version
3032 // change is about to happen, and maybe tell the request that a version
3033 // change has been blocked. If databases are notified then the next step is
3034 // WaitingForOtherDatabasesToClose. Otherwise the next step is
3035 // WaitingForTransactionsToComplete.
3036 BeginVersionChange,
3037
3038 // Waiting for other databases to close on the PBackground thread. This
3039 // state may persist until all databases are closed. The next state is
3040 // WaitingForTransactionsToComplete.
3041 WaitingForOtherDatabasesToClose,
3042
3043 // Waiting for all transactions that could interfere with this operation to
3044 // complete on the PBackground thread. Next state is
3045 // DatabaseWorkVersionChange.
3046 WaitingForTransactionsToComplete,
3047
3048 // Waiting to do/doing work on the "work thread". This involves waiting for
3049 // the VersionChangeOp (OpenDatabaseOp and DeleteDatabaseOp each have a
3050 // different implementation) to do its work. If the VersionChangeOp is
3051 // OpenDatabaseOp and it succeeded then the next state is
3052 // DatabaseWorkVersionUpdate. Otherwise the next step is SendingResults.
3053 DatabaseWorkVersionChange,
3054
3055 // Waiting to do/doing finalization work on the QuotaManager IO thread.
3056 // Eventually the state will transition to SendingResults.
3057 DatabaseWorkVersionUpdate,
3058
3059 // Waiting to send/sending results on the PBackground thread. Next step is
3060 // Completed.
3061 SendingResults,
3062
3063 // All done.
3064 Completed
3065 };
3066
3067 // Must be released on the background thread!
3068 SafeRefPtr<Factory> mFactory;
3069
3070 Maybe<ContentParentId> mContentParentId;
3071
3072 // Must be released on the main thread!
3073 ClientDirectoryLockHandle mDirectoryLockHandle;
3074
3075 nsTArray<NotNull<RefPtr<FactoryOp>>> mBlocking;
3076 nsTHashSet<RefPtr<FactoryOp>> mBlockedOn;
3077
3078 nsTArray<MaybeBlockedDatabaseInfo> mMaybeBlockedDatabases;
3079
3080 const PrincipalInfo mPrincipalInfo;
3081 OriginMetadata mOriginMetadata;
3082 Maybe<nsString> mDatabaseName;
3083 Maybe<nsCString> mDatabaseId;
3084 Maybe<nsString> mDatabaseFilePath;
3085 int64_t mDirectoryLockId;
3086 const PersistenceType mPersistenceType;
3087 State mState;
3088 bool mWaitingForPermissionRetry;
3089 bool mEnforcingQuota;
3090 const bool mDeleting;
3091 FlippedOnce<false> mInPrivateBrowsing;
3092
3093 public:
3094 const nsACString& Origin() const {
3095 AssertIsOnOwningThread();
3096
3097 return mOriginMetadata.mOrigin;
3098 }
3099
3100 const Maybe<nsString>& DatabaseNameRef() const {
3101 AssertIsOnOwningThread();
3102
3103 return mDatabaseName;
3104 }
3105
3106 bool DatabaseFilePathIsKnown() const {
3107 AssertIsOnOwningThread();
3108
3109 return mDatabaseFilePath.isSome();
3110 }
3111
3112 const nsAString& DatabaseFilePath() const {
3113 AssertIsOnOwningThread();
3114 MOZ_ASSERT(mDatabaseFilePath)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseFilePath)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseFilePath))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mDatabaseFilePath"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3114)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath"
")"); do { MOZ_CrashSequence(__null, 3114); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3115
3116 return mDatabaseFilePath.ref();
3117 }
3118
3119 nsresult DispatchThisAfterProcessingCurrentEvent(
3120 nsCOMPtr<nsIEventTarget> aEventTarget);
3121
3122 void NoteDatabaseBlocked(Database* aDatabase);
3123
3124 void NoteDatabaseClosed(Database* aDatabase);
3125
3126#ifdef DEBUG1
3127 bool HasBlockedDatabases() const { return !mMaybeBlockedDatabases.IsEmpty(); }
3128#endif
3129
3130 void StringifyState(nsACString& aResult) const;
3131
3132 void Stringify(nsACString& aResult) const;
3133
3134 protected:
3135 FactoryOp(SafeRefPtr<Factory> aFactory,
3136 const Maybe<ContentParentId>& aContentParentId,
3137 const PersistenceType aPersistenceType,
3138 const PrincipalInfo& aPrincipalInfo,
3139 const Maybe<nsString>& aDatabaseName, bool aDeleting);
3140
3141 ~FactoryOp() override {
3142 // Normally this would be out-of-line since it is a virtual function but
3143 // MSVC 2010 fails to link for some reason if it is not inlined here...
3144 MOZ_ASSERT_IF(OperationMayProceed(),do { if (OperationMayProceed()) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(mState == State::
Initial || mState == State::Completed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial || mState
== State::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mState == State::Initial || mState == State::Completed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed"
")"); do { MOZ_CrashSequence(__null, 3145); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3145 mState == State::Initial || mState == State::Completed)do { if (OperationMayProceed()) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(mState == State::
Initial || mState == State::Completed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial || mState
== State::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mState == State::Initial || mState == State::Completed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed"
")"); do { MOZ_CrashSequence(__null, 3145); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3146 MOZ_DIAGNOSTIC_ASSERT(!isInList())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!isInList())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!isInList()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!isInList()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3146); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!isInList()"
")"); do { MOZ_CrashSequence(__null, 3146); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3147 }
3148
3149 nsresult Open();
3150
3151 nsresult DirectoryOpen();
3152
3153 nsresult DirectoryWorkDone();
3154
3155 nsresult SendToIOThread();
3156
3157 void WaitForTransactions();
3158
3159 void CleanupMetadata();
3160
3161 void FinishSendResults();
3162
3163 nsresult SendVersionChangeMessages(DatabaseActorInfo* aDatabaseActorInfo,
3164 Maybe<Database&> aOpeningDatabase,
3165 uint64_t aOldVersion,
3166 const Maybe<uint64_t>& aNewVersion);
3167
3168 // Methods that subclasses must implement.
3169 virtual nsresult DoDirectoryWork() = 0;
3170
3171 virtual nsresult DatabaseOpen() = 0;
3172
3173 virtual nsresult DoDatabaseWork() = 0;
3174
3175 virtual nsresult BeginVersionChange() = 0;
3176
3177 virtual bool AreActorsAlive() = 0;
3178
3179 virtual nsresult DispatchToWorkThread() = 0;
3180
3181 virtual nsresult DoVersionUpdate() = 0;
3182
3183 // Should only be called by Run().
3184 virtual void SendResults() = 0;
3185
3186 // Common nsIRunnable implementation that subclasses may not override.
3187 NS_IMETHODvirtual nsresult
3188 Run() final;
3189
3190 void DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle);
3191
3192 void DirectoryLockFailed();
3193
3194 virtual void SendBlockedNotification() = 0;
3195
3196 private:
3197 // Test whether this FactoryOp needs to wait for the given op.
3198 bool MustWaitFor(const FactoryOp& aExistingOp);
3199
3200 void AddBlockingOp(FactoryOp& aOp) {
3201 AssertIsOnOwningThread();
3202
3203 mBlocking.AppendElement(WrapNotNull(&aOp));
3204 }
3205
3206 void AddBlockedOnOp(FactoryOp& aOp) {
3207 AssertIsOnOwningThread();
3208
3209 mBlockedOn.Insert(&aOp);
3210 }
3211
3212 void MaybeUnblock(FactoryOp& aOp) {
3213 AssertIsOnOwningThread();
3214
3215 mBlockedOn.Remove(&aOp);
3216 if (mBlockedOn.IsEmpty()) {
3217 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(this))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(this))), 1)))), 1))) { } else { do
{ do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3217)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))"
")"); do { MOZ_CrashSequence(__null, 3217); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
3218 }
3219 }
3220};
3221
3222class FactoryRequestOp : public FactoryOp,
3223 public PBackgroundIDBFactoryRequestParent {
3224 protected:
3225 const CommonFactoryRequestParams mCommonParams;
3226
3227 FactoryRequestOp(SafeRefPtr<Factory> aFactory,
3228 const Maybe<ContentParentId>& aContentParentId,
3229 const CommonFactoryRequestParams& aCommonParams,
3230 bool aDeleting)
3231 : FactoryOp(std::move(aFactory), aContentParentId,
3232 aCommonParams.metadata().persistenceType(),
3233 aCommonParams.principalInfo(),
3234 Some(aCommonParams.metadata().name()), aDeleting),
3235 mCommonParams(aCommonParams) {}
3236
3237 nsresult DoDirectoryWork() override;
3238
3239 // IPDL methods.
3240 void ActorDestroy(ActorDestroyReason aWhy) override;
3241};
3242
3243class OpenDatabaseOp final : public FactoryRequestOp {
3244 friend class Database;
3245 friend class VersionChangeTransaction;
3246
3247 class VersionChangeOp;
3248
3249 SafeRefPtr<FullDatabaseMetadata> mMetadata;
3250
3251 uint64_t mRequestedVersion;
3252 SafeRefPtr<DatabaseFileManager> mFileManager;
3253
3254 SafeRefPtr<Database> mDatabase;
3255 SafeRefPtr<VersionChangeTransaction> mVersionChangeTransaction;
3256
3257 // This is only set while a VersionChangeOp is live. It holds a strong
3258 // reference to its OpenDatabaseOp object so this is a weak pointer to avoid
3259 // cycles.
3260 VersionChangeOp* mVersionChangeOp;
3261
3262 MoveOnlyFunction<void()> mCompleteCallback;
3263
3264 uint32_t mTelemetryId;
3265
3266 public:
3267 OpenDatabaseOp(SafeRefPtr<Factory> aFactory,
3268 const Maybe<ContentParentId>& aContentParentId,
3269 const CommonFactoryRequestParams& aParams);
3270
3271 private:
3272 ~OpenDatabaseOp() override { MOZ_ASSERT(!mVersionChangeOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mVersionChangeOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mVersionChangeOp))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mVersionChangeOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3272)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeOp"
")"); do { MOZ_CrashSequence(__null, 3272); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
3273
3274 nsresult LoadDatabaseInformation(mozIStorageConnection& aConnection);
3275
3276 nsresult SendUpgradeNeeded();
3277
3278 void EnsureDatabaseActor();
3279
3280 nsresult EnsureDatabaseActorIsAlive();
3281
3282 mozilla::Result<DatabaseSpec, nsresult> MetadataToSpec() const;
3283
3284 void AssertMetadataConsistency(const FullDatabaseMetadata& aMetadata)
3285#ifdef DEBUG1
3286 ;
3287#else
3288 {
3289 }
3290#endif
3291
3292 void ConnectionClosedCallback();
3293
3294 void ActorDestroy(ActorDestroyReason aWhy) override;
3295
3296 nsresult DatabaseOpen() override;
3297
3298 nsresult DoDatabaseWork() override;
3299
3300 nsresult BeginVersionChange() override;
3301
3302 bool AreActorsAlive() override;
3303
3304 void SendBlockedNotification() override;
3305
3306 nsresult DispatchToWorkThread() override;
3307
3308 nsresult DoVersionUpdate() override;
3309
3310 void SendResults() override;
3311
3312 static nsresult UpdateLocaleAwareIndex(mozIStorageConnection& aConnection,
3313 const IndexMetadata& aIndexMetadata,
3314 const nsCString& aLocale);
3315};
3316
3317class OpenDatabaseOp::VersionChangeOp final
3318 : public TransactionDatabaseOperationBase {
3319 friend class OpenDatabaseOp;
3320
3321 RefPtr<OpenDatabaseOp> mOpenDatabaseOp;
3322 const uint64_t mRequestedVersion;
3323 uint64_t mPreviousVersion;
3324
3325 private:
3326 explicit VersionChangeOp(OpenDatabaseOp* aOpenDatabaseOp)
3327 : TransactionDatabaseOperationBase(
3328 aOpenDatabaseOp->mVersionChangeTransaction.clonePtr(),
3329 /* aRequestId */ 0, aOpenDatabaseOp->LoggingSerialNumber()),
3330 mOpenDatabaseOp(aOpenDatabaseOp),
3331 mRequestedVersion(aOpenDatabaseOp->mRequestedVersion),
3332 mPreviousVersion(
3333 aOpenDatabaseOp->mMetadata->mCommonMetadata.version()) {
3334 MOZ_ASSERT(aOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3334)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 3334); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3335 MOZ_ASSERT(mRequestedVersion)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRequestedVersion)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRequestedVersion))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRequestedVersion"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3335)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRequestedVersion"
")"); do { MOZ_CrashSequence(__null, 3335); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3336 }
3337
3338 ~VersionChangeOp() override { MOZ_ASSERT(!mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3338)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 3338); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
3339
3340 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3341
3342 nsresult SendSuccessResult() override;
3343
3344 bool SendFailureResult(nsresult aResultCode) override;
3345
3346 void Cleanup() override;
3347};
3348
3349class DeleteDatabaseOp final : public FactoryRequestOp {
3350 class VersionChangeOp;
3351
3352 nsString mDatabaseDirectoryPath;
3353 nsString mDatabaseFilenameBase;
3354 uint64_t mPreviousVersion;
3355
3356 public:
3357 DeleteDatabaseOp(SafeRefPtr<Factory> aFactory,
3358 const Maybe<ContentParentId>& aContentParentId,
3359 const CommonFactoryRequestParams& aParams)
3360 : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams,
3361 /* aDeleting */ true),
3362 mPreviousVersion(0) {}
3363
3364 private:
3365 ~DeleteDatabaseOp() override = default;
3366
3367 void LoadPreviousVersion(nsIFile& aDatabaseFile);
3368
3369 nsresult DatabaseOpen() override;
3370
3371 nsresult DoDatabaseWork() override;
3372
3373 nsresult BeginVersionChange() override;
3374
3375 bool AreActorsAlive() override;
3376
3377 void SendBlockedNotification() override;
3378
3379 nsresult DispatchToWorkThread() override;
3380
3381 nsresult DoVersionUpdate() override;
3382
3383 void SendResults() override;
3384};
3385
3386class DeleteDatabaseOp::VersionChangeOp final : public DatabaseOperationBase {
3387 friend class DeleteDatabaseOp;
3388
3389 RefPtr<DeleteDatabaseOp> mDeleteDatabaseOp;
3390
3391 private:
3392 explicit VersionChangeOp(DeleteDatabaseOp* aDeleteDatabaseOp)
3393 : DatabaseOperationBase(aDeleteDatabaseOp->BackgroundChildLoggingId(),
3394 aDeleteDatabaseOp->LoggingSerialNumber()),
3395 mDeleteDatabaseOp(aDeleteDatabaseOp) {
3396 MOZ_ASSERT(aDeleteDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDeleteDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDeleteDatabaseOp))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aDeleteDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3396)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDeleteDatabaseOp"
")"); do { MOZ_CrashSequence(__null, 3396); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3397 MOZ_ASSERT(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3397); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 3397); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3398 }
3399
3400 ~VersionChangeOp() override = default;
3401
3402 nsresult RunOnIOThread();
3403
3404 void RunOnOwningThread();
3405
3406 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
3407};
3408
3409class GetDatabasesOp final : public FactoryOp {
3410 nsTHashMap<nsStringHashKey, DatabaseMetadata> mDatabaseMetadataTable;
3411 nsTArray<DatabaseMetadata> mDatabaseMetadataArray;
3412 Factory::GetDatabasesResolver mResolver;
3413
3414 public:
3415 GetDatabasesOp(SafeRefPtr<Factory> aFactory,
3416 const Maybe<ContentParentId>& aContentParentId,
3417 const PersistenceType aPersistenceType,
3418 const PrincipalInfo& aPrincipalInfo,
3419 Factory::GetDatabasesResolver&& aResolver)
3420 : FactoryOp(std::move(aFactory), aContentParentId, aPersistenceType,
3421 aPrincipalInfo, Nothing(), /* aDeleting */ false),
3422 mResolver(std::move(aResolver)) {}
3423
3424 private:
3425 ~GetDatabasesOp() override = default;
3426
3427 nsresult DatabasesNotAvailable();
3428
3429 nsresult DoDirectoryWork() override;
3430
3431 nsresult DatabaseOpen() override;
3432
3433 nsresult DoDatabaseWork() override;
3434
3435 nsresult BeginVersionChange() override;
3436
3437 bool AreActorsAlive() override;
3438
3439 void SendBlockedNotification() override;
3440
3441 nsresult DispatchToWorkThread() override;
3442
3443 nsresult DoVersionUpdate() override;
3444
3445 void SendResults() override;
3446};
3447
3448class VersionChangeTransactionOp : public TransactionDatabaseOperationBase {
3449 public:
3450 void Cleanup() override;
3451
3452 protected:
3453 explicit VersionChangeTransactionOp(
3454 SafeRefPtr<VersionChangeTransaction> aTransaction)
3455 : TransactionDatabaseOperationBase(std::move(aTransaction),
3456 /* aRequestId */ 0) {}
3457
3458 ~VersionChangeTransactionOp() override = default;
3459
3460 private:
3461 nsresult SendSuccessResult() override;
3462
3463 bool SendFailureResult(nsresult aResultCode) override;
3464};
3465
3466class CreateObjectStoreOp final : public VersionChangeTransactionOp {
3467 friend class VersionChangeTransaction;
3468
3469 const ObjectStoreMetadata mMetadata;
3470
3471 private:
3472 // Only created by VersionChangeTransaction.
3473 CreateObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3474 const ObjectStoreMetadata& aMetadata)
3475 : VersionChangeTransactionOp(std::move(aTransaction)),
3476 mMetadata(aMetadata) {
3477 MOZ_ASSERT(aMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMetadata.id()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3477)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()" ")"
); do { MOZ_CrashSequence(__null, 3477); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3478 }
3479
3480 ~CreateObjectStoreOp() override = default;
3481
3482 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3483};
3484
3485class DeleteObjectStoreOp final : public VersionChangeTransactionOp {
3486 friend class VersionChangeTransaction;
3487
3488 const SafeRefPtr<FullObjectStoreMetadata> mMetadata;
3489 const bool mIsLastObjectStore;
3490
3491 private:
3492 // Only created by VersionChangeTransaction.
3493 DeleteObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3494 SafeRefPtr<FullObjectStoreMetadata> aMetadata,
3495 const bool aIsLastObjectStore)
3496 : VersionChangeTransactionOp(std::move(aTransaction)),
3497 mMetadata(std::move(aMetadata)),
3498 mIsLastObjectStore(aIsLastObjectStore) {
3499 MOZ_ASSERT(mMetadata->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mCommonMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata->mCommonMetadata
.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMetadata->mCommonMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3499); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.id()"
")"); do { MOZ_CrashSequence(__null, 3499); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3500 }
3501
3502 ~DeleteObjectStoreOp() override = default;
3503
3504 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3505};
3506
3507class RenameObjectStoreOp final : public VersionChangeTransactionOp {
3508 friend class VersionChangeTransaction;
3509
3510 const int64_t mId;
3511 const nsString mNewName;
3512
3513 private:
3514 // Only created by VersionChangeTransaction.
3515 RenameObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3516 FullObjectStoreMetadata& aMetadata)
3517 : VersionChangeTransactionOp(std::move(aTransaction)),
3518 mId(aMetadata.mCommonMetadata.id()),
3519 mNewName(aMetadata.mCommonMetadata.name()) {
3520 MOZ_ASSERT(mId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mId)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(mId))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mId" ")"); do
{ MOZ_CrashSequence(__null, 3520); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
3521 }
3522
3523 ~RenameObjectStoreOp() override = default;
3524
3525 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3526};
3527
3528class CreateIndexOp final : public VersionChangeTransactionOp {
3529 friend class VersionChangeTransaction;
3530
3531 class UpdateIndexDataValuesFunction;
3532
3533 const IndexMetadata mMetadata;
3534 Maybe<UniqueIndexTable> mMaybeUniqueIndexTable;
3535 const SafeRefPtr<DatabaseFileManager> mFileManager;
3536 const nsCString mDatabaseId;
3537 const IndexOrObjectStoreId mObjectStoreId;
3538
3539 private:
3540 // Only created by VersionChangeTransaction.
3541 CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3542 IndexOrObjectStoreId aObjectStoreId,
3543 const IndexMetadata& aMetadata);
3544
3545 ~CreateIndexOp() override = default;
3546
3547 nsresult InsertDataFromObjectStore(DatabaseConnection* aConnection);
3548
3549 nsresult InsertDataFromObjectStoreInternal(
3550 DatabaseConnection* aConnection) const;
3551
3552 bool Init(TransactionBase& aTransaction) override;
3553
3554 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3555};
3556
3557class CreateIndexOp::UpdateIndexDataValuesFunction final
3558 : public mozIStorageFunction {
3559 RefPtr<CreateIndexOp> mOp;
3560 RefPtr<DatabaseConnection> mConnection;
3561 const NotNull<SafeRefPtr<Database>> mDatabase;
3562
3563 public:
3564 UpdateIndexDataValuesFunction(CreateIndexOp* aOp,
3565 DatabaseConnection* aConnection,
3566 SafeRefPtr<Database> aDatabase)
3567 : mOp(aOp),
3568 mConnection(aConnection),
3569 mDatabase(WrapNotNull(std::move(aDatabase))) {
3570 MOZ_ASSERT(aOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOp)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(aOp))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("aOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3570); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOp" ")"); do
{ MOZ_CrashSequence(__null, 3570); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
3571 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3571); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 3571); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3572 aConnection->AssertIsOnConnectionThread();
3573 }
3574
3575 NS_DECL_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override; using HasThreadSafeRefCnt = std::false_type;
protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread
; public:
3576
3577 private:
3578 ~UpdateIndexDataValuesFunction() = default;
3579
3580 NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments
, nsIVariant **_retval) override;
3581};
3582
3583class DeleteIndexOp final : public VersionChangeTransactionOp {
3584 friend class VersionChangeTransaction;
3585
3586 const IndexOrObjectStoreId mObjectStoreId;
3587 const IndexOrObjectStoreId mIndexId;
3588 const bool mUnique;
3589 const bool mIsLastIndex;
3590
3591 private:
3592 // Only created by VersionChangeTransaction.
3593 DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3594 IndexOrObjectStoreId aObjectStoreId,
3595 IndexOrObjectStoreId aIndexId, const bool aUnique,
3596 const bool aIsLastIndex);
3597
3598 ~DeleteIndexOp() override = default;
3599
3600 nsresult RemoveReferencesToIndex(
3601 DatabaseConnection* aConnection, const Key& aObjectDataKey,
3602 nsTArray<IndexDataValue>& aIndexValues) const;
3603
3604 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3605};
3606
3607class RenameIndexOp final : public VersionChangeTransactionOp {
3608 friend class VersionChangeTransaction;
3609
3610 const IndexOrObjectStoreId mObjectStoreId;
3611 const IndexOrObjectStoreId mIndexId;
3612 const nsString mNewName;
3613
3614 private:
3615 // Only created by VersionChangeTransaction.
3616 RenameIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3617 FullIndexMetadata& aMetadata,
3618 IndexOrObjectStoreId aObjectStoreId)
3619 : VersionChangeTransactionOp(std::move(aTransaction)),
3620 mObjectStoreId(aObjectStoreId),
3621 mIndexId(aMetadata.mCommonMetadata.id()),
3622 mNewName(aMetadata.mCommonMetadata.name()) {
3623 MOZ_ASSERT(mIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIndexId))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3623); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIndexId" ")"
); do { MOZ_CrashSequence(__null, 3623); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3624 }
3625
3626 ~RenameIndexOp() override = default;
3627
3628 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3629};
3630
3631class NormalTransactionOp : public TransactionDatabaseOperationBase,
3632 public PBackgroundIDBRequestParent {
3633#ifdef DEBUG1
3634 bool mResponseSent;
3635#endif
3636
3637 public:
3638 void Cleanup() override;
3639
3640 protected:
3641 NormalTransactionOp(SafeRefPtr<TransactionBase> aTransaction,
3642 const int64_t aRequestId)
3643 : TransactionDatabaseOperationBase(std::move(aTransaction), aRequestId)
3644#ifdef DEBUG1
3645 ,
3646 mResponseSent(false)
3647#endif
3648 {
3649 }
3650
3651 ~NormalTransactionOp() override = default;
3652
3653 // An overload of DatabaseOperationBase's function that can avoid doing extra
3654 // work on non-versionchange transactions.
3655 mozilla::Result<bool, nsresult> ObjectStoreHasIndexes(
3656 DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId,
3657 bool aMayHaveIndexes);
3658
3659 virtual mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams();
3660
3661 // Subclasses use this override to set the IPDL response value.
3662 virtual void GetResponse(RequestResponse& aResponse,
3663 size_t* aResponseSize) = 0;
3664
3665 private:
3666 nsresult SendPreprocessInfo() override;
3667
3668 nsresult SendSuccessResult() override;
3669
3670 bool SendFailureResult(nsresult aResultCode) override;
3671
3672 // IPDL methods.
3673 void ActorDestroy(ActorDestroyReason aWhy) override;
3674
3675 mozilla::ipc::IPCResult RecvContinue(
3676 const PreprocessResponse& aResponse) final;
3677};
3678
3679class ObjectStoreAddOrPutRequestOp final : public NormalTransactionOp {
3680 friend class TransactionBase;
3681
3682 using PersistenceType = mozilla::dom::quota::PersistenceType;
3683
3684 class StoredFileInfo final {
3685 InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileInfo>>> mFileInfo;
3686 // Either nothing, a file actor or a non-Blob-backed inputstream to write to
3687 // disk.
3688 using FileActorOrInputStream =
3689 Variant<Nothing, RefPtr<DatabaseFile>, nsCOMPtr<nsIInputStream>>;
3690 InitializedOnce<const FileActorOrInputStream> mFileActorOrInputStream;
3691#ifdef DEBUG1
3692 const StructuredCloneFileBase::FileType mType;
3693#endif
3694 void EnsureCipherKey();
3695 void AssertInvariants() const;
3696
3697 StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo,
3698 RefPtr<DatabaseFile> aFileActor);
3699
3700 StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo,
3701 nsCOMPtr<nsIInputStream> aInputStream);
3702
3703 public:
3704#if defined(NS_BUILD_REFCNT_LOGGING1)
3705 // Only for MOZ_COUNT_CTOR.
3706 StoredFileInfo(StoredFileInfo&& aOther)
3707 : mFileInfo{std::move(aOther.mFileInfo)},
3708 mFileActorOrInputStream{std::move(aOther.mFileActorOrInputStream)}
3709# ifdef DEBUG1
3710 ,
3711 mType{aOther.mType}
3712# endif
3713 {
3714 MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp
::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
"' is not a class type."); static_assert(!std::is_base_of<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3715 }
3716#else
3717 StoredFileInfo(StoredFileInfo&&) = default;
3718#endif
3719
3720 static StoredFileInfo CreateForBlob(SafeRefPtr<DatabaseFileInfo> aFileInfo,
3721 RefPtr<DatabaseFile> aFileActor);
3722 static StoredFileInfo CreateForStructuredClone(
3723 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3724 nsCOMPtr<nsIInputStream> aInputStream);
3725
3726#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
3727 ~StoredFileInfo() {
3728 AssertIsOnBackgroundThread();
3729 AssertInvariants();
3730
3731 MOZ_COUNT_DTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp
::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
"' is not a class type."); static_assert(!std::is_base_of<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3732 }
3733#endif
3734
3735 bool IsValid() const { return static_cast<bool>(mFileInfo); }
3736
3737 const DatabaseFileInfo& GetFileInfo() const { return **mFileInfo; }
3738
3739 bool ShouldCompress() const;
3740
3741 void NotifyWriteSucceeded() const;
3742
3743 using InputStreamResult =
3744 mozilla::Result<nsCOMPtr<nsIInputStream>, nsresult>;
3745 InputStreamResult GetInputStream();
3746
3747 void Serialize(nsString& aText) const;
3748 };
3749 class SCInputStream;
3750
3751 ObjectStoreAddPutParams mParams;
3752 Maybe<UniqueIndexTable> mUniqueIndexTable;
3753
3754 // This must be non-const so that we can update the mNextAutoIncrementId field
3755 // if we are modifying an autoIncrement objectStore.
3756 SafeRefPtr<FullObjectStoreMetadata> mMetadata;
3757
3758 nsTArray<StoredFileInfo> mStoredFileInfos;
3759
3760 Key mResponse;
3761 const OriginMetadata mOriginMetadata;
3762 const PersistenceType mPersistenceType;
3763 const bool mOverwrite;
3764 bool mObjectStoreMayHaveIndexes;
3765 bool mDataOverThreshold;
3766
3767 private:
3768 // Only created by TransactionBase.
3769 ObjectStoreAddOrPutRequestOp(SafeRefPtr<TransactionBase> aTransaction,
3770 const int64_t aRequestId,
3771 RequestParams&& aParams);
3772
3773 ~ObjectStoreAddOrPutRequestOp() override = default;
3774
3775 nsresult RemoveOldIndexDataValues(DatabaseConnection* aConnection);
3776
3777 bool Init(TransactionBase& aTransaction) override;
3778
3779 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3780
3781 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
3782
3783 void Cleanup() override;
3784};
3785
3786void ObjectStoreAddOrPutRequestOp::StoredFileInfo::AssertInvariants() const {
3787 // The only allowed types are eStructuredClone, eBlob and eMutableFile.
3788 MOZ_ASSERT(StructuredCloneFileBase::eStructuredClone == mType ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StructuredCloneFileBase::eStructuredClone == mType ||
StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone
== mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3790)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { MOZ_CrashSequence(__null, 3790); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
3789 StructuredCloneFileBase::eBlob == mType ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StructuredCloneFileBase::eStructuredClone == mType ||
StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone
== mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3790)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { MOZ_CrashSequence(__null, 3790); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
3790 StructuredCloneFileBase::eMutableFile == mType)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StructuredCloneFileBase::eStructuredClone == mType ||
StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(StructuredCloneFileBase::eStructuredClone
== mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase
::eMutableFile == mType))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3790)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { MOZ_CrashSequence(__null, 3790); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3791
3792 // mFileInfo and a file actor in mFileActorOrInputStream are present until
3793 // the object is moved away, but an inputStream in mFileActorOrInputStream
3794 // can be released early.
3795 MOZ_ASSERT_IF(static_cast<bool>(mFileActorOrInputStream) &&do { if (static_cast<bool>(mFileActorOrInputStream) &&
mFileActorOrInputStream->is<RefPtr<DatabaseFile>>
()) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(static_cast<bool>(mFileInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(static_cast<bool>(mFileInfo)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3797)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { MOZ_CrashSequence(__null, 3797); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3796 mFileActorOrInputStream->is<RefPtr<DatabaseFile>>(),do { if (static_cast<bool>(mFileActorOrInputStream) &&
mFileActorOrInputStream->is<RefPtr<DatabaseFile>>
()) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(static_cast<bool>(mFileInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(static_cast<bool>(mFileInfo)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3797)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { MOZ_CrashSequence(__null, 3797); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3797 static_cast<bool>(mFileInfo))do { if (static_cast<bool>(mFileActorOrInputStream) &&
mFileActorOrInputStream->is<RefPtr<DatabaseFile>>
()) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(static_cast<bool>(mFileInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(static_cast<bool>(mFileInfo)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("static_cast<bool>(mFileInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3797)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { MOZ_CrashSequence(__null, 3797); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3798
3799 if (mFileInfo) {
3800 // In a non-moved StoredFileInfo, one of the following is true:
3801 // - This was an overflow structured clone (eStructuredClone) and
3802 // storedFileInfo.mFileActorOrInputStream CAN be a non-nullptr input
3803 // stream (but that might have been release by ReleaseInputStream).
3804 MOZ_ASSERT_IF(do { if (StructuredCloneFileBase::eStructuredClone == mType) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileActorOrInputStream || (mFileActorOrInputStream
->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>()))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mFileActorOrInputStream || (mFileActorOrInputStream->is
<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3808)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { MOZ_CrashSequence(__null, 3808); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3805 StructuredCloneFileBase::eStructuredClone == mType,do { if (StructuredCloneFileBase::eStructuredClone == mType) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileActorOrInputStream || (mFileActorOrInputStream
->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>()))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mFileActorOrInputStream || (mFileActorOrInputStream->is
<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3808)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { MOZ_CrashSequence(__null, 3808); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3806 !mFileActorOrInputStream ||do { if (StructuredCloneFileBase::eStructuredClone == mType) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileActorOrInputStream || (mFileActorOrInputStream
->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>()))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mFileActorOrInputStream || (mFileActorOrInputStream->is
<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3808)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { MOZ_CrashSequence(__null, 3808); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3807 (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() &&do { if (StructuredCloneFileBase::eStructuredClone == mType) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileActorOrInputStream || (mFileActorOrInputStream
->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>()))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mFileActorOrInputStream || (mFileActorOrInputStream->is
<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3808)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { MOZ_CrashSequence(__null, 3808); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3808 mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>()))do { if (StructuredCloneFileBase::eStructuredClone == mType) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileActorOrInputStream || (mFileActorOrInputStream
->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>()))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mFileActorOrInputStream || (mFileActorOrInputStream->is
<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream
->as<nsCOMPtr<nsIInputStream>>())))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3808)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { MOZ_CrashSequence(__null, 3808); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3809
3810 // - This is a reference to a Blob (eBlob) that may or may not have
3811 // already been written to disk. storedFileInfo.mFileActorOrInputStream
3812 // MUST be a non-null file actor, but its GetInputStream may return
3813 // nullptr (so don't assert on that).
3814 MOZ_ASSERT_IF(StructuredCloneFileBase::eBlob == mType,do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream
->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream->
is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3816)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { MOZ_CrashSequence(__null, 3816); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3815 mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() &&do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream
->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream->
is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3816)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { MOZ_CrashSequence(__null, 3816); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3816 mFileActorOrInputStream->as<RefPtr<DatabaseFile>>())do { if (StructuredCloneFileBase::eBlob == mType) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(mFileActorOrInputStream
->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileActorOrInputStream->
is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream
->as<RefPtr<DatabaseFile>>()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3816)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { MOZ_CrashSequence(__null, 3816); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3817
3818 // - It's a mutable file (eMutableFile). No writing will be performed,
3819 // and storedFileInfo.mFileActorOrInputStream is Nothing.
3820 MOZ_ASSERT_IF(StructuredCloneFileBase::eMutableFile == mType,do { if (StructuredCloneFileBase::eMutableFile == mType) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileActorOrInputStream->is<Nothing>())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mFileActorOrInputStream->is<Nothing>()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<Nothing>()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3821)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()"
")"); do { MOZ_CrashSequence(__null, 3821); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3821 mFileActorOrInputStream->is<Nothing>())do { if (StructuredCloneFileBase::eMutableFile == mType) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileActorOrInputStream->is<Nothing>())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mFileActorOrInputStream->is<Nothing>()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mFileActorOrInputStream->is<Nothing>()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3821)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()"
")"); do { MOZ_CrashSequence(__null, 3821); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3822 }
3823}
3824
3825void ObjectStoreAddOrPutRequestOp::StoredFileInfo::EnsureCipherKey() {
3826 const auto& fileInfo = GetFileInfo();
3827 const auto& fileManager = fileInfo.Manager();
3828
3829 // No need to generate cipher keys if we are not in PBM
3830 if (!fileManager.IsInPrivateBrowsingMode()) {
3831 return;
3832 }
3833
3834 nsCString keyId;
3835 keyId.AppendInt(fileInfo.Id());
3836
3837 fileManager.MutableCipherKeyManagerRef().Ensure(keyId);
3838}
3839
3840ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo(
3841 SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor)
3842 : mFileInfo{WrapNotNull(std::move(aFileInfo))},
3843 mFileActorOrInputStream{std::move(aFileActor)}
3844#ifdef DEBUG1
3845 ,
3846 mType{StructuredCloneFileBase::eBlob}
3847#endif
3848{
3849 AssertIsOnBackgroundThread();
3850 AssertInvariants();
3851
3852 EnsureCipherKey();
3853 MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp
::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
"' is not a class type."); static_assert(!std::is_base_of<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3854}
3855
3856ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo(
3857 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3858 nsCOMPtr<nsIInputStream> aInputStream)
3859 : mFileInfo{WrapNotNull(std::move(aFileInfo))},
3860 mFileActorOrInputStream{std::move(aInputStream)}
3861#ifdef DEBUG1
3862 ,
3863 mType{StructuredCloneFileBase::eStructuredClone}
3864#endif
3865{
3866 AssertIsOnBackgroundThread();
3867 AssertInvariants();
3868
3869 EnsureCipherKey();
3870 MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp
::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
"' is not a class type."); static_assert(!std::is_base_of<
nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo>
::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo"
, sizeof(*this)); } while (0)
;
3871}
3872
3873ObjectStoreAddOrPutRequestOp::StoredFileInfo
3874ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForBlob(
3875 SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor) {
3876 return {std::move(aFileInfo), std::move(aFileActor)};
3877}
3878
3879ObjectStoreAddOrPutRequestOp::StoredFileInfo
3880ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForStructuredClone(
3881 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3882 nsCOMPtr<nsIInputStream> aInputStream) {
3883 return {std::move(aFileInfo), std::move(aInputStream)};
3884}
3885
3886bool ObjectStoreAddOrPutRequestOp::StoredFileInfo::ShouldCompress() const {
3887 // Must not be called after moving.
3888 MOZ_ASSERT(IsValid())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsValid())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsValid()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("IsValid()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { MOZ_CrashSequence(__null, 3888); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3889
3890 // Compression is only necessary for eStructuredClone, i.e. when
3891 // mFileActorOrInputStream stored an input stream. However, this is only
3892 // called after GetInputStream, when mFileActorOrInputStream has been
3893 // cleared, which is only possible for this type.
3894 const bool res = !mFileActorOrInputStream;
3895 MOZ_ASSERT(res == (StructuredCloneFileBase::eStructuredClone == mType))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(res == (StructuredCloneFileBase::eStructuredClone ==
mType))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(res == (StructuredCloneFileBase::eStructuredClone ==
mType)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("res == (StructuredCloneFileBase::eStructuredClone == mType)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3895)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "res == (StructuredCloneFileBase::eStructuredClone == mType)"
")"); do { MOZ_CrashSequence(__null, 3895); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3896 return res;
3897}
3898
3899void ObjectStoreAddOrPutRequestOp::StoredFileInfo::NotifyWriteSucceeded()
3900 const {
3901 MOZ_ASSERT(IsValid())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsValid())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsValid()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("IsValid()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3901); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { MOZ_CrashSequence(__null, 3901); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3902
3903 // For eBlob, clear the blob implementation.
3904 if (mFileActorOrInputStream &&
3905 mFileActorOrInputStream->is<RefPtr<DatabaseFile>>()) {
3906 mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()
3907 ->WriteSucceededClearBlobImpl();
3908 }
3909
3910 // For the other types, no action is necessary.
3911}
3912
3913ObjectStoreAddOrPutRequestOp::StoredFileInfo::InputStreamResult
3914ObjectStoreAddOrPutRequestOp::StoredFileInfo::GetInputStream() {
3915 if (!mFileActorOrInputStream) {
3916 MOZ_ASSERT(StructuredCloneFileBase::eStructuredClone == mType)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StructuredCloneFileBase::eStructuredClone == mType)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(StructuredCloneFileBase::eStructuredClone == mType))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("StructuredCloneFileBase::eStructuredClone == mType"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3916)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType"
")"); do { MOZ_CrashSequence(__null, 3916); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3917 return nsCOMPtr<nsIInputStream>{};
3918 }
3919
3920 // For the different cases, see also the comments in AssertInvariants.
3921 return mFileActorOrInputStream->match(
3922 [](const Nothing&) -> InputStreamResult {
3923 return nsCOMPtr<nsIInputStream>{};
3924 },
3925 [](const RefPtr<DatabaseFile>& databaseActor) -> InputStreamResult {
3926 ErrorResult rv;
3927 auto inputStream = databaseActor->GetInputStream(rv);
3928 if (NS_WARN_IF(rv.Failed())NS_warn_if_impl(rv.Failed(), "rv.Failed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3928)
) {
3929 return Err(rv.StealNSResult());
3930 }
3931
3932 return inputStream;
3933 },
3934 [this](const nsCOMPtr<nsIInputStream>& inputStream) -> InputStreamResult {
3935 auto res = inputStream;
3936 // destroy() clears the inputStream parameter, so we needed to make a
3937 // copy before
3938 mFileActorOrInputStream.destroy();
3939 AssertInvariants();
3940 return res;
3941 });
3942}
3943
3944void ObjectStoreAddOrPutRequestOp::StoredFileInfo::Serialize(
3945 nsString& aText) const {
3946 AssertInvariants();
3947 MOZ_ASSERT(IsValid())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsValid())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsValid()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("IsValid()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 3947); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { MOZ_CrashSequence(__null, 3947); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3948
3949 const int64_t id = (*mFileInfo)->Id();
3950
3951 auto structuredCloneHandler = [&aText, id](const nsCOMPtr<nsIInputStream>&) {
3952 // eStructuredClone
3953 aText.Append('.');
3954 aText.AppendInt(id);
3955 };
3956
3957 // If mFileActorOrInputStream was moved, we had an inputStream before.
3958 if (!mFileActorOrInputStream) {
3959 structuredCloneHandler(nullptr);
3960 return;
3961 }
3962
3963 // This encoding is parsed in DeserializeStructuredCloneFile.
3964 mFileActorOrInputStream->match(
3965 [&aText, id](const Nothing&) {
3966 // eMutableFile
3967 aText.AppendInt(-id);
3968 },
3969 [&aText, id](const RefPtr<DatabaseFile>&) {
3970 // eBlob
3971 aText.AppendInt(id);
3972 },
3973 structuredCloneHandler);
3974}
3975
3976class ObjectStoreAddOrPutRequestOp::SCInputStream final
3977 : public nsIInputStream {
3978 const JSStructuredCloneData& mData;
3979 JSStructuredCloneData::Iterator mIter;
3980
3981 public:
3982 explicit SCInputStream(const JSStructuredCloneData& aData)
3983 : mData(aData), mIter(aData.Start()) {}
3984
3985 private:
3986 virtual ~SCInputStream() = default;
3987
3988 NS_DECL_THREADSAFE_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override; using HasThreadSafeRefCnt = std::true_type; protected
: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; nsAutoOwningThread
_mOwningThread; public:
3989 NS_DECL_NSIINPUTSTREAMvirtual nsresult Close(void) override; virtual nsresult Available
(uint64_t *_retval) override; virtual nsresult StreamStatus(void
) override; virtual nsresult Read(char * aBuf, uint32_t aCount
, uint32_t *_retval) override; virtual nsresult ReadSegments(
nsWriteSegmentFun aWriter, void * aClosure, uint32_t aCount, uint32_t
*_retval) override; virtual nsresult IsNonBlocking(bool *_retval
) override;
3990};
3991
3992class ObjectStoreGetRequestOp final : public NormalTransactionOp {
3993 friend class TransactionBase;
3994
3995 const IndexOrObjectStoreId mObjectStoreId;
3996 SafeRefPtr<Database> mDatabase;
3997 const Maybe<SerializedKeyRange> mOptionalKeyRange;
3998 AutoTArray<StructuredCloneReadInfoParent, 1> mResponse;
3999 PBackgroundParent* mBackgroundParent;
4000 uint32_t mPreprocessInfoCount;
4001 const uint32_t mLimit;
4002 const bool mGetAll;
4003
4004 private:
4005 // Only created by TransactionBase.
4006 ObjectStoreGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4007 const int64_t aRequestId,
4008 const RequestParams& aParams, bool aGetAll);
4009
4010 ~ObjectStoreGetRequestOp() override = default;
4011
4012 template <typename T>
4013 mozilla::Result<T, nsresult> ConvertResponse(
4014 StructuredCloneReadInfoParent&& aInfo);
4015
4016 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4017
4018 bool HasPreprocessInfo() override;
4019
4020 mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams() override;
4021
4022 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4023};
4024
4025class ObjectStoreGetKeyRequestOp final : public NormalTransactionOp {
4026 friend class TransactionBase;
4027
4028 const IndexOrObjectStoreId mObjectStoreId;
4029 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4030 const uint32_t mLimit;
4031 const bool mGetAll;
4032 nsTArray<Key> mResponse;
4033
4034 private:
4035 // Only created by TransactionBase.
4036 ObjectStoreGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4037 const int64_t aRequestId,
4038 const RequestParams& aParams, bool aGetAll);
4039
4040 ~ObjectStoreGetKeyRequestOp() override = default;
4041
4042 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4043
4044 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4045};
4046
4047class ObjectStoreDeleteRequestOp final : public NormalTransactionOp {
4048 friend class TransactionBase;
4049
4050 const ObjectStoreDeleteParams mParams;
4051 ObjectStoreDeleteResponse mResponse;
4052 bool mObjectStoreMayHaveIndexes;
4053
4054 private:
4055 ObjectStoreDeleteRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4056 const int64_t aRequestId,
4057 const ObjectStoreDeleteParams& aParams);
4058
4059 ~ObjectStoreDeleteRequestOp() override = default;
4060
4061 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4062
4063 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4064 aResponse = std::move(mResponse);
4065 *aResponseSize = 0;
4066 }
4067};
4068
4069class ObjectStoreClearRequestOp final : public NormalTransactionOp {
4070 friend class TransactionBase;
4071
4072 const ObjectStoreClearParams mParams;
4073 ObjectStoreClearResponse mResponse;
4074 bool mObjectStoreMayHaveIndexes;
4075
4076 private:
4077 ObjectStoreClearRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4078 const int64_t aRequestId,
4079 const ObjectStoreClearParams& aParams);
4080
4081 ~ObjectStoreClearRequestOp() override = default;
4082
4083 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4084
4085 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4086 aResponse = std::move(mResponse);
4087 *aResponseSize = 0;
4088 }
4089};
4090
4091class ObjectStoreCountRequestOp final : public NormalTransactionOp {
4092 friend class TransactionBase;
4093
4094 const ObjectStoreCountParams mParams;
4095 ObjectStoreCountResponse mResponse;
4096
4097 private:
4098 ObjectStoreCountRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4099 const int64_t aRequestId,
4100 const ObjectStoreCountParams& aParams)
4101 : NormalTransactionOp(std::move(aTransaction), aRequestId),
4102 mParams(aParams) {}
4103
4104 ~ObjectStoreCountRequestOp() override = default;
4105
4106 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4107
4108 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4109 aResponse = std::move(mResponse);
4110 *aResponseSize = sizeof(uint64_t);
4111 }
4112};
4113
4114class IndexRequestOpBase : public NormalTransactionOp {
4115 protected:
4116 const SafeRefPtr<FullIndexMetadata> mMetadata;
4117
4118 protected:
4119 IndexRequestOpBase(SafeRefPtr<TransactionBase> aTransaction,
4120 const int64_t aRequestId, const RequestParams& aParams)
4121 : NormalTransactionOp(std::move(aTransaction), aRequestId),
4122 mMetadata(IndexMetadataForParams(Transaction(), aParams)) {}
4123
4124 ~IndexRequestOpBase() override = default;
4125
4126 private:
4127 static SafeRefPtr<FullIndexMetadata> IndexMetadataForParams(
4128 const TransactionBase& aTransaction, const RequestParams& aParams);
4129};
4130
4131class IndexGetRequestOp final : public IndexRequestOpBase {
4132 friend class TransactionBase;
4133
4134 SafeRefPtr<Database> mDatabase;
4135 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4136 AutoTArray<StructuredCloneReadInfoParent, 1> mResponse;
4137 PBackgroundParent* mBackgroundParent;
4138 const uint32_t mLimit;
4139 const bool mGetAll;
4140
4141 private:
4142 // Only created by TransactionBase.
4143 IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4144 const int64_t aRequestId, const RequestParams& aParams,
4145 bool aGetAll);
4146
4147 ~IndexGetRequestOp() override = default;
4148
4149 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4150
4151 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4152};
4153
4154class IndexGetKeyRequestOp final : public IndexRequestOpBase {
4155 friend class TransactionBase;
4156
4157 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4158 AutoTArray<Key, 1> mResponse;
4159 const uint32_t mLimit;
4160 const bool mGetAll;
4161
4162 private:
4163 // Only created by TransactionBase.
4164 IndexGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4165 const int64_t aRequestId, const RequestParams& aParams,
4166 bool aGetAll);
4167
4168 ~IndexGetKeyRequestOp() override = default;
4169
4170 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4171
4172 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4173};
4174
4175class IndexCountRequestOp final : public IndexRequestOpBase {
4176 friend class TransactionBase;
4177
4178 const IndexCountParams mParams;
4179 IndexCountResponse mResponse;
4180
4181 private:
4182 // Only created by TransactionBase.
4183 IndexCountRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4184 const int64_t aRequestId, const RequestParams& aParams)
4185 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
4186 mParams(aParams.get_IndexCountParams()) {}
4187
4188 ~IndexCountRequestOp() override = default;
4189
4190 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4191
4192 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4193 aResponse = std::move(mResponse);
4194 *aResponseSize = sizeof(uint64_t);
4195 }
4196};
4197
4198template <IDBCursorType CursorType>
4199class Cursor;
4200
4201constexpr IDBCursorType ToKeyOnlyType(const IDBCursorType aType) {
4202 MOZ_ASSERT(aType == IDBCursorType::ObjectStore ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4204)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4204); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4203 aType == IDBCursorType::ObjectStoreKey ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4204)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4204); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4204 aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4204)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4204); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4205 switch (aType) {
4206 case IDBCursorType::ObjectStore:
4207 [[fallthrough]];
4208 case IDBCursorType::ObjectStoreKey:
4209 return IDBCursorType::ObjectStoreKey;
4210 case IDBCursorType::Index:
4211 [[fallthrough]];
4212 case IDBCursorType::IndexKey:
4213 return IDBCursorType::IndexKey;
4214 }
4215}
4216
4217template <IDBCursorType CursorType>
4218using CursorPosition = CursorData<ToKeyOnlyType(CursorType)>;
4219
4220#ifdef DEBUG1
4221constexpr indexedDB::OpenCursorParams::Type ToOpenCursorParamsType(
4222 const IDBCursorType aType) {
4223 MOZ_ASSERT(aType == IDBCursorType::ObjectStore ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4225)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4225); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4224 aType == IDBCursorType::ObjectStoreKey ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4225)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4225); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4225 aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aType == IDBCursorType::ObjectStore || aType == IDBCursorType
::ObjectStoreKey || aType == IDBCursorType::Index || aType ==
IDBCursorType::IndexKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aType == IDBCursorType::ObjectStore
|| aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType
::Index || aType == IDBCursorType::IndexKey))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4225)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { MOZ_CrashSequence(__null, 4225); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4226 switch (aType) {
4227 case IDBCursorType::ObjectStore:
4228 return indexedDB::OpenCursorParams::TObjectStoreOpenCursorParams;
4229 case IDBCursorType::ObjectStoreKey:
4230 return indexedDB::OpenCursorParams::TObjectStoreOpenKeyCursorParams;
4231 case IDBCursorType::Index:
4232 return indexedDB::OpenCursorParams::TIndexOpenCursorParams;
4233 case IDBCursorType::IndexKey:
4234 return indexedDB::OpenCursorParams::TIndexOpenKeyCursorParams;
4235 }
4236}
4237#endif
4238
4239class CursorBase : public PBackgroundIDBCursorParent {
4240 friend class TransactionBase;
4241 template <IDBCursorType CursorType>
4242 friend class CommonOpenOpHelper;
4243
4244 protected:
4245 const SafeRefPtr<TransactionBase> mTransaction;
4246
4247 // This should only be touched on the PBackground thread to check whether
4248 // the objectStore has been deleted. Holding these saves a hash lookup for
4249 // every call to continue()/advance().
4250 InitializedOnce<const NotNull<SafeRefPtr<FullObjectStoreMetadata>>>
4251 mObjectStoreMetadata;
4252
4253 const IndexOrObjectStoreId mObjectStoreId;
4254
4255 LazyInitializedOnce<const Key>
4256 mLocaleAwareRangeBound; ///< If the cursor is based on a key range, the
4257 ///< bound in the direction of iteration (e.g.
4258 ///< the upper bound in case of mDirection ==
4259 ///< NEXT). If the cursor is based on a key, it
4260 ///< is unset. If mLocale is set, this was
4261 ///< converted to mLocale.
4262
4263 const Direction mDirection;
4264
4265 const int32_t mMaxExtraCount;
4266
4267 const bool mIsSameProcessActor;
4268
4269 struct ConstructFromTransactionBase {};
4270
4271 public:
4272 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::CursorBase,public: MozExternalRefCountType AddRef(void) final { static_assert
(!std::is_destructible_v<mozilla::dom::indexedDB::CursorBase
>, "Reference-counted class " "mozilla::dom::indexedDB::CursorBase"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4273
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::CursorBase"), (uint32_t)(sizeof
(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) final { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4273
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::CursorBase")); if (count ==
0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
4273 final)public: MozExternalRefCountType AddRef(void) final { static_assert
(!std::is_destructible_v<mozilla::dom::indexedDB::CursorBase
>, "Reference-counted class " "mozilla::dom::indexedDB::CursorBase"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4273
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::CursorBase"), (uint32_t)(sizeof
(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) final { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4273
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::CursorBase")); if (count ==
0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
4274
4275 CursorBase(SafeRefPtr<TransactionBase> aTransaction,
4276 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4277 Direction aDirection,
4278 ConstructFromTransactionBase aConstructionTag);
4279
4280 protected:
4281 // Reference counted.
4282 ~CursorBase() override { MOZ_ASSERT(!mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mObjectStoreMetadata))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mObjectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4282)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 4282); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
4283
4284 private:
4285 virtual bool Start(const int64_t aRequestId,
4286 const OpenCursorParams& aParams) = 0;
4287};
4288
4289class IndexCursorBase : public CursorBase {
4290 public:
4291 bool IsLocaleAware() const { return !mLocale.IsEmpty(); }
4292
4293 IndexCursorBase(SafeRefPtr<TransactionBase> aTransaction,
4294 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4295 SafeRefPtr<FullIndexMetadata> aIndexMetadata,
4296 Direction aDirection,
4297 ConstructFromTransactionBase aConstructionTag)
4298 : CursorBase{std::move(aTransaction), std::move(aObjectStoreMetadata),
4299 aDirection, aConstructionTag},
4300 mIndexMetadata(WrapNotNull(std::move(aIndexMetadata))),
4301 mIndexId((*mIndexMetadata)->mCommonMetadata.id()),
4302 mUniqueIndex((*mIndexMetadata)->mCommonMetadata.unique()),
4303 mLocale((*mIndexMetadata)->mCommonMetadata.locale()) {}
4304
4305 protected:
4306 IndexOrObjectStoreId Id() const { return mIndexId; }
4307
4308 // This should only be touched on the PBackground thread to check whether
4309 // the index has been deleted. Holding these saves a hash lookup for every
4310 // call to continue()/advance().
4311 InitializedOnce<const NotNull<SafeRefPtr<FullIndexMetadata>>> mIndexMetadata;
4312 const IndexOrObjectStoreId mIndexId;
4313 const bool mUniqueIndex;
4314 const nsCString
4315 mLocale; ///< The locale if the cursor is locale-aware, otherwise empty.
4316
4317 struct ContinueQueries {
4318 nsCString mContinueQuery;
4319 nsCString mContinueToQuery;
4320 nsCString mContinuePrimaryKeyQuery;
4321
4322 const nsACString& GetContinueQuery(const bool hasContinueKey,
4323 const bool hasContinuePrimaryKey) const {
4324 return hasContinuePrimaryKey ? mContinuePrimaryKeyQuery
4325 : hasContinueKey ? mContinueToQuery
4326 : mContinueQuery;
4327 }
4328 };
4329};
4330
4331class ObjectStoreCursorBase : public CursorBase {
4332 public:
4333 using CursorBase::CursorBase;
4334
4335 static constexpr bool IsLocaleAware() { return false; }
4336
4337 protected:
4338 IndexOrObjectStoreId Id() const { return mObjectStoreId; }
4339
4340 struct ContinueQueries {
4341 nsCString mContinueQuery;
4342 nsCString mContinueToQuery;
4343
4344 const nsACString& GetContinueQuery(const bool hasContinueKey,
4345 const bool hasContinuePrimaryKey) const {
4346 MOZ_ASSERT(!hasContinuePrimaryKey)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!hasContinuePrimaryKey)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!hasContinuePrimaryKey))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!hasContinuePrimaryKey"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4346)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasContinuePrimaryKey"
")"); do { MOZ_CrashSequence(__null, 4346); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4347 return hasContinueKey ? mContinueToQuery : mContinueQuery;
4348 }
4349 };
4350};
4351
4352using FilesArray = nsTArray<nsTArray<StructuredCloneFileParent>>;
4353
4354struct PseudoFilesArray {
4355 static constexpr bool IsEmpty() { return true; }
4356
4357 static constexpr void Clear() {}
4358};
4359
4360template <IDBCursorType CursorType>
4361using FilesArrayT =
4362 std::conditional_t<!CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4363 FilesArray, PseudoFilesArray>;
4364
4365class ValueCursorBase {
4366 friend struct ValuePopulateResponseHelper<true>;
4367 friend struct ValuePopulateResponseHelper<false>;
4368
4369 protected:
4370 explicit ValueCursorBase(TransactionBase* const aTransaction)
4371 : mDatabase(aTransaction->GetDatabasePtr()),
4372 mFileManager(mDatabase->GetFileManagerPtr()),
4373 mBackgroundParent(WrapNotNull(aTransaction->GetBackgroundParent())) {
4374 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4374); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 4374); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4375 }
4376
4377 void ProcessFiles(CursorResponse& aResponse, const FilesArray& aFiles);
4378
4379 ~ValueCursorBase() { MOZ_ASSERT(!mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mBackgroundParent)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mBackgroundParent))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mBackgroundParent"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4379)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBackgroundParent"
")"); do { MOZ_CrashSequence(__null, 4379); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
4380
4381 const SafeRefPtr<Database> mDatabase;
4382 const NotNull<SafeRefPtr<DatabaseFileManager>> mFileManager;
4383
4384 InitializedOnce<const NotNull<PBackgroundParent*>> mBackgroundParent;
4385};
4386
4387class KeyCursorBase {
4388 protected:
4389 explicit KeyCursorBase(TransactionBase* const /*aTransaction*/) {}
4390
4391 static constexpr void ProcessFiles(CursorResponse& aResponse,
4392 const PseudoFilesArray& aFiles) {}
4393};
4394
4395template <IDBCursorType CursorType>
4396class CursorOpBaseHelperBase;
4397
4398template <IDBCursorType CursorType>
4399class Cursor final
4400 : public std::conditional_t<
4401 CursorTypeTraits<CursorType>::IsObjectStoreCursor,
4402 ObjectStoreCursorBase, IndexCursorBase>,
4403 public std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4404 KeyCursorBase, ValueCursorBase> {
4405 using Base =
4406 std::conditional_t<CursorTypeTraits<CursorType>::IsObjectStoreCursor,
4407 ObjectStoreCursorBase, IndexCursorBase>;
4408
4409 using KeyValueBase =
4410 std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4411 KeyCursorBase, ValueCursorBase>;
4412
4413 static constexpr bool IsIndexCursor =
4414 !CursorTypeTraits<CursorType>::IsObjectStoreCursor;
4415
4416 static constexpr bool IsValueCursor =
4417 !CursorTypeTraits<CursorType>::IsKeyOnlyCursor;
4418
4419 class CursorOpBase;
4420 class OpenOp;
4421 class ContinueOp;
4422
4423 using Base::Id;
4424 using CursorBase::Manager;
4425 using CursorBase::mDirection;
4426 using CursorBase::mObjectStoreId;
4427 using CursorBase::mTransaction;
4428 using typename CursorBase::ActorDestroyReason;
4429
4430 using TypedOpenOpHelper =
4431 std::conditional_t<IsIndexCursor, IndexOpenOpHelper<CursorType>,
4432 ObjectStoreOpenOpHelper<CursorType>>;
4433
4434 friend class CursorOpBaseHelperBase<CursorType>;
4435 friend class CommonOpenOpHelper<CursorType>;
4436 friend TypedOpenOpHelper;
4437 friend class OpenOpHelper<CursorType>;
4438
4439 CursorOpBase* mCurrentlyRunningOp = nullptr;
4440
4441 LazyInitializedOnce<const typename Base::ContinueQueries> mContinueQueries;
4442
4443 // Only called by TransactionBase.
4444 bool Start(const int64_t aRequestId, const OpenCursorParams& aParams) final;
4445
4446 void SendResponseInternal(CursorResponse& aResponse,
4447 const FilesArrayT<CursorType>& aFiles);
4448
4449 // Must call SendResponseInternal!
4450 bool SendResponse(const CursorResponse& aResponse) = delete;
4451
4452 // IPDL methods.
4453 void ActorDestroy(ActorDestroyReason aWhy) override;
4454
4455 mozilla::ipc::IPCResult RecvDeleteMe() override;
4456
4457 mozilla::ipc::IPCResult RecvContinue(
4458 const int64_t& aRequestId, const CursorRequestParams& aParams,
4459 const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) override;
4460
4461 public:
4462 Cursor(SafeRefPtr<TransactionBase> aTransaction,
4463 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4464 SafeRefPtr<FullIndexMetadata> aIndexMetadata,
4465 typename Base::Direction aDirection,
4466 typename Base::ConstructFromTransactionBase aConstructionTag)
4467 : Base{std::move(aTransaction), std::move(aObjectStoreMetadata),
4468 std::move(aIndexMetadata), aDirection, aConstructionTag},
4469 KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {}
4470
4471 Cursor(SafeRefPtr<TransactionBase> aTransaction,
4472 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4473 typename Base::Direction aDirection,
4474 typename Base::ConstructFromTransactionBase aConstructionTag)
4475 : Base{std::move(aTransaction), std::move(aObjectStoreMetadata),
4476 aDirection, aConstructionTag},
4477 KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {}
4478
4479 private:
4480 void SetOptionalKeyRange(const Maybe<SerializedKeyRange>& aOptionalKeyRange,
4481 bool* aOpen);
4482
4483 bool VerifyRequestParams(const CursorRequestParams& aParams,
4484 const CursorPosition<CursorType>& aPosition) const;
4485
4486 ~Cursor() final = default;
4487};
4488
4489template <IDBCursorType CursorType>
4490class Cursor<CursorType>::CursorOpBase
4491 : public TransactionDatabaseOperationBase {
4492 friend class CursorOpBaseHelperBase<CursorType>;
4493
4494 protected:
4495 RefPtr<Cursor> mCursor;
4496 FilesArrayT<CursorType> mFiles; // TODO: Consider removing this member
4497 // entirely if we are no value cursor.
4498
4499 CursorResponse mResponse;
4500
4501#ifdef DEBUG1
4502 bool mResponseSent;
4503#endif
4504
4505 protected:
4506 explicit CursorOpBase(Cursor* aCursor, const int64_t aRequestId)
4507 : TransactionDatabaseOperationBase(aCursor->mTransaction.clonePtr(),
4508 /* aRequestId */ aRequestId),
4509 mCursor(aCursor)
4510#ifdef DEBUG1
4511 ,
4512 mResponseSent(false)
4513#endif
4514 {
4515 AssertIsOnBackgroundThread();
4516 MOZ_ASSERT(aCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4516); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCursor" ")"
); do { MOZ_CrashSequence(__null, 4516); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4517 }
4518
4519 ~CursorOpBase() override = default;
4520
4521 bool SendFailureResult(nsresult aResultCode) final;
4522 nsresult SendSuccessResult() final;
4523
4524 void Cleanup() override;
4525};
4526
4527template <IDBCursorType CursorType>
4528class OpenOpHelper;
4529
4530using ResponseSizeOrError = Result<size_t, nsresult>;
4531
4532template <IDBCursorType CursorType>
4533class CursorOpBaseHelperBase {
4534 public:
4535 explicit CursorOpBaseHelperBase(
4536 typename Cursor<CursorType>::CursorOpBase& aOp)
4537 : mOp{aOp} {}
4538
4539 ResponseSizeOrError PopulateResponseFromStatement(mozIStorageStatement* aStmt,
4540 bool aInitializeResponse,
4541 Key* const aOptOutSortKey);
4542
4543 void PopulateExtraResponses(mozIStorageStatement* aStmt,
4544 uint32_t aMaxExtraCount,
4545 const size_t aInitialResponseSize,
4546 const nsACString& aOperation,
4547 Key* const aOptPreviousSortKey);
4548
4549 protected:
4550 Cursor<CursorType>& GetCursor() {
4551 MOZ_ASSERT(mOp.mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOp.mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp.mCursor))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mOp.mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4551); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mCursor"
")"); do { MOZ_CrashSequence(__null, 4551); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4552 return *mOp.mCursor;
4553 }
4554
4555 void SetResponse(CursorResponse aResponse) {
4556 mOp.mResponse = std::move(aResponse);
4557 }
4558
4559 protected:
4560 typename Cursor<CursorType>::CursorOpBase& mOp;
4561};
4562
4563class CommonOpenOpHelperBase {
4564 protected:
4565 static void AppendConditionClause(const nsACString& aColumnName,
4566 const nsACString& aStatementParameterName,
4567 bool aLessThan, bool aEquals,
4568 nsCString& aResult);
4569};
4570
4571template <IDBCursorType CursorType>
4572class CommonOpenOpHelper : public CursorOpBaseHelperBase<CursorType>,
4573 protected CommonOpenOpHelperBase {
4574 public:
4575 explicit CommonOpenOpHelper(typename Cursor<CursorType>::OpenOp& aOp)
4576 : CursorOpBaseHelperBase<CursorType>{aOp} {}
4577
4578 protected:
4579 using CursorOpBaseHelperBase<CursorType>::GetCursor;
4580 using CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses;
4581 using CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement;
4582 using CursorOpBaseHelperBase<CursorType>::SetResponse;
4583
4584 const Maybe<SerializedKeyRange>& GetOptionalKeyRange() const {
4585 // This downcast is safe, since we initialized mOp from an OpenOp in the
4586 // ctor.
4587 return static_cast<typename Cursor<CursorType>::OpenOp&>(this->mOp)
4588 .mOptionalKeyRange;
4589 }
4590
4591 nsresult ProcessStatementSteps(mozIStorageStatement* aStmt);
4592};
4593
4594template <IDBCursorType CursorType>
4595class ObjectStoreOpenOpHelper : protected CommonOpenOpHelper<CursorType> {
4596 public:
4597 using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper;
4598
4599 protected:
4600 using CommonOpenOpHelper<CursorType>::GetCursor;
4601 using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange;
4602 using CommonOpenOpHelper<CursorType>::AppendConditionClause;
4603
4604 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4605 const nsACString& aQueryStart);
4606};
4607
4608template <IDBCursorType CursorType>
4609class IndexOpenOpHelper : protected CommonOpenOpHelper<CursorType> {
4610 public:
4611 using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper;
4612
4613 protected:
4614 using CommonOpenOpHelper<CursorType>::GetCursor;
4615 using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange;
4616 using CommonOpenOpHelper<CursorType>::AppendConditionClause;
4617
4618 void PrepareIndexKeyConditionClause(
4619 const nsACString& aDirectionClause,
4620 const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart);
4621};
4622
4623template <>
4624class OpenOpHelper<IDBCursorType::ObjectStore>
4625 : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStore> {
4626 public:
4627 using ObjectStoreOpenOpHelper<
4628 IDBCursorType::ObjectStore>::ObjectStoreOpenOpHelper;
4629
4630 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4631};
4632
4633template <>
4634class OpenOpHelper<IDBCursorType::ObjectStoreKey>
4635 : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStoreKey> {
4636 public:
4637 using ObjectStoreOpenOpHelper<
4638 IDBCursorType::ObjectStoreKey>::ObjectStoreOpenOpHelper;
4639
4640 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4641};
4642
4643template <>
4644class OpenOpHelper<IDBCursorType::Index>
4645 : IndexOpenOpHelper<IDBCursorType::Index> {
4646 private:
4647 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4648 nsAutoCString aQueryStart) {
4649 PrepareIndexKeyConditionClause(aDirectionClause, "index_table."_ns,
4650 std::move(aQueryStart));
4651 }
4652
4653 public:
4654 using IndexOpenOpHelper<IDBCursorType::Index>::IndexOpenOpHelper;
4655
4656 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4657};
4658
4659template <>
4660class OpenOpHelper<IDBCursorType::IndexKey>
4661 : IndexOpenOpHelper<IDBCursorType::IndexKey> {
4662 private:
4663 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4664 nsAutoCString aQueryStart) {
4665 PrepareIndexKeyConditionClause(aDirectionClause, ""_ns,
4666 std::move(aQueryStart));
4667 }
4668
4669 public:
4670 using IndexOpenOpHelper<IDBCursorType::IndexKey>::IndexOpenOpHelper;
4671
4672 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4673};
4674
4675template <IDBCursorType CursorType>
4676class Cursor<CursorType>::OpenOp final : public CursorOpBase {
4677 friend class Cursor<CursorType>;
4678 friend class CommonOpenOpHelper<CursorType>;
4679
4680 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4681
4682 using CursorOpBase::mCursor;
4683 using CursorOpBase::mResponse;
4684
4685 // Only created by Cursor.
4686 OpenOp(Cursor* const aCursor, const int64_t aRequestId,
4687 const Maybe<SerializedKeyRange>& aOptionalKeyRange)
4688 : CursorOpBase(aCursor, aRequestId),
4689 mOptionalKeyRange(aOptionalKeyRange) {}
4690
4691 // Reference counted.
4692 ~OpenOp() override = default;
4693
4694 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4695};
4696
4697template <IDBCursorType CursorType>
4698class Cursor<CursorType>::ContinueOp final
4699 : public Cursor<CursorType>::CursorOpBase {
4700 friend class Cursor<CursorType>;
4701
4702 using CursorOpBase::mCursor;
4703 using CursorOpBase::mResponse;
4704 const CursorRequestParams mParams;
4705
4706 // Only created by Cursor.
4707 ContinueOp(Cursor* const aCursor, int64_t aRequestId,
4708 CursorRequestParams aParams, CursorPosition<CursorType> aPosition)
4709 : CursorOpBase(aCursor, aRequestId),
4710 mParams(std::move(aParams)),
4711 mCurrentPosition{std::move(aPosition)} {
4712 MOZ_ASSERT(mParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mParams.type() != CursorRequestParams::T__None)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mParams.type() != CursorRequestParams::T__None))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mParams.type() != CursorRequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4712)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mParams.type() != CursorRequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 4712); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4713 }
4714
4715 // Reference counted.
4716 ~ContinueOp() override = default;
4717
4718 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4719
4720 const CursorPosition<CursorType> mCurrentPosition;
4721};
4722
4723class Utils final : public PBackgroundIndexedDBUtilsParent {
4724#ifdef DEBUG1
4725 bool mActorDestroyed;
4726#endif
4727
4728 public:
4729 Utils();
4730
4731 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::Utils)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<mozilla::dom::indexedDB::Utils>
, "Reference-counted class " "mozilla::dom::indexedDB::Utils"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4731); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4731
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::Utils"), (uint32_t)(sizeof(*this
))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4731); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4731
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::Utils")); if (count == 0) {
delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
4732
4733 private:
4734 // Reference counted.
4735 ~Utils() override;
4736
4737 // IPDL methods are only called by IPDL.
4738 void ActorDestroy(ActorDestroyReason aWhy) override;
4739
4740 mozilla::ipc::IPCResult RecvDeleteMe() override;
4741
4742 mozilla::ipc::IPCResult RecvGetFileReferences(
4743 const PersistenceType& aPersistenceType, const nsACString& aOrigin,
4744 const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt,
4745 int32_t* aDBRefCnt, bool* aResult) override;
4746
4747 mozilla::ipc::IPCResult RecvDoMaintenance(
4748 DoMaintenanceResolver&& aResolver) override;
4749};
4750
4751/*******************************************************************************
4752 * Other class declarations
4753 ******************************************************************************/
4754
4755struct DatabaseActorInfo final {
4756 friend class mozilla::DefaultDelete<DatabaseActorInfo>;
4757
4758 SafeRefPtr<FullDatabaseMetadata> mMetadata;
4759 // We don't use LinkedList<CheckedUnsafePtr<Database>> because
4760 // CheckedUnsafePtr is not suitable for use within LinkedList. While it's
4761 // theoretically possible to adapt LinkedList to support it, doing so would
4762 // introduce unnecessary overhead. Instead, we use a simpler and more
4763 // efficient approach. Each Database instance asserts !isInList() in its
4764 // destructor to catch dangling pointer issues.
4765 LinkedList<Database> mLiveDatabases;
4766 RefPtr<FactoryOp> mWaitingFactoryOp;
4767
4768 DatabaseActorInfo(SafeRefPtr<FullDatabaseMetadata> aMetadata,
4769 NotNull<Database*> aDatabase)
4770 : mMetadata(std::move(aMetadata)) {
4771 MOZ_COUNT_CTOR(DatabaseActorInfo)do { static_assert(std::is_class_v<DatabaseActorInfo>, "Token '"
"DatabaseActorInfo" "' is not a class type."); static_assert
(!std::is_base_of<nsISupports, DatabaseActorInfo>::value
, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseActorInfo"
, sizeof(*this)); } while (0)
;
4772
4773 mLiveDatabases.insertBack(aDatabase);
4774 }
4775
4776 private:
4777 ~DatabaseActorInfo() {
4778 MOZ_ASSERT(mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLiveDatabases.isEmpty()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mLiveDatabases.isEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4778)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLiveDatabases.isEmpty()"
")"); do { MOZ_CrashSequence(__null, 4778); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4779 MOZ_ASSERT(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4779)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { MOZ_CrashSequence(__null, 4779); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4780
4781 MOZ_COUNT_DTOR(DatabaseActorInfo)do { static_assert(std::is_class_v<DatabaseActorInfo>, "Token '"
"DatabaseActorInfo" "' is not a class type."); static_assert
(!std::is_base_of<nsISupports, DatabaseActorInfo>::value
, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseActorInfo"
, sizeof(*this)); } while (0)
;
4782 }
4783};
4784
4785class DatabaseLoggingInfo final {
4786#ifdef DEBUG1
4787 // Just for potential warnings.
4788 friend class Factory;
4789#endif
4790
4791 LoggingInfo mLoggingInfo;
4792
4793 public:
4794 explicit DatabaseLoggingInfo(const LoggingInfo& aLoggingInfo)
4795 : mLoggingInfo(aLoggingInfo) {
4796 AssertIsOnBackgroundThread();
4797 MOZ_ASSERT(aLoggingInfo.nextTransactionSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLoggingInfo.nextTransactionSerialNumber())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aLoggingInfo.nextTransactionSerialNumber()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aLoggingInfo.nextTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4797)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextTransactionSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 4797); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4798 MOZ_ASSERT(aLoggingInfo.nextVersionChangeTransactionSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLoggingInfo.nextVersionChangeTransactionSerialNumber
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aLoggingInfo.nextVersionChangeTransactionSerialNumber()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextVersionChangeTransactionSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 4798); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4799 MOZ_ASSERT(aLoggingInfo.nextRequestSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLoggingInfo.nextRequestSerialNumber())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aLoggingInfo.nextRequestSerialNumber()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aLoggingInfo.nextRequestSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4799)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextRequestSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 4799); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4800 }
4801
4802 const nsID& Id() const {
4803 AssertIsOnBackgroundThread();
4804
4805 return mLoggingInfo.backgroundChildLoggingId();
4806 }
4807
4808 int64_t NextTransactionSN(IDBTransaction::Mode aMode) {
4809 AssertIsOnBackgroundThread();
4810 MOZ_ASSERT(mLoggingInfo.nextTransactionSerialNumber() < INT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4810)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L)"
")"); do { MOZ_CrashSequence(__null, 4810); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4811 MOZ_ASSERT(mLoggingInfo.nextVersionChangeTransactionSerialNumber() >do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingInfo.nextVersionChangeTransactionSerialNumber
() > (-9223372036854775807L -1))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLoggingInfo.nextVersionChangeTransactionSerialNumber
() > (-9223372036854775807L -1)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4812)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
")"); do { MOZ_CrashSequence(__null, 4812); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4812 INT64_MIN)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingInfo.nextVersionChangeTransactionSerialNumber
() > (-9223372036854775807L -1))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLoggingInfo.nextVersionChangeTransactionSerialNumber
() > (-9223372036854775807L -1)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4812)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
")"); do { MOZ_CrashSequence(__null, 4812); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4813
4814 if (aMode == IDBTransaction::Mode::VersionChange) {
4815 return mLoggingInfo.nextVersionChangeTransactionSerialNumber()--;
4816 }
4817
4818 return mLoggingInfo.nextTransactionSerialNumber()++;
4819 }
4820
4821 uint64_t NextRequestSN() {
4822 AssertIsOnBackgroundThread();
4823 MOZ_ASSERT(mLoggingInfo.nextRequestSerialNumber() < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4823)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL)"
")"); do { MOZ_CrashSequence(__null, 4823); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4824
4825 return mLoggingInfo.nextRequestSerialNumber()++;
4826 }
4827
4828 NS_INLINE_DECL_REFCOUNTING(DatabaseLoggingInfo)public: MozExternalRefCountType AddRef(void) { static_assert(
!std::is_destructible_v<DatabaseLoggingInfo>, "Reference-counted class "
"DatabaseLoggingInfo" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4828); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4828
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); _mOwningThread.AssertOwnership("DatabaseLoggingInfo"
" not thread-safe"); ++mRefCnt; NS_LogAddRef((this), (mRefCnt
), ("DatabaseLoggingInfo"), (uint32_t)(sizeof(*this))); return
mRefCnt; } MozExternalRefCountType Release(void) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4828); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4828
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); _mOwningThread.AssertOwnership("DatabaseLoggingInfo"
" not thread-safe"); --mRefCnt; NS_LogRelease((this), (mRefCnt
), ("DatabaseLoggingInfo")); if (mRefCnt == 0) { mRefCnt = 1;
delete (this); return 0; } return mRefCnt; } using HasThreadSafeRefCnt
= std::false_type; protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread
_mOwningThread; public:
4829
4830 private:
4831 ~DatabaseLoggingInfo();
4832};
4833
4834class QuotaClient final : public mozilla::dom::quota::Client {
4835 friend class GetDatabasesOp;
4836
4837 static QuotaClient* sInstance;
4838
4839 nsCOMPtr<nsIEventTarget> mBackgroundThread;
4840 nsCOMPtr<nsITimer> mDeleteTimer;
4841 nsTArray<RefPtr<Maintenance>> mMaintenanceQueue;
4842 RefPtr<Maintenance> mCurrentMaintenance;
4843 RefPtr<nsThreadPool> mMaintenanceThreadPool;
4844 nsClassHashtable<nsRefPtrHashKey<DatabaseFileManager>, nsTArray<int64_t>>
4845 mPendingDeleteInfos;
4846
4847 public:
4848 QuotaClient();
4849
4850 static QuotaClient* GetInstance() {
4851 AssertIsOnBackgroundThread();
4852
4853 return sInstance;
4854 }
4855
4856 nsIEventTarget* BackgroundThread() const {
4857 MOZ_ASSERT(mBackgroundThread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mBackgroundThread)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mBackgroundThread))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mBackgroundThread"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 4857)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundThread"
")"); do { MOZ_CrashSequence(__null, 4857); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4858 return mBackgroundThread;
4859 }
4860
4861 nsresult AsyncDeleteFile(DatabaseFileManager* aFileManager, int64_t aFileId);
4862
4863 nsresult FlushPendingFileDeletions();
4864
4865 RefPtr<BoolPromise> DoMaintenance();
4866
4867 RefPtr<Maintenance> GetCurrentMaintenance() const {
4868 return mCurrentMaintenance;
4869 }
4870
4871 void NoteFinishedMaintenance(Maintenance* aMaintenance) {
4872 AssertIsOnBackgroundThread();
4873 MOZ_ASSERT(aMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMaintenance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMaintenance))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aMaintenance", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4873); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenance"
")"); do { MOZ_CrashSequence(__null, 4873); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4874 MOZ_ASSERT(mCurrentMaintenance == aMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCurrentMaintenance == aMaintenance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCurrentMaintenance == aMaintenance
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mCurrentMaintenance == aMaintenance", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4874); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentMaintenance == aMaintenance"
")"); do { MOZ_CrashSequence(__null, 4874); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4875
4876 mCurrentMaintenance = nullptr;
4877
4878 QuotaManager::MaybeRecordQuotaClientShutdownStep(quota::Client::IDB,
4879 "Maintenance finished"_ns);
4880
4881 ProcessMaintenanceQueue();
4882 }
4883
4884 nsThreadPool* GetOrCreateThreadPool();
4885
4886 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::QuotaClient,public: MozExternalRefCountType AddRef(void) override { static_assert
(!std::is_destructible_v<mozilla::dom::indexedDB::QuotaClient
>, "Reference-counted class " "mozilla::dom::indexedDB::QuotaClient"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4887
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::QuotaClient"), (uint32_t)(sizeof
(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) override { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4887
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::QuotaClient")); if (count ==
0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
4887 override)public: MozExternalRefCountType AddRef(void) override { static_assert
(!std::is_destructible_v<mozilla::dom::indexedDB::QuotaClient
>, "Reference-counted class " "mozilla::dom::indexedDB::QuotaClient"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4887
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count
), ("mozilla::dom::indexedDB::QuotaClient"), (uint32_t)(sizeof
(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release
(void) override { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 4887); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4887
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), (
count), ("mozilla::dom::indexedDB::QuotaClient")); if (count ==
0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt
= std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt
mRefCnt; public:
4888
4889 mozilla::dom::quota::Client::Type GetType() override;
4890
4891 nsresult UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) override;
4892
4893 nsresult UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) override;
4894
4895 Result<UsageInfo, nsresult> InitOrigin(PersistenceType aPersistenceType,
4896 const OriginMetadata& aOriginMetadata,
4897 const AtomicBool& aCanceled) override;
4898
4899 nsresult InitOriginWithoutTracking(PersistenceType aPersistenceType,
4900 const OriginMetadata& aOriginMetadata,
4901 const AtomicBool& aCanceled) override;
4902
4903 Result<UsageInfo, nsresult> GetUsageForOrigin(
4904 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
4905 const AtomicBool& aCanceled) override;
4906
4907 void OnOriginClearCompleted(const OriginMetadata& aOriginMetadata) override;
4908
4909 void OnRepositoryClearCompleted(PersistenceType aPersistenceType) override;
4910
4911 void ReleaseIOThreadObjects() override;
4912
4913 void AbortOperationsForLocks(
4914 const DirectoryLockIdTable& aDirectoryLockIds) override;
4915
4916 void AbortOperationsForProcess(ContentParentId aContentParentId) override;
4917
4918 void AbortAllOperations() override;
4919
4920 void StartIdleMaintenance() override;
4921
4922 void StopIdleMaintenance() override;
4923
4924 private:
4925 ~QuotaClient() override;
4926
4927 void InitiateShutdown() override;
4928 bool IsShutdownCompleted() const override;
4929 nsCString GetShutdownStatus() const override;
4930 void ForceKillActors() override;
4931 void FinalizeShutdown() override;
4932
4933 static void DeleteTimerCallback(nsITimer* aTimer, void* aClosure);
4934
4935 void AbortAllMaintenances();
4936
4937 Result<nsCOMPtr<nsIFile>, nsresult> GetDirectory(
4938 const OriginMetadata& aOriginMetadata);
4939
4940 struct SubdirectoriesToProcessAndDatabaseFilenames {
4941 AutoTArray<nsString, 20> subdirsToProcess;
4942 nsTHashSet<nsString> databaseFilenames{20};
4943 };
4944
4945 struct SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames {
4946 AutoTArray<nsString, 20> subdirsToProcess;
4947 nsTHashSet<nsString> databaseFilenames{20};
4948 nsTHashSet<nsString> obsoleteFilenames{20};
4949 };
4950
4951 enum class ObsoleteFilenamesHandling { Include, Omit };
4952
4953 template <ObsoleteFilenamesHandling ObsoleteFilenames>
4954 using GetDatabaseFilenamesResult = std::conditional_t<
4955 ObsoleteFilenames == ObsoleteFilenamesHandling::Include,
4956 SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames,
4957 SubdirectoriesToProcessAndDatabaseFilenames>;
4958
4959 // Returns a two-part or three-part structure:
4960 //
4961 // The first part is an array of subdirectories to process.
4962 //
4963 // The second part is a hashtable of database filenames.
4964 //
4965 // When ObsoleteFilenames is ObsoleteFilenamesHandling::Include, will also
4966 // collect files based on the marker files. For now,
4967 // GetUsageForOriginInternal() is the only consumer of this result because it
4968 // checks those unfinished deletion and clean them up after that.
4969 template <ObsoleteFilenamesHandling ObsoleteFilenames =
4970 ObsoleteFilenamesHandling::Omit>
4971 Result<GetDatabaseFilenamesResult<ObsoleteFilenames>,
4972 nsresult> static GetDatabaseFilenames(nsIFile& aDirectory,
4973 const AtomicBool& aCanceled);
4974
4975 nsresult GetUsageForOriginInternal(PersistenceType aPersistenceType,
4976 const OriginMetadata& aOriginMetadata,
4977 const AtomicBool& aCanceled,
4978 bool aInitializing, UsageInfo* aUsageInfo);
4979
4980 // Runs on the PBackground thread. Checks to see if there's a queued
4981 // Maintenance to run.
4982 void ProcessMaintenanceQueue();
4983};
4984
4985class DeleteFilesRunnable final : public Runnable {
4986 using ClientDirectoryLock = mozilla::dom::quota::ClientDirectoryLock;
4987
4988 enum State {
4989 // Just created on the PBackground thread. Next step is
4990 // State_DirectoryOpenPending.
4991 State_Initial,
4992
4993 // Waiting for directory open allowed on the main thread. The next step is
4994 // State_DatabaseWorkOpen.
4995 State_DirectoryOpenPending,
4996
4997 // Waiting to do/doing work on the QuotaManager IO thread. The next step is
4998 // State_UnblockingOpen.
4999 State_DatabaseWorkOpen,
5000
5001 // Notifying the QuotaManager that it can proceed to the next operation on
5002 // the main thread. Next step is State_Completed.
5003 State_UnblockingOpen,
5004
5005 // All done.
5006 State_Completed
5007 };
5008
5009 nsCOMPtr<nsIEventTarget> mOwningEventTarget;
5010 SafeRefPtr<DatabaseFileManager> mFileManager;
5011 ClientDirectoryLockHandle mDirectoryLockHandle;
5012 nsTArray<int64_t> mFileIds;
5013 State mState;
5014 DEBUGONLY(bool mDEBUGCountsAsPending = false)bool mDEBUGCountsAsPending = false;
5015
5016 static uint64_t sPendingRunnables;
5017
5018 public:
5019 DeleteFilesRunnable(SafeRefPtr<DatabaseFileManager> aFileManager,
5020 nsTArray<int64_t>&& aFileIds);
5021
5022 void RunImmediately();
5023
5024 static bool IsDeletionPending() { return sPendingRunnables > 0; }
5025
5026 private:
5027#ifdef DEBUG1
5028 ~DeleteFilesRunnable();
5029#else
5030 ~DeleteFilesRunnable() = default;
5031#endif
5032
5033 void Open();
5034
5035 void DoDatabaseWork();
5036
5037 void Finish();
5038
5039 void UnblockOpen();
5040
5041 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
5042
5043 void DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle);
5044
5045 void DirectoryLockFailed();
5046};
5047
5048class Maintenance final : public Runnable {
5049 struct DirectoryInfo final {
5050 InitializedOnce<const OriginMetadata> mOriginMetadata;
5051 InitializedOnce<const nsTArray<nsString>> mDatabasePaths;
5052 const PersistenceType mPersistenceType;
5053
5054 DirectoryInfo(PersistenceType aPersistenceType,
5055 OriginMetadata aOriginMetadata,
5056 nsTArray<nsString>&& aDatabasePaths);
5057
5058 DirectoryInfo(const DirectoryInfo& aOther) = delete;
5059 DirectoryInfo(DirectoryInfo&& aOther) = delete;
5060
5061 ~DirectoryInfo() { MOZ_COUNT_DTOR(Maintenance::DirectoryInfo)do { static_assert(std::is_class_v<Maintenance::DirectoryInfo
>, "Token '" "Maintenance::DirectoryInfo" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, Maintenance
::DirectoryInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "Maintenance::DirectoryInfo"
, sizeof(*this)); } while (0)
; }
5062 };
5063
5064 enum class State {
5065 // Newly created on the PBackground thread. Will proceed immediately or be
5066 // added to the maintenance queue. The next step is either
5067 // DirectoryOpenPending if IndexedDatabaseManager is running, or
5068 // CreateIndexedDatabaseManager if not.
5069 Initial = 0,
5070
5071 // Create IndexedDatabaseManager on the main thread. The next step is either
5072 // Finishing if IndexedDatabaseManager initialization fails, or
5073 // IndexedDatabaseManagerOpen if initialization succeeds.
5074 CreateIndexedDatabaseManager,
5075
5076 // Call OpenDirectory() on the PBackground thread. The next step is
5077 // DirectoryOpenPending.
5078 IndexedDatabaseManagerOpen,
5079
5080 // Waiting for directory open allowed on the PBackground thread. The next
5081 // step is either Finishing if directory lock failed to acquire, or
5082 // DirectoryWorkOpen if directory lock is acquired.
5083 DirectoryOpenPending,
5084
5085 // Waiting to do/doing work on the QuotaManager IO thread. The next step is
5086 // BeginDatabaseMaintenance.
5087 DirectoryWorkOpen,
5088
5089 // Dispatching a runnable for each database on the PBackground thread. The
5090 // next state is either WaitingForDatabaseMaintenancesToComplete if at least
5091 // one runnable has been dispatched, or Finishing otherwise.
5092 BeginDatabaseMaintenance,
5093
5094 // Waiting for DatabaseMaintenance to finish on maintenance thread pool.
5095 // The next state is Finishing if the last runnable has finished.
5096 WaitingForDatabaseMaintenancesToComplete,
5097
5098 // Waiting to finish/finishing on the PBackground thread. The next step is
5099 // Completed.
5100 Finishing,
5101
5102 // All done.
5103 Complete
5104 };
5105
5106 RefPtr<QuotaClient> mQuotaClient;
5107 MozPromiseHolder<BoolPromise> mPromiseHolder;
5108 PRTime mStartTime;
5109 RefPtr<UniversalDirectoryLock> mPendingDirectoryLock;
5110 // The directory lock is normally dropped by BeginDatabaseMaintenance, but if
5111 // something fails (in any method), the Finish method will do the cleanup.
5112 RefPtr<UniversalDirectoryLock> mDirectoryLock;
5113 nsTArray<nsCOMPtr<nsIRunnable>> mCompleteCallbacks;
5114 nsTArray<DirectoryInfo> mDirectoryInfos;
5115 nsTHashMap<nsStringHashKey, DatabaseMaintenance*> mDatabaseMaintenances;
5116 nsresult mResultCode;
5117 Atomic<bool> mAborted;
5118 bool mOpenStorageForAllRepositoriesFailed;
5119 State mState;
5120
5121 public:
5122 explicit Maintenance(QuotaClient* aQuotaClient)
5123 : Runnable("dom::indexedDB::Maintenance"),
5124 mQuotaClient(aQuotaClient),
5125 mStartTime(PR_Now()),
5126 mResultCode(NS_OK),
5127 mAborted(false),
5128 mOpenStorageForAllRepositoriesFailed(false),
5129 mState(State::Initial) {
5130 AssertIsOnBackgroundThread();
5131 MOZ_ASSERT(aQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aQuotaClient)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aQuotaClient))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aQuotaClient", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaClient"
")"); do { MOZ_CrashSequence(__null, 5131); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5132 MOZ_ASSERT(QuotaClient::GetInstance() == aQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(QuotaClient::GetInstance() == aQuotaClient)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(QuotaClient::GetInstance() == aQuotaClient))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("QuotaClient::GetInstance() == aQuotaClient"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5132)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaClient::GetInstance() == aQuotaClient"
")"); do { MOZ_CrashSequence(__null, 5132); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5133 MOZ_ASSERT(mStartTime)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mStartTime)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mStartTime))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mStartTime", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5133); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mStartTime"
")"); do { MOZ_CrashSequence(__null, 5133); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5134 }
5135
5136 nsIEventTarget* BackgroundThread() const {
5137 MOZ_ASSERT(mQuotaClient)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mQuotaClient)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mQuotaClient))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mQuotaClient", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5137); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaClient"
")"); do { MOZ_CrashSequence(__null, 5137); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5138 return mQuotaClient->BackgroundThread();
5139 }
5140
5141 PRTime StartTime() const { return mStartTime; }
5142
5143 bool IsAborted() const { return mAborted; }
5144
5145 void RunImmediately() {
5146 MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5146)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { MOZ_CrashSequence(__null, 5146); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5147
5148 Unused << this->Run();
5149 }
5150
5151 RefPtr<BoolPromise> OnResults() {
5152 AssertIsOnBackgroundThread();
5153
5154 return mPromiseHolder.Ensure(__func__);
5155 }
5156
5157 void Abort();
5158
5159 void RegisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance);
5160
5161 void UnregisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance);
5162
5163 bool HasDatabaseMaintenances() const { return mDatabaseMaintenances.Count(); }
5164
5165 RefPtr<DatabaseMaintenance> GetDatabaseMaintenance(
5166 const nsAString& aDatabasePath) const {
5167 AssertIsOnBackgroundThread();
5168
5169 return mDatabaseMaintenances.Get(aDatabasePath);
5170 }
5171
5172 void WaitForCompletion(nsIRunnable* aCallback) {
5173 AssertIsOnBackgroundThread();
5174 MOZ_ASSERT(mDatabaseMaintenances.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseMaintenances.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseMaintenances.Count(
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mDatabaseMaintenances.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Count()"
")"); do { MOZ_CrashSequence(__null, 5174); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5175
5176 mCompleteCallbacks.AppendElement(aCallback);
5177 }
5178
5179 void Stringify(nsACString& aResult) const;
5180
5181 private:
5182 ~Maintenance() override {
5183 MOZ_ASSERT(mState == State::Complete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Complete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Complete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Complete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5183)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete"
")"); do { MOZ_CrashSequence(__null, 5183); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5184 MOZ_ASSERT(!mDatabaseMaintenances.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseMaintenances.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Count
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mDatabaseMaintenances.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5184); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Count()"
")"); do { MOZ_CrashSequence(__null, 5184); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5185 }
5186
5187 // Runs on the PBackground thread. Checks if IndexedDatabaseManager is
5188 // running. Calls OpenDirectory() or dispatches to the main thread on which
5189 // CreateIndexedDatabaseManager() is called.
5190 nsresult Start();
5191
5192 // Runs on the main thread. Once IndexedDatabaseManager is created it will
5193 // dispatch to the PBackground thread on which OpenDirectory() is called.
5194 nsresult CreateIndexedDatabaseManager();
5195
5196 RefPtr<UniversalDirectoryLockPromise> OpenStorageDirectory(
5197 const PersistenceScope& aPersistenceScope, bool aInitializeOrigins);
5198
5199 // Runs on the PBackground thread. Once QuotaManager has given a lock it will
5200 // call DirectoryOpen().
5201 nsresult OpenDirectory();
5202
5203 // Runs on the PBackground thread. Dispatches to the QuotaManager I/O thread.
5204 nsresult DirectoryOpen();
5205
5206 // Runs on the QuotaManager I/O thread. Once it finds databases it will
5207 // dispatch to the PBackground thread on which BeginDatabaseMaintenance()
5208 // is called.
5209 nsresult DirectoryWork();
5210
5211 // Runs on the PBackground thread. It dispatches a runnable for each database.
5212 nsresult BeginDatabaseMaintenance();
5213
5214 // Runs on the PBackground thread. Called when the maintenance is finished or
5215 // if any of above methods fails.
5216 void Finish();
5217
5218 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
5219
5220 void DirectoryLockAcquired(UniversalDirectoryLock* aLock);
5221
5222 void DirectoryLockFailed();
5223};
5224
5225Maintenance::DirectoryInfo::DirectoryInfo(PersistenceType aPersistenceType,
5226 OriginMetadata aOriginMetadata,
5227 nsTArray<nsString>&& aDatabasePaths)
5228 : mOriginMetadata(std::move(aOriginMetadata)),
5229 mDatabasePaths(std::move(aDatabasePaths)),
5230 mPersistenceType(aPersistenceType) {
5231 MOZ_ASSERT(aPersistenceType != PERSISTENCE_TYPE_INVALID)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aPersistenceType != PERSISTENCE_TYPE_INVALID)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aPersistenceType != PERSISTENCE_TYPE_INVALID))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aPersistenceType != PERSISTENCE_TYPE_INVALID"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5231)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPersistenceType != PERSISTENCE_TYPE_INVALID"
")"); do { MOZ_CrashSequence(__null, 5231); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5232 MOZ_ASSERT(!mOriginMetadata->mGroup.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOriginMetadata->mGroup.IsEmpty())>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(!mOriginMetadata->mGroup.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mOriginMetadata->mGroup.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5232)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mGroup.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5232); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5233 MOZ_ASSERT(!mOriginMetadata->mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOriginMetadata->mOrigin.IsEmpty())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mOriginMetadata->mOrigin.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mOriginMetadata->mOrigin.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5233)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mOrigin.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5233); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5234#ifdef DEBUG1
5235 MOZ_ASSERT(!mDatabasePaths->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabasePaths->IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabasePaths->IsEmpty(
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mDatabasePaths->IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5235); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePaths->IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5235); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5236 for (const nsAString& databasePath : *mDatabasePaths) {
5237 MOZ_ASSERT(!databasePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!databasePath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!databasePath.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!databasePath.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5237)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePath.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5237); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5238 }
5239#endif
5240
5241 MOZ_COUNT_CTOR(Maintenance::DirectoryInfo)do { static_assert(std::is_class_v<Maintenance::DirectoryInfo
>, "Token '" "Maintenance::DirectoryInfo" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, Maintenance
::DirectoryInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "Maintenance::DirectoryInfo"
, sizeof(*this)); } while (0)
;
5242}
5243
5244class DatabaseMaintenance final : public Runnable {
5245 // The minimum amount of time that has passed since the last vacuum before we
5246 // will attempt to analyze the database for fragmentation.
5247 static const PRTime kMinVacuumAge =
5248 PRTime(PR_USEC_PER_SEC1000000L) * 60 * 60 * 24 * 7;
5249
5250 // If the percent of database pages that are not in contiguous order is higher
5251 // than this percentage we will attempt a vacuum.
5252 static const int32_t kPercentUnorderedThreshold = 30;
5253
5254 // If the percent of file size growth since the last vacuum is higher than
5255 // this percentage we will attempt a vacuum.
5256 static const int32_t kPercentFileSizeGrowthThreshold = 10;
5257
5258 // The number of freelist pages beyond which we will favor an incremental
5259 // vacuum over a full vacuum.
5260 static const int32_t kMaxFreelistThreshold = 5;
5261
5262 // If the percent of unused file bytes in the database exceeds this percentage
5263 // then we will attempt a full vacuum.
5264 static const int32_t kPercentUnusedThreshold = 20;
5265
5266 enum class MaintenanceAction { Nothing = 0, IncrementalVacuum, FullVacuum };
5267
5268 RefPtr<Maintenance> mMaintenance;
5269 // The directory lock is dropped in RunOnOwningThread which serves as a
5270 // cleanup method and is always called.
5271 RefPtr<ClientDirectoryLock> mDirectoryLock;
5272 const OriginMetadata mOriginMetadata;
5273 const nsString mDatabasePath;
5274 int64_t mDirectoryLockId;
5275 nsCOMPtr<nsIRunnable> mCompleteCallback;
5276 const PersistenceType mPersistenceType;
5277 const Maybe<CipherKey> mMaybeKey;
5278 Atomic<bool> mAborted;
5279 DataMutex<nsCOMPtr<mozIStorageConnection>> mSharedStorageConnection;
5280
5281 public:
5282 DatabaseMaintenance(Maintenance* aMaintenance,
5283 RefPtr<ClientDirectoryLock> aDirectoryLock,
5284 PersistenceType aPersistenceType,
5285 const OriginMetadata& aOriginMetadata,
5286 const nsAString& aDatabasePath,
5287 const Maybe<CipherKey>& aMaybeKey)
5288 : Runnable("dom::indexedDB::DatabaseMaintenance"),
5289 mMaintenance(aMaintenance),
5290 mDirectoryLock(std::move(aDirectoryLock)),
5291 mOriginMetadata(aOriginMetadata),
5292 mDatabasePath(aDatabasePath),
5293 mPersistenceType(aPersistenceType),
5294 mMaybeKey{aMaybeKey},
5295 mAborted(false),
5296 mSharedStorageConnection("sharedStorageConnection") {
5297 MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5297)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 5297); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5298
5299 MOZ_ASSERT(mDirectoryLock->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLock->Id() >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLock->Id() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mDirectoryLock->Id() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5299); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0"
")"); do { MOZ_CrashSequence(__null, 5299); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5300 mDirectoryLockId = mDirectoryLock->Id();
5301 }
5302
5303 const nsAString& DatabasePath() const { return mDatabasePath; }
5304
5305 void WaitForCompletion(nsIRunnable* aCallback) {
5306 AssertIsOnBackgroundThread();
5307 MOZ_ASSERT(!mCompleteCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCompleteCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mCompleteCallback))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mCompleteCallback"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5307)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCompleteCallback"
")"); do { MOZ_CrashSequence(__null, 5307); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5308
5309 mCompleteCallback = aCallback;
5310 }
5311
5312 void Stringify(nsACString& aResult) const;
5313
5314 nsresult Abort();
5315
5316 private:
5317 ~DatabaseMaintenance() override = default;
5318
5319 // Runs on maintenance thread pool. Does maintenance on the database.
5320 void PerformMaintenanceOnDatabase();
5321
5322 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5323 nsresult CheckIntegrity(mozIStorageConnection& aConnection, bool* aOk);
5324
5325 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5326 nsresult DetermineMaintenanceAction(mozIStorageConnection& aConnection,
5327 nsIFile* aDatabaseFile,
5328 MaintenanceAction* aMaintenanceAction);
5329
5330 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5331 void IncrementalVacuum(mozIStorageConnection& aConnection);
5332
5333 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5334 void FullVacuum(mozIStorageConnection& aConnection, nsIFile* aDatabaseFile);
5335
5336 // Runs on the PBackground thread. It dispatches a complete callback and
5337 // unregisters from Maintenance.
5338 void RunOnOwningThread();
5339
5340 // Runs on maintenance thread pool. Once it performs database maintenance
5341 // it will dispatch to the PBackground thread on which RunOnOwningThread()
5342 // is called.
5343 void RunOnConnectionThread();
5344
5345 // TODO: Could QuotaClient::IsShuttingDownOnNonBackgroundThread() call
5346 // be part of mMaintenance::IsAborted() ?
5347 inline bool IsAborted() const {
5348 return mMaintenance->IsAborted() || mAborted ||
5349 NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5349)
;
5350 }
5351
5352 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
5353};
5354
5355#ifdef DEBUG1
5356
5357class DEBUGThreadSlower final : public nsIThreadObserver {
5358 public:
5359 DEBUGThreadSlower() {
5360 AssertIsOnBackgroundThread();
5361 MOZ_ASSERT(kDEBUGThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(kDEBUGThreadSleepMS)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(kDEBUGThreadSleepMS))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("kDEBUGThreadSleepMS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5361)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS"
")"); do { MOZ_CrashSequence(__null, 5361); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5362 }
5363
5364 NS_DECL_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override; using HasThreadSafeRefCnt = std::false_type;
protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread
; public:
5365
5366 private:
5367 ~DEBUGThreadSlower() { AssertIsOnBackgroundThread(); }
5368
5369 NS_DECL_NSITHREADOBSERVERvirtual nsresult OnDispatchedEvent(void) override; virtual nsresult
OnProcessNextEvent(nsIThreadInternal *thread, bool mayWait) override
; virtual nsresult AfterProcessNextEvent(nsIThreadInternal *thread
, bool eventWasProcessed) override;
5370};
5371
5372#endif // DEBUG
5373
5374/*******************************************************************************
5375 * Helper classes
5376 ******************************************************************************/
5377
5378// XXX Get rid of FileHelper and move the functions into DatabaseFileManager.
5379// Then, DatabaseFileManager::Get(Journal)Directory and
5380// DatabaseFileManager::GetFileForId might eventually be made private.
5381class MOZ_STACK_CLASS FileHelper final {
5382 const SafeRefPtr<DatabaseFileManager> mFileManager;
5383
5384 LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mFileDirectory;
5385 LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mJournalDirectory;
5386
5387 class ReadCallback;
5388 LazyInitializedOnce<const NotNull<RefPtr<ReadCallback>>> mReadCallback;
5389
5390 public:
5391 explicit FileHelper(SafeRefPtr<DatabaseFileManager>&& aFileManager)
5392 : mFileManager(std::move(aFileManager)) {
5393 MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5393); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { MOZ_CrashSequence(__null, 5393); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5394 }
5395
5396 nsresult Init();
5397
5398 [[nodiscard]] nsCOMPtr<nsIFile> GetFile(const DatabaseFileInfo& aFileInfo);
5399
5400 [[nodiscard]] nsCOMPtr<nsIFile> GetJournalFile(
5401 const DatabaseFileInfo& aFileInfo);
5402
5403 nsresult CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile,
5404 nsIInputStream& aInputStream, bool aCompress,
5405 const Maybe<CipherKey>& aMaybeKey);
5406
5407 private:
5408 nsresult SyncCopy(nsIInputStream& aInputStream,
5409 nsIOutputStream& aOutputStream, char* aBuffer,
5410 uint32_t aBufferSize);
5411
5412 nsresult SyncRead(nsIInputStream& aInputStream, char* aBuffer,
5413 uint32_t aBufferSize, uint32_t* aRead);
5414};
5415
5416/*******************************************************************************
5417 * Helper Functions
5418 ******************************************************************************/
5419
5420bool GetFilenameBase(const nsAString& aFilename, const nsAString& aSuffix,
5421 nsDependentSubstring& aFilenameBase) {
5422 MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5422)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5422); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5423 MOZ_ASSERT(aFilenameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aFilenameBase.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aFilenameBase.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aFilenameBase.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5423)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilenameBase.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5423); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5424
5425 if (!StringEndsWith(aFilename, aSuffix) ||
5426 aFilename.Length() == aSuffix.Length()) {
5427 return false;
5428 }
5429
5430 MOZ_ASSERT(aFilename.Length() > aSuffix.Length())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aFilename.Length() > aSuffix.Length())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aFilename.Length() > aSuffix.Length()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aFilename.Length() > aSuffix.Length()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5430)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilename.Length() > aSuffix.Length()"
")"); do { MOZ_CrashSequence(__null, 5430); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5431
5432 aFilenameBase.Rebind(aFilename, 0, aFilename.Length() - aSuffix.Length());
5433 return true;
5434}
5435
5436class EncryptedFileBlobImpl final : public FileBlobImpl {
5437 public:
5438 EncryptedFileBlobImpl(const nsCOMPtr<nsIFile>& aNativeFile,
5439 const DatabaseFileInfo::IdType aId,
5440 const CipherKey& aKey)
5441 : FileBlobImpl{aNativeFile}, mKey{aKey} {
5442 SetFileId(aId);
5443 }
5444
5445 uint64_t GetSize(ErrorResult& aRv) override {
5446 nsCOMPtr<nsIInputStream> inputStream;
5447 CreateInputStream(getter_AddRefs(inputStream), aRv);
5448
5449 if (aRv.Failed()) {
5450 return 0;
5451 }
5452
5453 MOZ_ASSERT(inputStream)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(inputStream)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(inputStream))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("inputStream", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5453); AnnotateMozCrashReason("MOZ_ASSERT" "(" "inputStream"
")"); do { MOZ_CrashSequence(__null, 5453); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5454
5455 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(inputStream, Available), 0,{auto tryResult849 = (::mozilla::ToResultInvokeMember( (inputStream
), &::mozilla::detail::DerefedType<decltype(inputStream
)>::Available)); if ((__builtin_expect(!!(tryResult849.isErr
()), 0))) { auto tryTempError = tryResult849.unwrapErr(); mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5456, mozilla::dom::quota::Severity::Error); [&aRv](const
nsresult rv) { aRv = rv; }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)"
, tryTempError, 0); } return tryResult849.unwrap();}
5456 [&aRv](const nsresult rv) { aRv = rv; }){auto tryResult849 = (::mozilla::ToResultInvokeMember( (inputStream
), &::mozilla::detail::DerefedType<decltype(inputStream
)>::Available)); if ((__builtin_expect(!!(tryResult849.isErr
()), 0))) { auto tryTempError = tryResult849.unwrapErr(); mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5456, mozilla::dom::quota::Severity::Error); [&aRv](const
nsresult rv) { aRv = rv; }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (inputStream), &::mozilla::detail::DerefedType<decltype(inputStream)>::Available)"
, tryTempError, 0); } return tryResult849.unwrap();}
;
5457 }
5458
5459 void CreateInputStream(nsIInputStream** aInputStream,
5460 ErrorResult& aRv) const override {
5461 nsCOMPtr<nsIInputStream> baseInputStream;
5462 FileBlobImpl::CreateInputStream(getter_AddRefs(baseInputStream), aRv);
5463 if (NS_WARN_IF(aRv.Failed())NS_warn_if_impl(aRv.Failed(), "aRv.Failed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5463)
) {
5464 return;
5465 }
5466
5467 *aInputStream =
5468 MakeAndAddRef<DecryptingInputStream<IndexedDBCipherStrategy>>(
5469 WrapNotNull(std::move(baseInputStream)), kEncryptedStreamBlockSize,
5470 mKey)
5471 .take();
5472 }
5473
5474 void GetBlobImplType(nsAString& aBlobImplType) const override {
5475 aBlobImplType = u"EncryptedFileBlobImpl"_ns;
5476 }
5477
5478 already_AddRefed<BlobImpl> CreateSlice(uint64_t aStart, uint64_t aLength,
5479 const nsAString& aContentType,
5480 ErrorResult& aRv) const override {
5481 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5481)
; AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 5481); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
5482 }
5483
5484 private:
5485 const CipherKey mKey;
5486};
5487
5488RefPtr<BlobImpl> CreateFileBlobImpl(const Database& aDatabase,
5489 const nsCOMPtr<nsIFile>& aNativeFile,
5490 const DatabaseFileInfo::IdType aId) {
5491 if (aDatabase.IsInPrivateBrowsing()) {
5492 nsCString keyId;
5493 keyId.AppendInt(aId);
5494
5495 const auto& key =
5496 aDatabase.GetFileManager().MutableCipherKeyManagerRef().Get(keyId);
5497
5498 MOZ_RELEASE_ASSERT(key.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(key.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(key.isSome()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("key.isSome()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5498); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "key.isSome()"
")"); do { MOZ_CrashSequence(__null, 5498); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5499 return MakeRefPtr<EncryptedFileBlobImpl>(aNativeFile, aId, *key);
5500 }
5501
5502 auto impl = MakeRefPtr<FileBlobImpl>(aNativeFile);
5503 impl->SetFileId(aId);
5504
5505 return impl;
5506}
5507
5508Result<nsTArray<SerializedStructuredCloneFile>, nsresult>
5509SerializeStructuredCloneFiles(const SafeRefPtr<Database>& aDatabase,
5510 const nsTArray<StructuredCloneFileParent>& aFiles,
5511 bool aForPreprocess) {
5512 AssertIsOnBackgroundThread();
5513 MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5513); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase" ")"
); do { MOZ_CrashSequence(__null, 5513); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5514
5515 if (aFiles.IsEmpty()) {
5516 return nsTArray<SerializedStructuredCloneFile>{};
5517 }
5518
5519 const nsCOMPtr<nsIFile> directory =
5520 aDatabase->GetFileManager().GetCheckedDirectory();
5521 QM_TRY(OkIf(directory), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult850 = (OkIf(directory)); static_assert(std::is_empty_v
<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect
(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5522, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5522, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(directory)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
5522 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult850 = (OkIf(directory)); static_assert(std::is_empty_v
<typename decltype(tryResult850)::ok_type>); if ((__builtin_expect
(!!(tryResult850.isErr()), 0))) { auto tryTempError = tryResult850
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5522, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5522, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(directory)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}
;
5523
5524 nsTArray<SerializedStructuredCloneFile> serializedStructuredCloneFiles;
5525 QM_TRY(OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(),{auto tryResult851 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult851)::ok_type>); if ((__builtin_expect
(!!(tryResult851.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult851.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5527, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
5526 fallible)),{auto tryResult851 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult851)::ok_type>); if ((__builtin_expect
(!!(tryResult851.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult851.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5527, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
5527 Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult851 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult851)::ok_type>); if ((__builtin_expect
(!!(tryResult851.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult851.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5527, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
;
5528
5529 QM_TRY(TransformIfAbortOnErr({auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5530 aFiles, MakeBackInserter(serializedStructuredCloneFiles),{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5531 [aForPreprocess](const auto& file) {{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5532 return !aForPreprocess ||{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5533 file.Type() == StructuredCloneFileBase::eStructuredClone;{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5534 },{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5535 [&directory, &aDatabase, aForPreprocess]({auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5536 const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> {{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5537 const int64_t fileId = file.FileInfo().Id();{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5538 MOZ_ASSERT(fileId > 0);{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5539
5540 const nsCOMPtr<nsIFile> nativeFile ={auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5541 mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId({auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5542 directory, fileId);{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5543 QM_TRY(OkIf(nativeFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5544 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5545
5546 switch (file.Type()) {{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5547 case StructuredCloneFileBase::eStructuredClone:{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5548 if (!aForPreprocess) {{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5549 return SerializedStructuredCloneFile{{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5550 null_t(), StructuredCloneFileBase::eStructuredClone};{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5551 }{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5552
5553 [[fallthrough]];{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5554
5555 case StructuredCloneFileBase::eBlob: {{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5556 const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile,{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5557 file.FileInfo().Id());{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5558
5559 IPCBlob ipcBlob;{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5560
5561 // This can only fail if the child has crashed.{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5562 QM_TRY(MOZ_TO_RESULT(IPCBlobUtils::Serialize(impl, ipcBlob)),{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5563 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5564 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5565
5566 aDatabase->MapBlob(ipcBlob, file.FileInfoPtr());{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5567
5568 return SerializedStructuredCloneFile{ipcBlob, file.Type()};{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5569 }{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5570
5571 case StructuredCloneFileBase::eMutableFile:{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5572 case StructuredCloneFileBase::eWasmBytecode:{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5573 case StructuredCloneFileBase::eWasmCompiled: {{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5574 // Set file() to null, support for storing WebAssembly.Modules has{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5575 // been removed in bug 1469395. Support for de-serialization of{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5576 // WebAssembly.Modules modules has been removed in bug 1561876.{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5577 // Support for MutableFile has been removed in bug 1500343. Full{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5578 // removal is tracked in bug 1487479.{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5579
5580 return SerializedStructuredCloneFile{null_t(), file.Type()};{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5581 }{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5582
5583 default:{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5584 MOZ_CRASH("Should never get here!");{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5585 }{auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
5586 })){auto tryResult854 = (TransformIfAbortOnErr( aFiles, MakeBackInserter
(serializedStructuredCloneFiles), [aForPreprocess](const auto
& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase
::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess
]( const auto& file) -> Result<SerializedStructuredCloneFile
, nsresult> { const int64_t fileId = file.FileInfo().Id();
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("fileId > 0",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5538);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")")
; do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult852
= (OkIf(nativeFile)); static_assert(std::is_empty_v<typename
decltype(tryResult852)::ok_type>); if ((__builtin_expect(
!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5544, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "OkIf(nativeFile)", tryTempError
, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.
Type()) { case StructuredCloneFileBase::eStructuredClone: if (
!aForPreprocess) { return SerializedStructuredCloneFile{ null_t
(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough
]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl
(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob
; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853
.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5564, "UnknownErr"); }(tryTempError); constexpr const auto&
func __attribute__((__unused__)) = __func__; return mozilla::
dom::quota::HandleCustomRetVal(func, "ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }};
aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile
{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile
: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase
::eWasmCompiled: { return SerializedStructuredCloneFile{null_t
(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5584); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult854)::ok_type>
); if ((__builtin_expect(!!(tryResult854.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIfAbortOnErr( aFiles, MakeBackInserter(serializedStructuredCloneFiles), [aForPreprocess](const auto& file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess]( const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileId > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileId > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileId > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5538); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5538); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult852 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5544, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(nativeFile)\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; switch (file.Type()) { case StructuredCloneFileBase::eStructuredClone: if (!aForPreprocess) { return SerializedStructuredCloneFile{ null_t(), StructuredCloneFileBase::eStructuredClone}; } [[fallthrough]]; case StructuredCloneFileBase::eBlob: { const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile, file.FileInfo().Id()); IPCBlob ipcBlob; {auto tryResult853 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult853)::ok_type>); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { auto tryTempError = tryResult853.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5564, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; aDatabase->MapBlob(ipcBlob, file.FileInfoPtr()); return SerializedStructuredCloneFile{ipcBlob, file.Type()}; } case StructuredCloneFileBase::eMutableFile: case StructuredCloneFileBase::eWasmBytecode: case StructuredCloneFileBase::eWasmCompiled: { return SerializedStructuredCloneFile{null_t(), file.Type()}; } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5584); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5584); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5586, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); }}
;
5587
5588 return std::move(serializedStructuredCloneFiles);
5589}
5590
5591bool IsFileNotFoundError(const nsresult aRv) {
5592 return aRv == NS_ERROR_FILE_NOT_FOUND;
5593}
5594
5595enum struct Idempotency { Yes, No };
5596
5597// Delete a file, decreasing the quota usage as appropriate. If the file no
5598// longer exists but aIdempotency is Idempotency::Yes, success is returned,
5599// although quota usage can't be decreased. (With the assumption being that the
5600// file was already deleted prior to this logic running, and the non-existent
5601// file was no longer tracked by quota because it didn't exist at
5602// initialization time or a previous deletion call updated the usage.)
5603nsresult DeleteFile(nsIFile& aFile, QuotaManager* const aQuotaManager,
5604 const PersistenceType aPersistenceType,
5605 const OriginMetadata& aOriginMetadata,
5606 const Idempotency aIdempotency) {
5607 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5607)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 5607); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5608 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5608)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 5608); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5609
5610 // Callers which pass Idempotency::Yes call this function without checking if
5611 // the file already exists (idempotent usage). QM_OR_ELSE_WARN_IF is not used
5612 // here since we just want to log NS_ERROR_FILE_NOT_FOUND results and not spam
5613 // the reports.
5614 // Theoretically, there should be no QM_OR_ELSE_(WARN|LOG_VERBOSE)_IF when a
5615 // caller passes Idempotency::No, but it's simpler when the predicate just
5616 // always returns false in that case.
5617
5618 const auto isIgnorableError = [&aIdempotency]() -> bool (*)(nsresult) {
5619 if (aIdempotency == Idempotency::Yes) {
5620 return IsFileNotFoundError;
5621 }
5622
5623 return [](const nsresult rv) { return false; };
5624 }();
5625
5626 QM_TRY_INSPECT(auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5627 const auto& fileSize,auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5628 ([aQuotaManager, &aFile,auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5629 isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> {auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5630 if (aQuotaManager) {auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5631 QM_TRY_INSPECT(auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5632 const Maybe<int64_t>& fileSize,auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5633 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5634 // Expression.auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5635 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, GetFileSize)auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5636 .map([](const int64_t val) { return Some(val); }),auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5637 // Predicate.auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5638 isIgnorableError,auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5639 // Fallback.auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5640 ErrToDefaultOk<Maybe<int64_t>>));auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5641
5642 // XXX Can we really assert that the file size is not 0 ifauto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5643 // it existed? This might be violated by externalauto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5644 // influences.auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5645 MOZ_ASSERT(!fileSize || fileSize.value() >= 0);auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5646
5647 return fileSize;auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5648 }auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5649
5650 return Some(int64_t(0));auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
5651 }()))auto tryResult856 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf
( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::
detail::DerefedType<decltype(aFile)>::GetFileSize) .map
([](const int64_t val) { return Some(val); })), [&](const
auto& firstRes) { bool res = isIgnorableError(firstRes);
mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult855.inspect();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!fileSize || fileSize.value
() >= 0)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >=
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!fileSize || fileSize.value() >= 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult856.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult855 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize) .map([](const int64_t val) { return Some(val); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 5640, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult855.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5640, mozilla::dom::quota::Severity::Error); return tryResult855.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult855.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!fileSize || fileSize.value() >= 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!fileSize || fileSize.value() >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!fileSize || fileSize.value() >= 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult856.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5651, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& fileSize = tryResult856.inspect
();
;
5652
5653 if (!fileSize) {
5654 return NS_OK;
5655 }
5656
5657 QM_TRY_INSPECT(const auto& didExist,auto tryResult857 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5658 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult857 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5659 // Expression.auto tryResult857 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5660 MOZ_TO_RESULT(aFile.Remove(false)).map(Some<Ok>),auto tryResult857 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5661 // Predicate.auto tryResult857 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5662 isIgnorableError,auto tryResult857 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5663 // Fallback.auto tryResult857 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
5664 ErrToDefaultOk<Maybe<Ok>>))auto tryResult857 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(false)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = isIgnorableError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(false)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult857
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(false)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = isIgnorableError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(false)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5664, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5664, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& didExist = tryResult857.inspect
();
;
5665
5666 if (!didExist) {
5667 // XXX If we get here, this means that the file still existed when we
5668 // queried its size, but no longer when we tried to remove it. Not sure if
5669 // this should really be silently accepted in idempotent mode.
5670 return NS_OK;
5671 }
5672
5673 if (fileSize.value() > 0) {
5674 MOZ_ASSERT(aQuotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aQuotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aQuotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aQuotaManager",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5674);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaManager" ")")
; do { MOZ_CrashSequence(__null, 5674); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5675
5676 aQuotaManager->DecreaseUsageForClient(
5677 ClientMetadata{aOriginMetadata, Client::IDB}, fileSize.value());
5678 }
5679
5680 return NS_OK;
5681}
5682
5683nsresult DeleteFile(nsIFile& aDirectory, const nsAString& aFilename,
5684 QuotaManager* const aQuotaManager,
5685 const PersistenceType aPersistenceType,
5686 const OriginMetadata& aOriginMetadata,
5687 const Idempotency aIdempotent) {
5688 AssertIsOnIOThread();
5689 MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5689)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5689); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5690
5691 QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(aDirectory, aFilename))auto tryResult858 = (CloneFileAndAppend(aDirectory, aFilename
)); if ((__builtin_expect(!!(tryResult858.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(aDirectory, aFilename)"
, tryResult858.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5691, mozilla::dom::quota::Severity::Error); return tryResult858
.propagateErr(); } const auto& file = tryResult858.inspect
();
;
5692
5693 return DeleteFile(*file, aQuotaManager, aPersistenceType, aOriginMetadata,
5694 aIdempotent);
5695}
5696
5697// Delete files in a directory that you think exists. If the directory doesn't
5698// exist, an error will not be returned, but warning telemetry will be
5699// generated! So only call this on directories that you know exist (idempotent
5700// usage, but it's not recommended).
5701nsresult DeleteFilesNoQuota(nsIFile& aFile) {
5702 AssertIsOnIOThread();
5703
5704 QM_TRY_INSPECT(const auto& didExist,auto tryResult859 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult859
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); } const auto& didExist = tryResult859.inspect
();
5705 QM_OR_ELSE_WARN_IF(auto tryResult859 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult859
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); } const auto& didExist = tryResult859.inspect
();
5706 // Expression.auto tryResult859 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult859
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); } const auto& didExist = tryResult859.inspect
();
5707 MOZ_TO_RESULT(aFile.Remove(true)).map(Some<Ok>),auto tryResult859 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult859
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); } const auto& didExist = tryResult859.inspect
();
5708 // Predicate.auto tryResult859 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult859
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); } const auto& didExist = tryResult859.inspect
();
5709 IsFileNotFoundError,auto tryResult859 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult859
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); } const auto& didExist = tryResult859.inspect
();
5710 // Fallback.auto tryResult859 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult859
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); } const auto& didExist = tryResult859.inspect
();
5711 ErrToDefaultOk<Maybe<Ok>>))auto tryResult859 = (mozilla::dom::quota::OrElseIf( (ToResult
(aFile.Remove(true)).map(Some<Ok>)), [&](const auto
& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla
::dom::quota::HandleError("\"ToResult(aFile.Remove(true)).map(Some<Ok>)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult859
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aFile.Remove(true)).map(Some<Ok>)), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aFile.Remove(true)).map(Some<Ok>)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5711, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5711, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); } const auto& didExist = tryResult859.inspect
();
;
5712
5713 Unused << didExist;
5714
5715 return NS_OK;
5716}
5717
5718nsresult DeleteFilesNoQuota(nsIFile* aDirectory, const nsAString& aFilename) {
5719 AssertIsOnIOThread();
5720 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5720); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 5720); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5721 MOZ_ASSERT(!aFilename.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aFilename.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aFilename.IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!aFilename.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5721)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5721); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5722
5723 // The current using function hasn't initialized the origin, so in here we
5724 // don't update the size of origin. Adding this assertion for preventing from
5725 // misusing.
5726 DebugOnly<QuotaManager*> quotaManager = QuotaManager::Get();
5727 MOZ_ASSERT(!quotaManager->IsTemporaryStorageInitializedInternal())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!quotaManager->IsTemporaryStorageInitializedInternal
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!quotaManager->IsTemporaryStorageInitializedInternal
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!quotaManager->IsTemporaryStorageInitializedInternal()",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5727);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!quotaManager->IsTemporaryStorageInitializedInternal()"
")"); do { MOZ_CrashSequence(__null, 5727); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5728
5729 QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(*aDirectory, aFilename))auto tryResult860 = (CloneFileAndAppend(*aDirectory, aFilename
)); if ((__builtin_expect(!!(tryResult860.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, aFilename)"
, tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5729, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); } const auto& file = tryResult860.inspect
();
;
5730
5731 QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(*file))){auto tryResult861 = (ToResult(DeleteFilesNoQuota(*file))); static_assert
(std::is_empty_v<typename decltype(tryResult861)::ok_type>
); if ((__builtin_expect(!!(tryResult861.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(*file))"
, tryResult861.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5731, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); }}
;
5732
5733 return NS_OK;
5734}
5735
5736// CreateMarkerFile and RemoveMarkerFile are a pair of functions to indicate
5737// whether having removed all the files successfully. The marker file should
5738// be checked before executing the next operation or initialization.
5739Result<nsCOMPtr<nsIFile>, nsresult> CreateMarkerFile(
5740 nsIFile& aBaseDirectory, const nsAString& aDatabaseNameBase) {
5741 AssertIsOnIOThread();
5742 MOZ_ASSERT(!aDatabaseNameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseNameBase.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseNameBase.IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!aDatabaseNameBase.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5742); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseNameBase.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5742); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5743
5744 QM_TRY_INSPECT(auto tryResult862 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult862
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult862.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5747, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); } const auto& markerFile = tryResult862.
inspect();
5745 const auto& markerFile,auto tryResult862 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult862
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult862.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5747, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); } const auto& markerFile = tryResult862.
inspect();
5746 CloneFileAndAppend(aBaseDirectory,auto tryResult862 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult862
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult862.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5747, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); } const auto& markerFile = tryResult862.
inspect();
5747 kIdbDeletionMarkerFilePrefix + aDatabaseNameBase))auto tryResult862 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult862
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult862.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5747, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); } const auto& markerFile = tryResult862.
inspect();
;
5748
5749 // Callers call this function without checking if the file already exists
5750 // (idempotent usage). QM_OR_ELSE_WARN_IF is not used here since we just want
5751 // to log NS_ERROR_FILE_ALREADY_EXISTS result and not spam the reports.
5752 //
5753 // TODO: In theory if this file exists, then RemoveDatabaseFilesAndDirectory
5754 // should have cleaned it up, but obviously we can crash and not clean it up,
5755 // which is the whole point of the marker file. In that case, we'll realize
5756 // the marker file exists in OpenDatabaseOp::DoDatabaseWork or
5757 // GetUsageForOriginInternal and resume the removal by calling
5758 // RemoveDatabaseFilesAndDirectory again, but we will also try to create the
5759 // marker file again, so if we see this marker file, it is part
5760 // of our standard operating procedure to redundantly try and create the
5761 // marker here. We currently treat this as idempotent usage, but we could
5762 // add an additional argument to RemoveDatabaseFilesAndDirectory which would
5763 // indicate that we are resuming an unfinished removal, so the marker already
5764 // exists and doesn't have to be created, and change
5765 // QM_OR_ELSE_LOG_VERBOSE_IF to QM_OR_ELSE_WARN_IF in the end.
5766 QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult863 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult863)::ok_type>); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult863.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, mozilla::dom::quota::Severity::Error); return tryResult863
.propagateErr(); }}
5767 // Expression.{auto tryResult863 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult863)::ok_type>); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult863.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, mozilla::dom::quota::Severity::Error); return tryResult863
.propagateErr(); }}
5768 MOZ_TO_RESULT(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644)),{auto tryResult863 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult863)::ok_type>); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult863.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, mozilla::dom::quota::Severity::Error); return tryResult863
.propagateErr(); }}
5769 // Predicate.{auto tryResult863 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult863)::ok_type>); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult863.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, mozilla::dom::quota::Severity::Error); return tryResult863
.propagateErr(); }}
5770 IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>,{auto tryResult863 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult863)::ok_type>); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult863.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, mozilla::dom::quota::Severity::Error); return tryResult863
.propagateErr(); }}
5771 // Fallback.{auto tryResult863 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult863)::ok_type>); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult863.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, mozilla::dom::quota::Severity::Error); return tryResult863
.propagateErr(); }}
5772 ErrToDefaultOk<>)){auto tryResult863 = (mozilla::dom::quota::OrElseIf( (ToResult
(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&
](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS
>(firstRes); mozilla::dom::quota::HandleError("\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult863)::ok_type>); if ((__builtin_expect(!!(tryResult863
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5772, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult863.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5772, mozilla::dom::quota::Severity::Error); return tryResult863
.propagateErr(); }}
;
5773
5774 return markerFile;
5775}
5776
5777nsresult RemoveMarkerFile(nsIFile* aMarkerFile) {
5778 AssertIsOnIOThread();
5779 MOZ_ASSERT(aMarkerFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMarkerFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMarkerFile))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aMarkerFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5779); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMarkerFile"
")"); do { MOZ_CrashSequence(__null, 5779); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5780
5781 DebugOnly<bool> exists;
5782 MOZ_ASSERT(NS_SUCCEEDED(aMarkerFile->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile
->Exists(&exists))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5782)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))"
")"); do { MOZ_CrashSequence(__null, 5782); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5783 MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(exists)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5783); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { MOZ_CrashSequence(__null, 5783); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5784
5785 QM_TRY(MOZ_TO_RESULT(aMarkerFile->Remove(false))){auto tryResult864 = (ToResult(aMarkerFile->Remove(false))
); static_assert(std::is_empty_v<typename decltype(tryResult864
)::ok_type>); if ((__builtin_expect(!!(tryResult864.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aMarkerFile->Remove(false))"
, tryResult864.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5785, mozilla::dom::quota::Severity::Error); return tryResult864
.propagateErr(); }}
;
5786
5787 return NS_OK;
5788}
5789
5790Result<Ok, nsresult> DeleteFileManagerDirectory(
5791 nsIFile& aFileManagerDirectory, QuotaManager* aQuotaManager,
5792 const PersistenceType aPersistenceType,
5793 const OriginMetadata& aOriginMetadata) {
5794 // XXX In theory, deleting can continue for other files in case of a failure,
5795 // leaving only those files behind that cause the problem actually. However,
5796 // the current architecture doesn't allow having more databases (for the same
5797 // name) on disk, so trying to delete as much as possible won't help much
5798 // because we need to delete entire .files directory in the end anyway.
5799 QM_TRY(DatabaseFileManager::TraverseFiles({auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5800 aFileManagerDirectory,{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5801 // KnownDirEntryOp{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5802 [&aQuotaManager, aPersistenceType, &aOriginMetadata]({auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5803 nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5804 if (isDirectory) {{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5805 // The journal directory doesn't count towards quota.{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5806 QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5807 }{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5808
5809 // Stored files do count towards quota.{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5810 QM_TRY_RETURN({auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5811 MOZ_TO_RESULT(DeleteFile(file, aQuotaManager, aPersistenceType,{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5812 aOriginMetadata, Idempotency::Yes)));{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5813 },{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5814 // UnknownDirEntryOp{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5815 [aPersistenceType, &aOriginMetadata]({auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5816 nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5817 // Unknown files and directories don't count towards quota.{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5818
5819 if (isDirectory) {{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5820 QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5821 }{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5822
5823 QM_TRY_RETURN(MOZ_TO_RESULT({auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5824 DeleteFile(file, /* doesn't count */ nullptr, aPersistenceType,{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5825 aOriginMetadata, Idempotency::Yes)));{auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
5826 })){auto tryResult869 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5806, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5820, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5825, mozilla::dom::quota::Severity::Error); } return tryResult868
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult869
)::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult865 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult865.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5806, mozilla::dom::quota::Severity::Error); } return tryResult865;}; } {auto tryResult866 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult866.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5812, mozilla::dom::quota::Severity::Error); } return tryResult866;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult867 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult867.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5820, mozilla::dom::quota::Severity::Error); } return tryResult867;}; } {auto tryResult868 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult868.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult868.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5825, mozilla::dom::quota::Severity::Error); } return tryResult868;}; })"
, tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5826, mozilla::dom::quota::Severity::Error); return tryResult869
.propagateErr(); }}
;
5827
5828 QM_TRY_RETURN(MOZ_TO_RESULT(aFileManagerDirectory.Remove(false))){auto tryResult870 = (ToResult(aFileManagerDirectory.Remove(false
))); if ((__builtin_expect(!!(tryResult870.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aFileManagerDirectory.Remove(false))"
, tryResult870.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5828, mozilla::dom::quota::Severity::Error); } return tryResult870
;}
;
5829}
5830
5831// Idempotently delete all the parts of an IndexedDB database including its
5832// SQLite database file, its WAL journal, it's shared-memory file, and its
5833// Blob/Files sub-directory. A marker file is created prior to performing the
5834// deletion so that in the event we crash or fail to successfully delete the
5835// database and its files, we will re-attempt the deletion the next time the
5836// origin is initialized using this method. Because this means the method may be
5837// called on a partially deleted database, this method uses DeleteFile which
5838// succeeds when the file we ask it to delete does not actually exist. The
5839// marker file is removed once deletion has successfully completed.
5840nsresult RemoveDatabaseFilesAndDirectory(nsIFile& aBaseDirectory,
5841 const nsAString& aDatabaseFilenameBase,
5842 QuotaManager* aQuotaManager,
5843 const PersistenceType aPersistenceType,
5844 const OriginMetadata& aOriginMetadata,
5845 const nsAString& aDatabaseName) {
5846 AssertIsOnIOThread();
5847 MOZ_ASSERT(!aDatabaseFilenameBase.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseFilenameBase.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseFilenameBase.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!aDatabaseFilenameBase.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5847); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilenameBase.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 5847); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5848
5849 AUTO_PROFILER_LABEL("RemoveDatabaseFilesAndDirectory", DOM)mozilla::AutoProfilerLabel raiiObject5849( "RemoveDatabaseFilesAndDirectory"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
5850
5851 QM_TRY_UNWRAP(auto markerFile,auto tryResult871 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase
)); if ((__builtin_expect(!!(tryResult871.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)"
, tryResult871.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5852, mozilla::dom::quota::Severity::Error); return tryResult871
.propagateErr(); } auto markerFile = tryResult871.unwrap();
5852 CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase))auto tryResult871 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase
)); if ((__builtin_expect(!!(tryResult871.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)"
, tryResult871.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5852, mozilla::dom::quota::Severity::Error); return tryResult871
.propagateErr(); } auto markerFile = tryResult871.unwrap();
;
5853
5854 // The database file counts towards quota.
5855 QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult872 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult872)::ok_type>); if ((__builtin_expect(
!!(tryResult872.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult872.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5857, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); }}
5856 aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager,{auto tryResult872 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult872)::ok_type>); if ((__builtin_expect(
!!(tryResult872.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult872.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5857, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); }}
5857 aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult872 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult872)::ok_type>); if ((__builtin_expect(
!!(tryResult872.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult872.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5857, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); }}
;
5858
5859 // .sqlite-journal files don't count towards quota.
5860 QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult873 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult873)::ok_type>); if ((__builtin_expect(
!!(tryResult873.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult873.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5863, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); }}
5861 aDatabaseFilenameBase + kSQLiteJournalSuffix,{auto tryResult873 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult873)::ok_type>); if ((__builtin_expect(
!!(tryResult873.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult873.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5863, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); }}
5862 /* doesn't count */ nullptr, aPersistenceType,{auto tryResult873 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult873)::ok_type>); if ((__builtin_expect(
!!(tryResult873.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult873.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5863, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); }}
5863 aOriginMetadata, Idempotency::Yes))){auto tryResult873 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult873)::ok_type>); if ((__builtin_expect(
!!(tryResult873.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult873.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5863, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); }}
;
5864
5865 // .sqlite-shm files don't count towards quota.
5866 QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult874 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult874)::ok_type>); if ((__builtin_expect(
!!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult874.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5869, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); }}
5867 aDatabaseFilenameBase + kSQLiteSHMSuffix,{auto tryResult874 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult874)::ok_type>); if ((__builtin_expect(
!!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult874.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5869, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); }}
5868 /* doesn't count */ nullptr, aPersistenceType,{auto tryResult874 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult874)::ok_type>); if ((__builtin_expect(
!!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult874.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5869, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); }}
5869 aOriginMetadata, Idempotency::Yes))){auto tryResult874 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult874)::ok_type>); if ((__builtin_expect(
!!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult874.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5869, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); }}
;
5870
5871 // .sqlite-wal files do count towards quota.
5872 QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult875 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult875)::ok_type>); if ((__builtin_expect(
!!(tryResult875.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult875.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5874, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); }}
5873 aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager,{auto tryResult875 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult875)::ok_type>); if ((__builtin_expect(
!!(tryResult875.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult875.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5874, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); }}
5874 aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult875 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult875)::ok_type>); if ((__builtin_expect(
!!(tryResult875.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult875.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5874, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); }}
;
5875
5876 // The files directory counts towards quota.
5877 QM_TRY_INSPECT(auto tryResult876 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult876.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5880, mozilla::dom::quota::Severity::Error); return tryResult876
.propagateErr(); } const auto& fmDirectory = tryResult876
.inspect();
5878 const auto& fmDirectory,auto tryResult876 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult876.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5880, mozilla::dom::quota::Severity::Error); return tryResult876
.propagateErr(); } const auto& fmDirectory = tryResult876
.inspect();
5879 CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase +auto tryResult876 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult876.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5880, mozilla::dom::quota::Severity::Error); return tryResult876
.propagateErr(); } const auto& fmDirectory = tryResult876
.inspect();
5880 kFileManagerDirectoryNameSuffix))auto tryResult876 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult876.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5880, mozilla::dom::quota::Severity::Error); return tryResult876
.propagateErr(); } const auto& fmDirectory = tryResult876
.inspect();
;
5881
5882 QM_TRY_INSPECT(const bool& exists,auto tryResult877 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult877.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists)"
, tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5883, mozilla::dom::quota::Severity::Error); return tryResult877
.propagateErr(); } const bool& exists = tryResult877.inspect
();
5883 MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, Exists))auto tryResult877 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult877.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists)"
, tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5883, mozilla::dom::quota::Severity::Error); return tryResult877
.propagateErr(); } const bool& exists = tryResult877.inspect
();
;
5884
5885 if (exists) {
5886 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult878 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult878.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory)"
, tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5887, mozilla::dom::quota::Severity::Error); return tryResult878
.propagateErr(); } const bool& isDirectory = tryResult878
.inspect();
5887 MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, IsDirectory))auto tryResult878 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult878.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory)"
, tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5887, mozilla::dom::quota::Severity::Error); return tryResult878
.propagateErr(); } const bool& isDirectory = tryResult878
.inspect();
;
5888
5889 QM_TRY(OkIf(isDirectory), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR){auto tryResult879 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult879)::ok_type>); if
((__builtin_expect(!!(tryResult879.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult879.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5889, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
5890
5891 QM_TRY(DeleteFileManagerDirectory(*fmDirectory, aQuotaManager,{auto tryResult880 = (DeleteFileManagerDirectory(*fmDirectory
, aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert
(std::is_empty_v<typename decltype(tryResult880)::ok_type>
); if ((__builtin_expect(!!(tryResult880.isErr()), 0))) { mozilla
::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)"
, tryResult880.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5892, mozilla::dom::quota::Severity::Error); return tryResult880
.propagateErr(); }}
5892 aPersistenceType, aOriginMetadata)){auto tryResult880 = (DeleteFileManagerDirectory(*fmDirectory
, aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert
(std::is_empty_v<typename decltype(tryResult880)::ok_type>
); if ((__builtin_expect(!!(tryResult880.isErr()), 0))) { mozilla
::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)"
, tryResult880.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5892, mozilla::dom::quota::Severity::Error); return tryResult880
.propagateErr(); }}
;
5893 }
5894
5895 IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get();
5896 MOZ_ASSERT_IF(aQuotaManager, mgr)do { if (aQuotaManager) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mgr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mgr))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("mgr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5896); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do
{ MOZ_CrashSequence(__null, 5896); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } } while (false
)
;
5897
5898 if (mgr) {
5899 mgr->InvalidateFileManager(aPersistenceType, aOriginMetadata.mOrigin,
5900 aDatabaseName);
5901 }
5902
5903 QM_TRY(MOZ_TO_RESULT(RemoveMarkerFile(markerFile))){auto tryResult881 = (ToResult(RemoveMarkerFile(markerFile)))
; static_assert(std::is_empty_v<typename decltype(tryResult881
)::ok_type>); if ((__builtin_expect(!!(tryResult881.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveMarkerFile(markerFile))"
, tryResult881.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5903, mozilla::dom::quota::Severity::Error); return tryResult881
.propagateErr(); }}
;
5904
5905 return NS_OK;
5906}
5907
5908/*******************************************************************************
5909 * Globals
5910 ******************************************************************************/
5911
5912// Counts the number of "live" Factory, FactoryOp and Database instances.
5913uint64_t gBusyCount = 0;
5914
5915// We don't use LinkedList<CheckedUnsafePtr<FactoryOp>> because
5916// CheckedUnsafePtr is not suitable for use within LinkedList. While it's
5917// theoretically possible to adapt LinkedList to support it, doing so would
5918// introduce unnecessary overhead. Instead, we use a simpler and more
5919// efficient approach. Each FactoryOp instance asserts !isInList() in its
5920// destructor to catch dangling pointer issues.
5921using FactoryOpArray = LinkedList<FactoryOp>;
5922
5923StaticAutoPtr<FactoryOpArray> gFactoryOps;
5924
5925// Maps a database id to information about live database actors.
5926using DatabaseActorHashtable =
5927 nsClassHashtable<nsCStringHashKey, DatabaseActorInfo>;
5928
5929StaticAutoPtr<DatabaseActorHashtable> gLiveDatabaseHashtable;
5930
5931StaticRefPtr<ConnectionPool> gConnectionPool;
5932
5933using DatabaseLoggingInfoHashtable =
5934 nsTHashMap<nsIDHashKey, DatabaseLoggingInfo*>;
5935
5936StaticAutoPtr<DatabaseLoggingInfoHashtable> gLoggingInfoHashtable;
5937
5938using TelemetryIdHashtable = nsTHashMap<nsUint32HashKey, uint32_t>;
5939
5940StaticAutoPtr<TelemetryIdHashtable> gTelemetryIdHashtable;
5941
5942// Protects all reads and writes to gTelemetryIdHashtable.
5943StaticAutoPtr<Mutex> gTelemetryIdMutex;
5944
5945// For private browsing, maps the raw database names provided by content to a
5946// replacement UUID in order to avoid exposing the name of the database on
5947// disk or a directly derived value, such as the non-private-browsing
5948// representation. This mapping will be the same for all databases with the
5949// same name across all storage keys/origins for the lifetime of the IDB
5950// QuotaClient. In tests, the QuotaClient may be created and destroyed multiple
5951// times, but for normal browser use the QuotaClient will last until the
5952// browser shuts down. Bug 1831835 will improve this implementation to avoid
5953// using the same mapping across storage keys and to deal with the resulting
5954// lifecycle issues of the additional memory use.
5955using StorageDatabaseNameHashtable = nsTHashMap<nsString, nsString>;
5956
5957StaticAutoPtr<StorageDatabaseNameHashtable> gStorageDatabaseNameHashtable;
5958
5959// Protects all reads and writes to gStorageDatabaseNameHashtable.
5960StaticAutoPtr<Mutex> gStorageDatabaseNameMutex;
5961
5962#ifdef DEBUG1
5963
5964StaticRefPtr<DEBUGThreadSlower> gDEBUGThreadSlower;
5965
5966#endif // DEBUG
5967
5968void IncreaseBusyCount() {
5969 AssertIsOnBackgroundThread();
5970
5971 // If this is the first instance then we need to do some initialization.
5972 if (!gBusyCount) {
5973 MOZ_ASSERT(!gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gFactoryOps)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!gFactoryOps))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5973); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gFactoryOps"
")"); do { MOZ_CrashSequence(__null, 5973); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5974 gFactoryOps = new FactoryOpArray();
5975
5976 MOZ_ASSERT(!gLiveDatabaseHashtable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gLiveDatabaseHashtable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!gLiveDatabaseHashtable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!gLiveDatabaseHashtable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5976)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable"
")"); do { MOZ_CrashSequence(__null, 5976); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5977 gLiveDatabaseHashtable = new DatabaseActorHashtable();
5978
5979 MOZ_ASSERT(!gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gLoggingInfoHashtable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!gLoggingInfoHashtable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!gLoggingInfoHashtable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5979)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLoggingInfoHashtable"
")"); do { MOZ_CrashSequence(__null, 5979); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5980 gLoggingInfoHashtable = new DatabaseLoggingInfoHashtable();
5981
5982#ifdef DEBUG1
5983 if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) {
5984 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been "
"modified!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5986)
5985 "PBackground thread debugging enabled, priority has been "NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been "
"modified!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5986)
5986 "modified!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been "
"modified!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5986)
;
5987 nsCOMPtr<nsISupportsPriority> thread =
5988 do_QueryInterface(NS_GetCurrentThread());
5989 MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thread)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5989); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { MOZ_CrashSequence(__null, 5989); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5990
5991 MOZ_ALWAYS_SUCCEEDS(thread->SetPriority(kDEBUGThreadPriority))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->SetPriority(kDEBUGThreadPriority))), 1)))), 1))) {
} else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 5991)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))"
")"); do { MOZ_CrashSequence(__null, 5991); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
5992 }
5993
5994 if (kDEBUGThreadSleepMS) {
5995 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every "
"event!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5997)
5996 "PBackground thread debugging enabled, sleeping after every "NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every "
"event!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5997)
5997 "event!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every "
"event!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 5997)
;
5998 nsCOMPtr<nsIThreadInternal> thread =
5999 do_QueryInterface(NS_GetCurrentThread());
6000 MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thread)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6000); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { MOZ_CrashSequence(__null, 6000); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6001
6002 gDEBUGThreadSlower = new DEBUGThreadSlower();
6003
6004 MOZ_ALWAYS_SUCCEEDS(thread->AddObserver(gDEBUGThreadSlower))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->AddObserver(gDEBUGThreadSlower))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6004)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))"
")"); do { MOZ_CrashSequence(__null, 6004); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6005 }
6006#endif // DEBUG
6007 }
6008
6009 gBusyCount++;
6010}
6011
6012void DecreaseBusyCount() {
6013 AssertIsOnBackgroundThread();
6014 MOZ_ASSERT(gBusyCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gBusyCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gBusyCount))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("gBusyCount", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6014); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gBusyCount"
")"); do { MOZ_CrashSequence(__null, 6014); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6015
6016 // Clean up if there are no more instances.
6017 if (--gBusyCount == 0) {
6018 MOZ_ASSERT(gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gLoggingInfoHashtable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gLoggingInfoHashtable))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("gLoggingInfoHashtable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6018)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable"
")"); do { MOZ_CrashSequence(__null, 6018); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6019 gLoggingInfoHashtable = nullptr;
6020
6021 MOZ_ASSERT(gLiveDatabaseHashtable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gLiveDatabaseHashtable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gLiveDatabaseHashtable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("gLiveDatabaseHashtable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6021)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLiveDatabaseHashtable"
")"); do { MOZ_CrashSequence(__null, 6021); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6022 MOZ_ASSERT(!gLiveDatabaseHashtable->Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gLiveDatabaseHashtable->Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!gLiveDatabaseHashtable->
Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!gLiveDatabaseHashtable->Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6022); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Count()"
")"); do { MOZ_CrashSequence(__null, 6022); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6023 gLiveDatabaseHashtable = nullptr;
6024
6025 MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gFactoryOps)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6025); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { MOZ_CrashSequence(__null, 6025); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6026 MOZ_ASSERT(gFactoryOps->isEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gFactoryOps->isEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gFactoryOps->isEmpty())))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("gFactoryOps->isEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6026)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps->isEmpty()"
")"); do { MOZ_CrashSequence(__null, 6026); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6027 gFactoryOps = nullptr;
6028
6029#ifdef DEBUG1
6030 if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) {
6031 nsCOMPtr<nsISupportsPriority> thread =
6032 do_QueryInterface(NS_GetCurrentThread());
6033 MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thread)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6033); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { MOZ_CrashSequence(__null, 6033); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6034
6035 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL)
)), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6036)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 6036); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6036 thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL)
)), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6036)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 6036); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6037 }
6038
6039 if (kDEBUGThreadSleepMS) {
6040 MOZ_ASSERT(gDEBUGThreadSlower)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gDEBUGThreadSlower)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gDEBUGThreadSlower))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("gDEBUGThreadSlower"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6040)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gDEBUGThreadSlower"
")"); do { MOZ_CrashSequence(__null, 6040); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6041
6042 nsCOMPtr<nsIThreadInternal> thread =
6043 do_QueryInterface(NS_GetCurrentThread());
6044 MOZ_ASSERT(thread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thread)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(thread))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thread", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6044); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { MOZ_CrashSequence(__null, 6044); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6045
6046 MOZ_ALWAYS_SUCCEEDS(thread->RemoveObserver(gDEBUGThreadSlower))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->RemoveObserver(gDEBUGThreadSlower))), 1)))), 1)))
{ } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6046)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))"
")"); do { MOZ_CrashSequence(__null, 6046); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6047
6048 gDEBUGThreadSlower = nullptr;
6049 }
6050#endif // DEBUG
6051 }
6052}
6053
6054template <typename Condition>
6055void InvalidateLiveDatabasesMatching(const Condition& aCondition) {
6056 AssertIsOnBackgroundThread();
6057
6058 if (!gLiveDatabaseHashtable) {
6059 return;
6060 }
6061
6062 // Invalidating a Database will cause it to be removed from the
6063 // gLiveDatabaseHashtable entries' mLiveDatabases, and, if it was the last
6064 // element in mLiveDatabases, to remove the whole hashtable entry. Therefore,
6065 // we need to make a temporary list of the databases to invalidate to avoid
6066 // iterator invalidation.
6067
6068 nsTArray<SafeRefPtr<Database>> databases;
6069
6070 for (const auto& liveDatabasesEntry : gLiveDatabaseHashtable->Values()) {
6071 for (Database* const database : liveDatabasesEntry->mLiveDatabases) {
6072 if (aCondition(*database)) {
6073 databases.AppendElement(
6074 SafeRefPtr{database, AcquireStrongRefFromRawPtr{}});
6075 }
6076 }
6077 }
6078
6079 for (const auto& database : databases) {
6080 database->Invalidate();
6081 }
6082}
6083
6084uint32_t TelemetryIdForFile(nsIFile* aFile) {
6085 // May be called on any thread!
6086
6087 MOZ_ASSERT(aFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aFile)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(aFile))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("aFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6087); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFile" ")")
; do { MOZ_CrashSequence(__null, 6087); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6088 MOZ_ASSERT(gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gTelemetryIdMutex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gTelemetryIdMutex))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("gTelemetryIdMutex"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6088)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex"
")"); do { MOZ_CrashSequence(__null, 6088); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6089
6090 // The storage directory is structured like this:
6091 //
6092 // <profile>/storage/<persistence>/<origin>/idb/<filename>.sqlite
6093 //
6094 // For the purposes of this function we're only concerned with the
6095 // <persistence>, <origin>, and <filename> pieces.
6096
6097 nsString filename;
6098 MOZ_ALWAYS_SUCCEEDS(aFile->GetLeafName(filename))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aFile->GetLeafName(filename))), 1)))), 1))) { } else { do
{ do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aFile->GetLeafName(filename))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6098)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFile->GetLeafName(filename))"
")"); do { MOZ_CrashSequence(__null, 6098); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6099
6100 // Make sure we were given a database file.
6101 MOZ_ASSERT(StringEndsWith(filename, kSQLiteSuffix))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(StringEndsWith(filename, kSQLiteSuffix))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(StringEndsWith(filename, kSQLiteSuffix)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("StringEndsWith(filename, kSQLiteSuffix)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6101)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(filename, kSQLiteSuffix)"
")"); do { MOZ_CrashSequence(__null, 6101); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6102
6103 filename.Truncate(filename.Length() - kSQLiteSuffix.Length());
6104
6105 // Get the "idb" directory.
6106 nsCOMPtr<nsIFile> idbDirectory;
6107 MOZ_ALWAYS_SUCCEEDS(aFile->GetParent(getter_AddRefs(idbDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aFile->GetParent(getter_AddRefs(idbDirectory)))), 1)))), 1
))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6107)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))"
")"); do { MOZ_CrashSequence(__null, 6107); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6108
6109 DebugOnly<nsString> idbLeafName;
6110 MOZ_ASSERT(NS_SUCCEEDED(idbDirectory->GetLeafName(idbLeafName)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory
->GetLeafName(idbLeafName))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1
)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6110)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1)))"
")"); do { MOZ_CrashSequence(__null, 6110); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6111 MOZ_ASSERT(static_cast<nsString&>(idbLeafName).EqualsLiteral("idb"))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(static_cast<nsString&>(idbLeafName).EqualsLiteral
("idb"))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(static_cast<nsString&>(idbLeafName).EqualsLiteral
("idb")))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("static_cast<nsString&>(idbLeafName).EqualsLiteral(\"idb\")"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6111)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<nsString&>(idbLeafName).EqualsLiteral(\"idb\")"
")"); do { MOZ_CrashSequence(__null, 6111); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6112
6113 // Get the <origin> directory.
6114 nsCOMPtr<nsIFile> originDirectory;
6115 MOZ_ALWAYS_SUCCEEDS(idbDirectory->GetParent(getter_AddRefs(originDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(idbDirectory->GetParent(getter_AddRefs(originDirectory)))
), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6115)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))"
")"); do { MOZ_CrashSequence(__null, 6115); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6116
6117 nsString origin;
6118 MOZ_ALWAYS_SUCCEEDS(originDirectory->GetLeafName(origin))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(originDirectory->GetLeafName(origin))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6118)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))"
")"); do { MOZ_CrashSequence(__null, 6118); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6119
6120 // Any databases in these directories are owned by the application and should
6121 // not have their filenames masked. Hopefully they also appear in the
6122 // Telemetry.cpp whitelist.
6123 if (origin.EqualsLiteral("chrome") ||
6124 origin.EqualsLiteral("moz-safe-about+home")) {
6125 return 0;
6126 }
6127
6128 // Get the <persistence> directory.
6129 nsCOMPtr<nsIFile> persistenceDirectory;
6130 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(originDirectory->GetParent(getter_AddRefs(persistenceDirectory
)))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6131)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
")"); do { MOZ_CrashSequence(__null, 6131); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6131 originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(originDirectory->GetParent(getter_AddRefs(persistenceDirectory
)))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6131)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
")"); do { MOZ_CrashSequence(__null, 6131); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6132
6133 nsString persistence;
6134 MOZ_ALWAYS_SUCCEEDS(persistenceDirectory->GetLeafName(persistence))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(persistenceDirectory->GetLeafName(persistence))), 1)))), 1
))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6134)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))"
")"); do { MOZ_CrashSequence(__null, 6134); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6135
6136 constexpr auto separator = u"*"_ns;
6137
6138 uint32_t hashValue =
6139 HashString(persistence + separator + origin + separator + filename);
6140
6141 MutexAutoLock lock(*gTelemetryIdMutex);
6142
6143 if (!gTelemetryIdHashtable) {
6144 gTelemetryIdHashtable = new TelemetryIdHashtable();
6145 }
6146
6147 return gTelemetryIdHashtable->LookupOrInsertWith(hashValue, [] {
6148 static uint32_t sNextId = 1;
6149
6150 // We're locked, no need for atomics.
6151 return sNextId++;
6152 });
6153}
6154
6155nsAutoString GetDatabaseFilenameBase(const nsAString& aDatabaseName,
6156 bool aIsPrivate) {
6157 nsAutoString databaseFilenameBase;
6158
6159 if (aIsPrivate) {
6160 MOZ_DIAGNOSTIC_ASSERT(gStorageDatabaseNameMutex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gStorageDatabaseNameMutex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gStorageDatabaseNameMutex)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("gStorageDatabaseNameMutex"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6160)
; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "gStorageDatabaseNameMutex"
")"); do { MOZ_CrashSequence(__null, 6160); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6161
6162 MutexAutoLock lock(*gStorageDatabaseNameMutex);
6163
6164 if (!gStorageDatabaseNameHashtable) {
6165 gStorageDatabaseNameHashtable = new StorageDatabaseNameHashtable();
6166 }
6167
6168 databaseFilenameBase.Append(
6169 gStorageDatabaseNameHashtable->LookupOrInsertWith(aDatabaseName, []() {
6170 return NSID_TrimBracketsUTF16(nsID::GenerateUUID());
6171 }));
6172
6173 return databaseFilenameBase;
6174 }
6175
6176 // WARNING: do not change this hash function. See the comment in HashName()
6177 // for details.
6178 databaseFilenameBase.AppendInt(HashName(aDatabaseName));
6179
6180 nsAutoCString escapedName;
6181 if (!NS_Escape(NS_ConvertUTF16toUTF8(aDatabaseName), escapedName,
6182 url_XPAlphas)) {
6183 MOZ_CRASH("Can't escape database name!")do { do { } while (false); MOZ_ReportCrash("" "Can't escape database name!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6183)
; AnnotateMozCrashReason("MOZ_CRASH(" "Can't escape database name!"
")"); do { MOZ_CrashSequence(__null, 6183); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6184 }
6185
6186 const char* forwardIter = escapedName.BeginReading();
6187 const char* backwardIter = escapedName.EndReading() - 1;
6188
6189 nsAutoCString substring;
6190 while (forwardIter <= backwardIter && substring.Length() < 21) {
6191 if (substring.Length() % 2) {
6192 substring.Append(*backwardIter--);
6193 } else {
6194 substring.Append(*forwardIter++);
6195 }
6196 }
6197
6198 databaseFilenameBase.AppendASCII(substring.get(), substring.Length());
6199
6200 return databaseFilenameBase;
6201}
6202
6203const CommonIndexOpenCursorParams& GetCommonIndexOpenCursorParams(
6204 const OpenCursorParams& aParams) {
6205 switch (aParams.type()) {
6206 case OpenCursorParams::TIndexOpenCursorParams:
6207 return aParams.get_IndexOpenCursorParams().commonIndexParams();
6208 case OpenCursorParams::TIndexOpenKeyCursorParams:
6209 return aParams.get_IndexOpenKeyCursorParams().commonIndexParams();
6210 default:
6211 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6211)
; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 6211); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6212 }
6213}
6214
6215const CommonOpenCursorParams& GetCommonOpenCursorParams(
6216 const OpenCursorParams& aParams) {
6217 switch (aParams.type()) {
6218 case OpenCursorParams::TObjectStoreOpenCursorParams:
6219 return aParams.get_ObjectStoreOpenCursorParams().commonParams();
6220 case OpenCursorParams::TObjectStoreOpenKeyCursorParams:
6221 return aParams.get_ObjectStoreOpenKeyCursorParams().commonParams();
6222 case OpenCursorParams::TIndexOpenCursorParams:
6223 case OpenCursorParams::TIndexOpenKeyCursorParams:
6224 return GetCommonIndexOpenCursorParams(aParams).commonParams();
6225 default:
6226 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6226)
; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 6226); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6227 }
6228}
6229
6230// TODO: Using nsCString as a return type here seems to lead to a dependency on
6231// some temporaries, which I did not expect. Is it a good idea that the default
6232// operator+ behaviour constructs such strings? It is certainly useful as an
6233// optimization, but this should be better done via an appropriately named
6234// function rather than an operator.
6235nsAutoCString MakeColumnPairSelectionList(
6236 const nsLiteralCString& aPlainColumnName,
6237 const nsLiteralCString& aLocaleAwareColumnName,
6238 const nsLiteralCString& aSortColumnAlias, const bool aIsLocaleAware) {
6239 return aPlainColumnName +
6240 (aIsLocaleAware ? EmptyCString() : " as "_ns + aSortColumnAlias) +
6241 ", "_ns + aLocaleAwareColumnName +
6242 (aIsLocaleAware ? " as "_ns + aSortColumnAlias : EmptyCString());
6243}
6244
6245constexpr bool IsIncreasingOrder(const IDBCursorDirection aDirection) {
6246 MOZ_ASSERT(aDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6249)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6249); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6247 aDirection == IDBCursorDirection::Nextunique ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6249)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6249); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6248 aDirection == IDBCursorDirection::Prev ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6249)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6249); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6249 aDirection == IDBCursorDirection::Prevunique)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6249)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6249); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6250
6251 return aDirection == IDBCursorDirection::Next ||
6252 aDirection == IDBCursorDirection::Nextunique;
6253}
6254
6255constexpr bool IsUnique(const IDBCursorDirection aDirection) {
6256 MOZ_ASSERT(aDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6259)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6259); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6257 aDirection == IDBCursorDirection::Nextunique ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6259)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6259); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6258 aDirection == IDBCursorDirection::Prev ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6259)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6259); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6259 aDirection == IDBCursorDirection::Prevunique)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aDirection == IDBCursorDirection::Next || aDirection
== IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection
::Prev || aDirection == IDBCursorDirection::Prevunique))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6259)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { MOZ_CrashSequence(__null, 6259); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6260
6261 return aDirection == IDBCursorDirection::Nextunique ||
6262 aDirection == IDBCursorDirection::Prevunique;
6263}
6264
6265// TODO: In principle, this could be constexpr, if operator+(nsLiteralCString,
6266// nsLiteralCString) were constexpr and returned a literal type.
6267nsAutoCString MakeDirectionClause(const IDBCursorDirection aDirection) {
6268 return " ORDER BY "_ns + kColumnNameKey +
6269 (IsIncreasingOrder(aDirection) ? " ASC"_ns : " DESC"_ns);
6270}
6271
6272enum struct ComparisonOperator {
6273 LessThan,
6274 LessOrEquals,
6275 Equals,
6276 GreaterThan,
6277 GreaterOrEquals,
6278};
6279
6280constexpr nsLiteralCString GetComparisonOperatorString(
6281 const ComparisonOperator aComparisonOperator) {
6282 switch (aComparisonOperator) {
6283 case ComparisonOperator::LessThan:
6284 return "<"_ns;
6285 case ComparisonOperator::LessOrEquals:
6286 return "<="_ns;
6287 case ComparisonOperator::Equals:
6288 return "=="_ns;
6289 case ComparisonOperator::GreaterThan:
6290 return ">"_ns;
6291 case ComparisonOperator::GreaterOrEquals:
6292 return ">="_ns;
6293 }
6294
6295 // TODO: This is just to silence the "control reaches end of non-void
6296 // function" warning. Cannot use MOZ_CRASH in a constexpr function,
6297 // unfortunately.
6298 return ""_ns;
6299}
6300
6301nsAutoCString GetKeyClause(const nsACString& aColumnName,
6302 const ComparisonOperator aComparisonOperator,
6303 const nsLiteralCString& aStmtParamName) {
6304 return aColumnName + " "_ns +
6305 GetComparisonOperatorString(aComparisonOperator) + " :"_ns +
6306 aStmtParamName;
6307}
6308
6309nsAutoCString GetSortKeyClause(const ComparisonOperator aComparisonOperator,
6310 const nsLiteralCString& aStmtParamName) {
6311 return GetKeyClause(kColumnNameAliasSortKey, aComparisonOperator,
6312 aStmtParamName);
6313}
6314
6315template <IDBCursorType CursorType>
6316struct PopulateResponseHelper;
6317
6318struct CommonPopulateResponseHelper {
6319 explicit CommonPopulateResponseHelper(
6320 const TransactionDatabaseOperationBase& aOp)
6321 : mOp{aOp} {}
6322
6323 nsresult GetKeys(mozIStorageStatement* const aStmt,
6324 Key* const aOptOutSortKey) {
6325 QM_TRY(MOZ_TO_RESULT(GetCommonKeys(aStmt))){auto tryResult882 = (ToResult(GetCommonKeys(aStmt))); static_assert
(std::is_empty_v<typename decltype(tryResult882)::ok_type>
); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(GetCommonKeys(aStmt))", tryResult882
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6325, mozilla::dom::quota::Severity::Error); return tryResult882
.propagateErr(); }}
;
6326
6327 if (aOptOutSortKey) {
6328 *aOptOutSortKey = mPosition;
6329 }
6330
6331 return NS_OK;
6332 }
6333
6334 nsresult GetCommonKeys(mozIStorageStatement* const aStmt) {
6335 MOZ_ASSERT(mPosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mPosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mPosition.IsUnset()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mPosition.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6335)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6335); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6336
6337 QM_TRY(MOZ_TO_RESULT(mPosition.SetFromStatement(aStmt, 0))){auto tryResult883 = (ToResult(mPosition.SetFromStatement(aStmt
, 0))); static_assert(std::is_empty_v<typename decltype(tryResult883
)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(mPosition.SetFromStatement(aStmt, 0))"
, tryResult883.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6337, mozilla::dom::quota::Severity::Error); return tryResult883
.propagateErr(); }}
;
6338
6339 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: Populating response with key %s", "IndexedDB %s: "
"P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s"
, mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId
()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber
(), mPosition.GetBuffer().get())
6340 "PRELOAD: Populating response with key %s", "Populating%.0s",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: Populating response with key %s", "IndexedDB %s: "
"P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s"
, mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId
()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber
(), mPosition.GetBuffer().get())
6341 IDB_LOG_ID_STRING(mOp.BackgroundChildLoggingId()),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: Populating response with key %s", "IndexedDB %s: "
"P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s"
, mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId
()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber
(), mPosition.GetBuffer().get())
6342 mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber(),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: Populating response with key %s", "IndexedDB %s: "
"P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s"
, mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId
()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber
(), mPosition.GetBuffer().get())
6343 mPosition.GetBuffer().get())mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: Populating response with key %s", "IndexedDB %s: "
"P" " " "T[%" "l" "i" "]" " " "R[%" "l" "u" "]" ": " "Populating%.0s"
, mozilla::dom::indexedDB::LoggingIdString<true>(mOp.BackgroundChildLoggingId
()).get(), mOp.TransactionLoggingSerialNumber(), mOp.LoggingSerialNumber
(), mPosition.GetBuffer().get())
;
6344
6345 return NS_OK;
6346 }
6347
6348 template <typename Response>
6349 void FillKeys(Response& aResponse) {
6350 MOZ_ASSERT(!mPosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mPosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mPosition.IsUnset()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mPosition.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6350)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6350); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6351 aResponse.key() = std::move(mPosition);
6352 }
6353
6354 template <typename Response>
6355 static size_t GetKeySize(const Response& aResponse) {
6356 return aResponse.key().GetBuffer().Length();
6357 }
6358
6359 protected:
6360 const Key& GetPosition() const { return mPosition; }
6361
6362 private:
6363 const TransactionDatabaseOperationBase& mOp;
6364 Key mPosition;
6365};
6366
6367struct IndexPopulateResponseHelper : CommonPopulateResponseHelper {
6368 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6369
6370 nsresult GetKeys(mozIStorageStatement* const aStmt,
6371 Key* const aOptOutSortKey) {
6372 MOZ_ASSERT(mLocaleAwarePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLocaleAwarePosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLocaleAwarePosition.IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mLocaleAwarePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6372); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLocaleAwarePosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6372); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6373 MOZ_ASSERT(mObjectStorePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mObjectStorePosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mObjectStorePosition.IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mObjectStorePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6373); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStorePosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6373); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6374
6375 QM_TRY(MOZ_TO_RESULT(CommonPopulateResponseHelper::GetCommonKeys(aStmt))){auto tryResult884 = (ToResult(CommonPopulateResponseHelper::
GetCommonKeys(aStmt))); static_assert(std::is_empty_v<typename
decltype(tryResult884)::ok_type>); if ((__builtin_expect(
!!(tryResult884.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(CommonPopulateResponseHelper::GetCommonKeys(aStmt))"
, tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6375, mozilla::dom::quota::Severity::Error); return tryResult884
.propagateErr(); }}
;
6376
6377 QM_TRY(MOZ_TO_RESULT(mLocaleAwarePosition.SetFromStatement(aStmt, 1))){auto tryResult885 = (ToResult(mLocaleAwarePosition.SetFromStatement
(aStmt, 1))); static_assert(std::is_empty_v<typename decltype
(tryResult885)::ok_type>); if ((__builtin_expect(!!(tryResult885
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mLocaleAwarePosition.SetFromStatement(aStmt, 1))"
, tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6377, mozilla::dom::quota::Severity::Error); return tryResult885
.propagateErr(); }}
;
6378
6379 QM_TRY(MOZ_TO_RESULT(mObjectStorePosition.SetFromStatement(aStmt, 2))){auto tryResult886 = (ToResult(mObjectStorePosition.SetFromStatement
(aStmt, 2))); static_assert(std::is_empty_v<typename decltype
(tryResult886)::ok_type>); if ((__builtin_expect(!!(tryResult886
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mObjectStorePosition.SetFromStatement(aStmt, 2))"
, tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6379, mozilla::dom::quota::Severity::Error); return tryResult886
.propagateErr(); }}
;
6380
6381 if (aOptOutSortKey) {
6382 *aOptOutSortKey =
6383 mLocaleAwarePosition.IsUnset() ? GetPosition() : mLocaleAwarePosition;
6384 }
6385
6386 return NS_OK;
6387 }
6388
6389 template <typename Response>
6390 void FillKeys(Response& aResponse) {
6391 MOZ_ASSERT(!mLocaleAwarePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mLocaleAwarePosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mLocaleAwarePosition.IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mLocaleAwarePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mLocaleAwarePosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6391); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6392 MOZ_ASSERT(!mObjectStorePosition.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mObjectStorePosition.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mObjectStorePosition.IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mObjectStorePosition.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6392); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStorePosition.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 6392); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6393
6394 CommonPopulateResponseHelper::FillKeys(aResponse);
6395 aResponse.sortKey() = std::move(mLocaleAwarePosition);
6396 aResponse.objectKey() = std::move(mObjectStorePosition);
6397 }
6398
6399 template <typename Response>
6400 static size_t GetKeySize(Response& aResponse) {
6401 return CommonPopulateResponseHelper::GetKeySize(aResponse) +
6402 aResponse.sortKey().GetBuffer().Length() +
6403 aResponse.objectKey().GetBuffer().Length();
6404 }
6405
6406 private:
6407 Key mLocaleAwarePosition, mObjectStorePosition;
6408};
6409
6410struct KeyPopulateResponseHelper {
6411 static constexpr nsresult MaybeGetCloneInfo(
6412 mozIStorageStatement* const /*aStmt*/, const CursorBase& /*aCursor*/) {
6413 return NS_OK;
6414 }
6415
6416 template <typename Response>
6417 static constexpr void MaybeFillCloneInfo(Response& /*aResponse*/,
6418 FilesArray* const /*aFiles*/) {}
6419
6420 template <typename Response>
6421 static constexpr size_t MaybeGetCloneInfoSize(const Response& /*aResponse*/) {
6422 return 0;
6423 }
6424};
6425
6426template <bool StatementHasIndexKeyBindings>
6427struct ValuePopulateResponseHelper {
6428 nsresult MaybeGetCloneInfo(mozIStorageStatement* const aStmt,
6429 const ValueCursorBase& aCursor) {
6430 constexpr auto offset = StatementHasIndexKeyBindings ? 2 : 0;
6431
6432 QM_TRY_UNWRAP(auto cloneInfo,auto tryResult887 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6434, mozilla::dom::quota::Severity::Error); return tryResult887
.propagateErr(); } auto cloneInfo = tryResult887.unwrap();
6433 GetStructuredCloneReadInfoFromStatement(auto tryResult887 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6434, mozilla::dom::quota::Severity::Error); return tryResult887
.propagateErr(); } auto cloneInfo = tryResult887.unwrap();
6434 aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager))auto tryResult887 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6434, mozilla::dom::quota::Severity::Error); return tryResult887
.propagateErr(); } auto cloneInfo = tryResult887.unwrap();
;
6435
6436 mCloneInfo.init(std::move(cloneInfo));
6437
6438 if (mCloneInfo->HasPreprocessInfo()) {
6439 IDB_WARNING("Preprocessing for cursors not yet implemented!")do { nsPrintfCString s("Preprocessing for cursors not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6439, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6439)
; } while (0)
;
6440 return NS_ERROR_NOT_IMPLEMENTED;
6441 }
6442
6443 return NS_OK;
6444 }
6445
6446 template <typename Response>
6447 void MaybeFillCloneInfo(Response& aResponse, FilesArray* const aFiles) {
6448 auto cloneInfo = mCloneInfo.release();
6449 aResponse.cloneInfo().data().data = cloneInfo.ReleaseData();
6450 aFiles->AppendElement(cloneInfo.ReleaseFiles());
6451 }
6452
6453 template <typename Response>
6454 static size_t MaybeGetCloneInfoSize(const Response& aResponse) {
6455 return aResponse.cloneInfo().data().data.Size();
6456 }
6457
6458 private:
6459 LazyInitializedOnceEarlyDestructible<const StructuredCloneReadInfoParent>
6460 mCloneInfo;
6461};
6462
6463template <>
6464struct PopulateResponseHelper<IDBCursorType::ObjectStore>
6465 : ValuePopulateResponseHelper<false>, CommonPopulateResponseHelper {
6466 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6467
6468 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6469 return aResponse->get_ArrayOfObjectStoreCursorResponse();
6470 }
6471};
6472
6473template <>
6474struct PopulateResponseHelper<IDBCursorType::ObjectStoreKey>
6475 : KeyPopulateResponseHelper, CommonPopulateResponseHelper {
6476 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6477
6478 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6479 return aResponse->get_ArrayOfObjectStoreKeyCursorResponse();
6480 }
6481};
6482
6483template <>
6484struct PopulateResponseHelper<IDBCursorType::Index>
6485 : ValuePopulateResponseHelper<true>, IndexPopulateResponseHelper {
6486 using IndexPopulateResponseHelper::IndexPopulateResponseHelper;
6487
6488 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6489 return aResponse->get_ArrayOfIndexCursorResponse();
6490 }
6491};
6492
6493template <>
6494struct PopulateResponseHelper<IDBCursorType::IndexKey>
6495 : KeyPopulateResponseHelper, IndexPopulateResponseHelper {
6496 using IndexPopulateResponseHelper::IndexPopulateResponseHelper;
6497
6498 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6499 return aResponse->get_ArrayOfIndexKeyCursorResponse();
6500 }
6501};
6502
6503nsresult DispatchAndReturnFileReferences(
6504 PersistenceType aPersistenceType, const nsACString& aOrigin,
6505 const nsAString& aDatabaseName, const int64_t aFileId,
6506 int32_t* const aMemRefCnt, int32_t* const aDBRefCnt, bool* const aResult) {
6507 AssertIsOnBackgroundThread();
6508 MOZ_ASSERT(aMemRefCnt)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMemRefCnt)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMemRefCnt))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aMemRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6508); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMemRefCnt"
")"); do { MOZ_CrashSequence(__null, 6508); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6509 MOZ_ASSERT(aDBRefCnt)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDBRefCnt)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDBRefCnt))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aDBRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt" ")"
); do { MOZ_CrashSequence(__null, 6509); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6510 MOZ_ASSERT(aResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aResult))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6510); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")"
); do { MOZ_CrashSequence(__null, 6510); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6511
6512 *aResult = false;
6513 *aMemRefCnt = -1;
6514 *aDBRefCnt = -1;
6515
6516 mozilla::Monitor monitor MOZ_ANNOTATED(__func__);
6517 bool waiting = true;
6518
6519 auto lambda = [&] {
6520 AssertIsOnIOThread();
6521
6522 {
6523 IndexedDatabaseManager* const mgr = IndexedDatabaseManager::Get();
6524 MOZ_ASSERT(mgr)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mgr)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(mgr))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mgr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6524); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do
{ MOZ_CrashSequence(__null, 6524); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
6525
6526 const SafeRefPtr<DatabaseFileManager> fileManager =
6527 mgr->GetFileManager(aPersistenceType, aOrigin, aDatabaseName);
6528
6529 if (fileManager) {
6530 const SafeRefPtr<DatabaseFileInfo> fileInfo =
6531 fileManager->GetFileInfo(aFileId);
6532
6533 if (fileInfo) {
6534 fileInfo->GetReferences(aMemRefCnt, aDBRefCnt);
6535
6536 if (*aMemRefCnt != -1) {
6537 // We added an extra temp ref, so account for that accordingly.
6538 (*aMemRefCnt)--;
6539 }
6540
6541 *aResult = true;
6542 }
6543 }
6544 }
6545
6546 mozilla::MonitorAutoLock lock(monitor);
6547 MOZ_ASSERT(waiting)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(waiting)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(waiting))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("waiting", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6547); AnnotateMozCrashReason("MOZ_ASSERT" "(" "waiting" ")"
); do { MOZ_CrashSequence(__null, 6547); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6548
6549 waiting = false;
6550 lock.Notify();
6551 };
6552
6553 QuotaManager* const quotaManager = QuotaManager::Get();
6554 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6554); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 6554); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6555
6556 // XXX can't we simply use NS_DispatchAndSpinEventLoopUntilComplete instead of
6557 // using a monitor?
6558 QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch({auto tryResult888 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult888)::ok_type>
); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6560, mozilla::dom::quota::Severity::Error); return tryResult888
.propagateErr(); }}
6559 NS_NewRunnableFunction("GetFileReferences", std::move(lambda)),{auto tryResult888 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult888)::ok_type>
); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6560, mozilla::dom::quota::Severity::Error); return tryResult888
.propagateErr(); }}
6560 NS_DISPATCH_NORMAL))){auto tryResult888 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult888)::ok_type>
); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6560, mozilla::dom::quota::Severity::Error); return tryResult888
.propagateErr(); }}
;
6561
6562 mozilla::MonitorAutoLock autolock(monitor);
6563 while (waiting) {
6564 autolock.Wait();
6565 }
6566
6567 return NS_OK;
6568}
6569
6570class DeserializeIndexValueHelper final : public Runnable {
6571 public:
6572 DeserializeIndexValueHelper(int64_t aIndexID, const KeyPath& aKeyPath,
6573 bool aMultiEntry, const nsACString& aLocale,
6574 StructuredCloneReadInfoParent& aCloneReadInfo,
6575 nsTArray<IndexUpdateInfo>& aUpdateInfoArray)
6576 : Runnable("DeserializeIndexValueHelper"),
6577 mMonitor("DeserializeIndexValueHelper::mMonitor"),
6578 mIndexID(aIndexID),
6579 mKeyPath(aKeyPath),
6580 mMultiEntry(aMultiEntry),
6581 mLocale(aLocale),
6582 mCloneReadInfo(aCloneReadInfo),
6583 mUpdateInfoArray(aUpdateInfoArray),
6584 mStatus(NS_ERROR_FAILURE) {}
6585
6586 nsresult DispatchAndWait() {
6587 // FIXME(Bug 1637530) Re-enable optimization using a non-system-principaled
6588 // JS context
6589#if 0
6590 // We don't need to go to the main-thread and use the sandbox. Let's create
6591 // the updateInfo data here.
6592 if (!mCloneReadInfo.Data().Size()) {
6593 AutoJSAPI jsapi;
6594 jsapi.Init();
6595
6596 JS::Rooted<JS::Value> value(jsapi.cx());
6597 value.setUndefined();
6598
6599 ErrorResult rv;
6600 IDBObjectStore::AppendIndexUpdateInfo(
6601 mIndexID, mKeyPath, mMultiEntry, &mUpdateInfoArray,
6602 /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &rv);
6603 return rv.Failed() ? rv.StealNSResult() : NS_OK;
6604 }
6605#endif
6606
6607 // The operation will continue on the main-thread.
6608
6609 MOZ_ASSERT(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t)))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6609)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))"
")"); do { MOZ_CrashSequence(__null, 6609); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6610
6611 MonitorAutoLock lock(mMonitor);
6612
6613 RefPtr<Runnable> self = this;
6614 QM_TRY(MOZ_TO_RESULT(SchedulerGroup::Dispatch(self.forget()))){auto tryResult889 = (ToResult(SchedulerGroup::Dispatch(self.
forget()))); static_assert(std::is_empty_v<typename decltype
(tryResult889)::ok_type>); if ((__builtin_expect(!!(tryResult889
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SchedulerGroup::Dispatch(self.forget()))"
, tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6614, mozilla::dom::quota::Severity::Error); return tryResult889
.propagateErr(); }}
;
6615
6616 lock.Wait();
6617 return mStatus;
6618 }
6619
6620 NS_IMETHODvirtual nsresult
6621 Run() override {
6622 MOZ_ASSERT(NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6622)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 6622); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6623
6624 AutoJSAPI jsapi;
6625 jsapi.Init();
6626 JSContext* const cx = jsapi.cx();
6627
6628 JS::Rooted<JSObject*> global(cx, GetSandbox(cx));
6629
6630 QM_TRY(OkIf(global), NS_OK,{auto tryResult890 = (OkIf(global)); static_assert(std::is_empty_v
<typename decltype(tryResult890)::ok_type>); if ((__builtin_expect
(!!(tryResult890.isErr()), 0))) { auto tryTempError = tryResult890
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(global)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6631, mozilla::dom::quota::Severity::Error); [this](const NotOk
) { OperationCompleted(NS_ERROR_FAILURE); }(tryTempError); constexpr
const auto& func __attribute__((__unused__)) = __func__;
return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(global)"
, tryTempError, NS_OK); }}
6631 [this](const NotOk) { OperationCompleted(NS_ERROR_FAILURE); }){auto tryResult890 = (OkIf(global)); static_assert(std::is_empty_v
<typename decltype(tryResult890)::ok_type>); if ((__builtin_expect
(!!(tryResult890.isErr()), 0))) { auto tryTempError = tryResult890
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(global)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6631, mozilla::dom::quota::Severity::Error); [this](const NotOk
) { OperationCompleted(NS_ERROR_FAILURE); }(tryTempError); constexpr
const auto& func __attribute__((__unused__)) = __func__;
return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(global)"
, tryTempError, NS_OK); }}
;
6632
6633 const JSAutoRealm ar(cx, global);
6634
6635 JS::Rooted<JS::Value> value(cx);
6636 QM_TRY(MOZ_TO_RESULT(DeserializeIndexValue(cx, &value)), NS_OK,{auto tryResult891 = (ToResult(DeserializeIndexValue(cx, &
value))); static_assert(std::is_empty_v<typename decltype(
tryResult891)::ok_type>); if ((__builtin_expect(!!(tryResult891
.isErr()), 0))) { auto tryTempError = tryResult891.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6637, mozilla::dom::quota::Severity::Error); [this](const nsresult
rv) { OperationCompleted(rv); }(tryTempError); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, NS_OK); }}
6637 [this](const nsresult rv) { OperationCompleted(rv); }){auto tryResult891 = (ToResult(DeserializeIndexValue(cx, &
value))); static_assert(std::is_empty_v<typename decltype(
tryResult891)::ok_type>); if ((__builtin_expect(!!(tryResult891
.isErr()), 0))) { auto tryTempError = tryResult891.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6637, mozilla::dom::quota::Severity::Error); [this](const nsresult
rv) { OperationCompleted(rv); }(tryTempError); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, NS_OK); }}
;
6638
6639 ErrorResult errorResult;
6640 IDBObjectStore::AppendIndexUpdateInfo(
6641 mIndexID, mKeyPath, mMultiEntry, mLocale, cx, value, &mUpdateInfoArray,
6642 /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &errorResult);
6643 QM_TRY(OkIf(!errorResult.Failed()), NS_OK,{auto tryResult892 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult892)::ok_type>
); if ((__builtin_expect(!!(tryResult892.isErr()), 0))) { auto
tryTempError = tryResult892.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6646, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
6644 ([this, &errorResult](const NotOk) {{auto tryResult892 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult892)::ok_type>
); if ((__builtin_expect(!!(tryResult892.isErr()), 0))) { auto
tryTempError = tryResult892.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6646, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
6645 OperationCompleted(errorResult.StealNSResult());{auto tryResult892 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult892)::ok_type>
); if ((__builtin_expect(!!(tryResult892.isErr()), 0))) { auto
tryTempError = tryResult892.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6646, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
6646 })){auto tryResult892 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult892)::ok_type>
); if ((__builtin_expect(!!(tryResult892.isErr()), 0))) { auto
tryTempError = tryResult892.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6646, mozilla::dom::quota::Severity::Error); ([this, &errorResult
](const NotOk) { OperationCompleted(errorResult.StealNSResult
()); })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); }
}
;
6647
6648 OperationCompleted(NS_OK);
6649 return NS_OK;
6650 }
6651
6652 private:
6653 nsresult DeserializeIndexValue(JSContext* aCx,
6654 JS::MutableHandle<JS::Value> aValue) {
6655 static const JSStructuredCloneCallbacks callbacks = {
6656 StructuredCloneReadCallback<StructuredCloneReadInfoParent>,
6657 nullptr,
6658 nullptr,
6659 nullptr,
6660 nullptr,
6661 nullptr,
6662 nullptr,
6663 nullptr};
6664
6665 if (!JS_ReadStructuredClone(
6666 aCx, mCloneReadInfo.Data(), JS_STRUCTURED_CLONE_VERSION8,
6667 JS::StructuredCloneScope::DifferentProcessForIndexedDB, aValue,
6668 JS::CloneDataPolicy(), &callbacks, &mCloneReadInfo)) {
6669 return NS_ERROR_DOM_DATA_CLONE_ERR;
6670 }
6671
6672 return NS_OK;
6673 }
6674
6675 void OperationCompleted(nsresult aStatus) {
6676 mStatus = aStatus;
6677
6678 MonitorAutoLock lock(mMonitor);
6679 lock.Notify();
6680 }
6681
6682 Monitor mMonitor MOZ_UNANNOTATED;
6683
6684 const int64_t mIndexID;
6685 const KeyPath& mKeyPath;
6686 const bool mMultiEntry;
6687 const nsCString mLocale;
6688 StructuredCloneReadInfoParent& mCloneReadInfo;
6689 nsTArray<IndexUpdateInfo>& mUpdateInfoArray;
6690 nsresult mStatus;
6691};
6692
6693auto DeserializeIndexValueToUpdateInfos(
6694 int64_t aIndexID, const KeyPath& aKeyPath, bool aMultiEntry,
6695 const nsACString& aLocale, StructuredCloneReadInfoParent& aCloneReadInfo) {
6696 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6696)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 6696); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6697
6698 using ArrayType = AutoTArray<IndexUpdateInfo, 32>;
6699 using ResultType = Result<ArrayType, nsresult>;
6700
6701 ArrayType updateInfoArray;
6702 const auto helper = MakeRefPtr<DeserializeIndexValueHelper>(
6703 aIndexID, aKeyPath, aMultiEntry, aLocale, aCloneReadInfo,
6704 updateInfoArray);
6705 const nsresult rv = helper->DispatchAndWait();
6706 return NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0))) ? Err(rv) : ResultType{std::move(updateInfoArray)};
6707}
6708
6709bool IsSome(
6710 const Maybe<CachingDatabaseConnection::BorrowedStatement>& aMaybeStmt) {
6711 return aMaybeStmt.isSome();
6712}
6713
6714already_AddRefed<nsIThreadPool> MakeConnectionIOTarget() {
6715 nsCOMPtr<nsIThreadPool> threadPool = new nsThreadPool();
6716
6717 MOZ_ALWAYS_SUCCEEDS(threadPool->SetThreadLimit(kMaxConnectionThreadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetThreadLimit(kMaxConnectionThreadCount))), 1
)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6717)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))"
")"); do { MOZ_CrashSequence(__null, 6717); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6718
6719 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6720)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
")"); do { MOZ_CrashSequence(__null, 6720); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6720 threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6720)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
")"); do { MOZ_CrashSequence(__null, 6720); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6721
6722 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6723)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
")"); do { MOZ_CrashSequence(__null, 6723); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6723 threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6723)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
")"); do { MOZ_CrashSequence(__null, 6723); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6724
6725 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6726)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
")"); do { MOZ_CrashSequence(__null, 6726); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
6726 threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6726)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
")"); do { MOZ_CrashSequence(__null, 6726); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6727
6728 MOZ_ALWAYS_SUCCEEDS(threadPool->SetName("IndexedDB IO"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetName("IndexedDB IO"_ns))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6728)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))"
")"); do { MOZ_CrashSequence(__null, 6728); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
6729
6730 return threadPool.forget();
6731}
6732
6733} // namespace
6734
6735/*******************************************************************************
6736 * Exported functions
6737 ******************************************************************************/
6738
6739already_AddRefed<PBackgroundIDBFactoryParent> AllocPBackgroundIDBFactoryParent(
6740 const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale) {
6741 AssertIsOnBackgroundThread();
6742
6743 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6743)
) {
6744 return nullptr;
6745 }
6746
6747 if (NS_AUUF_OR_WARN_IF(!aLoggingInfo.nextTransactionSerialNumber())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aLoggingInfo.nextTransactionSerialNumber()" ")"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6747)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aLoggingInfo.nextTransactionSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 6747); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!aLoggingInfo.nextTransactionSerialNumber()))
||
6748 NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aLoggingInfo.nextVersionChangeTransactionSerialNumber()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6749
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aLoggingInfo.nextVersionChangeTransactionSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 6749); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!aLoggingInfo.nextVersionChangeTransactionSerialNumber()
))
6749 !aLoggingInfo.nextVersionChangeTransactionSerialNumber())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aLoggingInfo.nextVersionChangeTransactionSerialNumber()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6749
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aLoggingInfo.nextVersionChangeTransactionSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 6749); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!aLoggingInfo.nextVersionChangeTransactionSerialNumber()
))
||
6750 NS_AUUF_OR_WARN_IF(!aLoggingInfo.nextRequestSerialNumber())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aLoggingInfo.nextRequestSerialNumber()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6750); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aLoggingInfo.nextRequestSerialNumber()" ")"); do { MOZ_CrashSequence
(__null, 6750); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!aLoggingInfo.nextRequestSerialNumber
()))
) {
6751 return nullptr;
6752 }
6753
6754 SafeRefPtr<Factory> actor = Factory::Create(aLoggingInfo, aSystemLocale);
6755 MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(actor)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")")
; do { MOZ_CrashSequence(__null, 6755); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6756
6757 return actor.forget();
6758}
6759
6760bool RecvPBackgroundIDBFactoryConstructor(
6761 PBackgroundIDBFactoryParent* aActor, const LoggingInfo& /* aLoggingInfo */,
6762 const nsACString& /* aSystemLocale */) {
6763 AssertIsOnBackgroundThread();
6764 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6764); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 6764); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6765 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6765)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 6765); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6766
6767 return true;
6768}
6769
6770PBackgroundIndexedDBUtilsParent* AllocPBackgroundIndexedDBUtilsParent() {
6771 AssertIsOnBackgroundThread();
6772
6773 RefPtr<Utils> actor = new Utils();
6774
6775 return actor.forget().take();
6776}
6777
6778bool DeallocPBackgroundIndexedDBUtilsParent(
6779 PBackgroundIndexedDBUtilsParent* aActor) {
6780 AssertIsOnBackgroundThread();
6781 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 6781); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6782
6783 RefPtr<Utils> actor = dont_AddRef(static_cast<Utils*>(aActor));
6784 return true;
6785}
6786
6787bool RecvFlushPendingFileDeletions() {
6788 AssertIsOnBackgroundThread();
6789
6790 if (QuotaClient* quotaClient = QuotaClient::GetInstance()) {
6791 QM_WARNONLY_TRY(QM_TO_RESULT(quotaClient->FlushPendingFileDeletions())){auto tryResult893 = (ToResult<QMResult>(quotaClient->
FlushPendingFileDeletions())); static_assert(std::is_empty_v<
typename decltype(tryResult893)::ok_type>); if ((__builtin_expect
(!!(tryResult893.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(quotaClient->FlushPendingFileDeletions())"
, tryResult893.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6791, mozilla::dom::quota::Severity::Warning); }}
;
6792 }
6793
6794 return true;
6795}
6796
6797RefPtr<mozilla::dom::quota::Client> CreateQuotaClient() {
6798 AssertIsOnBackgroundThread();
6799
6800 return MakeRefPtr<QuotaClient>();
6801}
6802
6803nsresult DatabaseFileManager::AsyncDeleteFile(int64_t aFileId) {
6804 AssertIsOnBackgroundThread();
6805 MOZ_ASSERT(!ContainsFileInfo(aFileId))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!ContainsFileInfo(aFileId))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!ContainsFileInfo(aFileId)))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!ContainsFileInfo(aFileId)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6805)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!ContainsFileInfo(aFileId)"
")"); do { MOZ_CrashSequence(__null, 6805); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6806
6807 QuotaClient* quotaClient = QuotaClient::GetInstance();
6808 if (quotaClient) {
6809 QM_TRY(MOZ_TO_RESULT(quotaClient->AsyncDeleteFile(this, aFileId))){auto tryResult894 = (ToResult(quotaClient->AsyncDeleteFile
(this, aFileId))); static_assert(std::is_empty_v<typename decltype
(tryResult894)::ok_type>); if ((__builtin_expect(!!(tryResult894
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaClient->AsyncDeleteFile(this, aFileId))"
, tryResult894.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6809, mozilla::dom::quota::Severity::Error); return tryResult894
.propagateErr(); }}
;
6810 }
6811
6812 return NS_OK;
6813}
6814
6815/*******************************************************************************
6816 * DatabaseConnection implementation
6817 ******************************************************************************/
6818
6819DatabaseConnection::DatabaseConnection(
6820 MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection,
6821 MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager)
6822 : CachingDatabaseConnection(std::move(aStorageConnection)),
6823 mFileManager(std::move(aFileManager)),
6824 mLastDurability(IDBTransaction::Durability::Default),
6825 mInReadTransaction(false),
6826 mInWriteTransaction(false)
6827#ifdef DEBUG1
6828 ,
6829 mDEBUGSavepointCount(0)
6830#endif
6831{
6832 AssertIsOnConnectionThread();
6833 MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6833); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { MOZ_CrashSequence(__null, 6833); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6834}
6835
6836DatabaseConnection::~DatabaseConnection() {
6837 MOZ_ASSERT(!mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mFileManager",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6837);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileManager" ")")
; do { MOZ_CrashSequence(__null, 6837); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6838 MOZ_ASSERT(!mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mUpdateRefcountFunction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mUpdateRefcountFunction))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!mUpdateRefcountFunction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6838)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUpdateRefcountFunction"
")"); do { MOZ_CrashSequence(__null, 6838); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6839 MOZ_DIAGNOSTIC_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6839)
; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 6839); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6840 MOZ_ASSERT(!mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDEBUGSavepointCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDEBUGSavepointCount))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGSavepointCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6840)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount"
")"); do { MOZ_CrashSequence(__null, 6840); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6841}
6842
6843nsresult DatabaseConnection::Init() {
6844 AssertIsOnConnectionThread();
6845 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6845)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 6845); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6846 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6846)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 6846); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6847
6848 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns))){auto tryResult895 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult895
)::ok_type>); if ((__builtin_expect(!!(tryResult895.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns))"
, tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6848, mozilla::dom::quota::Severity::Error); return tryResult895
.propagateErr(); }}
;
6849
6850 mInReadTransaction = true;
6851
6852 return NS_OK;
6853}
6854
6855nsresult DatabaseConnection::BeginWriteTransaction(
6856 const IDBTransaction::Durability aDurability) {
6857 AssertIsOnConnectionThread();
6858 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6858)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 6858); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6859 MOZ_ASSERT(mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInReadTransaction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6859)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 6859); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6860 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6860)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 6860); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6861
6862 AUTO_PROFILER_LABEL("DatabaseConnection::BeginWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6862( "DatabaseConnection::BeginWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6863
6864 // Release our read locks.
6865 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("ROLLBACK;"_ns))){auto tryResult896 = (ToResult(ExecuteCachedStatement("ROLLBACK;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult896
)::ok_type>); if ((__builtin_expect(!!(tryResult896.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"ROLLBACK;\"_ns))"
, tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6865, mozilla::dom::quota::Severity::Error); return tryResult896
.propagateErr(); }}
;
6866
6867 mInReadTransaction = false;
6868
6869 if (mLastDurability != aDurability) {
6870 auto synchronousMode = [aDurability]() -> nsLiteralCString {
6871 switch (aDurability) {
6872 case IDBTransaction::Durability::Default:
6873 return GetDefaultSynchronousMode();
6874
6875 case IDBTransaction::Durability::Strict:
6876 return "EXTRA"_ns;
6877
6878 case IDBTransaction::Durability::Relaxed:
6879 return "OFF"_ns;
6880
6881 default:
6882 MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6882)
; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!"
")"); do { MOZ_CrashSequence(__null, 6882); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6883 }
6884 }();
6885
6886 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("PRAGMA synchronous = "_ns +{auto tryResult897 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns
+ synchronousMode + ";"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult897)::ok_type>); if ((__builtin_expect
(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))"
, tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6887, mozilla::dom::quota::Severity::Error); return tryResult897
.propagateErr(); }}
6887 synchronousMode + ";"_ns))){auto tryResult897 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns
+ synchronousMode + ";"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult897)::ok_type>); if ((__builtin_expect
(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))"
, tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6887, mozilla::dom::quota::Severity::Error); return tryResult897
.propagateErr(); }}
;
6888
6889 mLastDurability = aDurability;
6890 }
6891
6892 if (!mUpdateRefcountFunction) {
6893 MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { MOZ_CrashSequence(__null, 6893); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6894
6895 RefPtr<UpdateRefcountFunction> function =
6896 new UpdateRefcountFunction(this, **mFileManager);
6897
6898 QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().CreateFunction({auto tryResult898 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6900, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6899 "update_refcount"_ns,{auto tryResult898 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6900, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
6900 /* aNumArguments */ 2, function))){auto tryResult898 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult898)::ok_type>); if ((__builtin_expect
(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6900, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); }}
;
6901
6902 mUpdateRefcountFunction = std::move(function);
6903 }
6904
6905 // This one cannot obviously use ExecuteCachedStatement because of the custom
6906 // error handling for Execute only. If only Execute can produce
6907 // NS_ERROR_STORAGE_BUSY, we could actually use ExecuteCachedStatement and
6908 // simplify this.
6909 QM_TRY_INSPECT(const auto& beginStmt,auto tryResult899 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult899.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6910, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); } const auto& beginStmt = tryResult899.inspect
();
6910 BorrowCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult899 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult899.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6910, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); } const auto& beginStmt = tryResult899.inspect
();
;
6911
6912 QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6913 // Expression.{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6914 MOZ_TO_RESULT(beginStmt->Execute()),{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6915 // Predicate.{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6916 IsSpecificError<NS_ERROR_STORAGE_BUSY>,{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6917 // Fallback.{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6918 ([&beginStmt](nsresult rv) {{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6919 NS_WARNING({auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6920 "Received NS_ERROR_STORAGE_BUSY when attempting to start write "{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6921 "transaction, retrying for up to 10 seconds");{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6922
6923 // Another thread must be using the database. Wait up to 10 seconds{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6924 // for that to complete.{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6925 const TimeStamp start = TimeStamp::NowLoRes();{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6926
6927 while (true) {{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6928 PR_Sleep(PR_MillisecondsToInterval(100));{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6929
6930 rv = beginStmt->Execute();{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6931 if (rv != NS_ERROR_STORAGE_BUSY ||{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6932 TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) {{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6933 break;{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6934 }{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6935 }{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6936
6937 return MOZ_TO_RESULT(rv);{auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
6938 }))){auto tryResult900 = (mozilla::dom::quota::OrElseIf( (ToResult
(beginStmt->Execute())), [&](const auto& firstRes)
{ bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes
); mozilla::dom::quota::HandleError("\"ToResult(beginStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ([&beginStmt
](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, "Received NS_ERROR_STORAGE_BUSY when attempting to start write "
"transaction, retrying for up to 10 seconds", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6921); const TimeStamp start = TimeStamp::NowLoRes(); while
(true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt
->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::
NowLoRes() - start > TimeDuration::FromSeconds(10)) { break
; } } return ToResult(rv); }))); static_assert(std::is_empty_v
<typename decltype(tryResult900)::ok_type>); if ((__builtin_expect
(!!(tryResult900.isErr()), 0))) { mozilla::dom::quota::HandleError
("mozilla::dom::quota::OrElseIf( (ToResult(beginStmt->Execute())), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(beginStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6938, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ([&beginStmt](nsresult rv) { NS_DebugBreak(NS_DEBUG_WARNING, \"Received NS_ERROR_STORAGE_BUSY when attempting to start write \" \"transaction, retrying for up to 10 seconds\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 6921); const TimeStamp start = TimeStamp::NowLoRes(); while (true) { PR_Sleep(PR_MillisecondsToInterval(100)); rv = beginStmt->Execute(); if (rv != NS_ERROR_STORAGE_BUSY || TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) { break; } } return ToResult(rv); }))"
, tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6938, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
;
6939
6940 mInWriteTransaction = true;
6941
6942 return NS_OK;
6943}
6944
6945nsresult DatabaseConnection::CommitWriteTransaction() {
6946 AssertIsOnConnectionThread();
6947 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6947)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 6947); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6948 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6948)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 6948); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6949 MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6949)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 6949); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6950
6951 AUTO_PROFILER_LABEL("DatabaseConnection::CommitWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6951( "DatabaseConnection::CommitWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6952
6953 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("COMMIT;"_ns))){auto tryResult901 = (ToResult(ExecuteCachedStatement("COMMIT;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult901
)::ok_type>); if ((__builtin_expect(!!(tryResult901.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"COMMIT;\"_ns))"
, tryResult901.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6953, mozilla::dom::quota::Severity::Error); return tryResult901
.propagateErr(); }}
;
6954
6955 mInWriteTransaction = false;
6956 return NS_OK;
6957}
6958
6959void DatabaseConnection::RollbackWriteTransaction() {
6960 AssertIsOnConnectionThread();
6961 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6961)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 6961); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6962 MOZ_DIAGNOSTIC_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6962)
; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 6962); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6963
6964 AUTO_PROFILER_LABEL("DatabaseConnection::RollbackWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6964( "DatabaseConnection::RollbackWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6965
6966 if (!mInWriteTransaction) {
6967 return;
6968 }
6969
6970 QM_WARNONLY_TRY({auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6971 BorrowCachedStatement("ROLLBACK;"_ns){auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6972 .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> {{auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6973 // This may fail if SQLite already rolled back the transaction{auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6974 // so ignore any errors.{auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6975
6976 // XXX ROLLBACK can fail quite normmally if a previous statement{auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6977 // failed to execute successfully so SQLite rolled back the{auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6978 // transaction already. However, if it failed because of some other{auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6979 // reason, we could try to close the connection.{auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6980 Unused << stmt->Execute();{auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6981
6982 self.mInWriteTransaction = false;{auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6983 return Ok{};{auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
6984 })){auto tryResult902 = (BorrowCachedStatement("ROLLBACK;"_ns) .
andThen([&self = *this](const auto& stmt) -> Result
<Ok, nsresult> { Unused << stmt->Execute(); self
.mInWriteTransaction = false; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK;\"_ns) .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> { Unused << stmt->Execute(); self.mInWriteTransaction = false; return Ok{}; })"
, tryResult902.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 6984, mozilla::dom::quota::Severity::Warning); }}
;
6985}
6986
6987void DatabaseConnection::FinishWriteTransaction() {
6988 AssertIsOnConnectionThread();
6989 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6989)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 6989); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6990 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6990)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 6990); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6991 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6991)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 6991); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6992
6993 AUTO_PROFILER_LABEL("DatabaseConnection::FinishWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6993( "DatabaseConnection::FinishWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6994
6995 if (mUpdateRefcountFunction) {
6996 mUpdateRefcountFunction->Reset();
6997 }
6998
6999 QM_WARNONLY_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns)){auto tryResult903 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult903)::ok_type>
); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult903.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7003, mozilla::dom::quota::Severity::Warning); }}
7000 .andThen([&](const auto) -> Result<Ok, nsresult> {{auto tryResult903 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult903)::ok_type>
); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult903.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7003, mozilla::dom::quota::Severity::Warning); }}
7001 mInReadTransaction = true;{auto tryResult903 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult903)::ok_type>
); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult903.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7003, mozilla::dom::quota::Severity::Warning); }}
7002 return Ok{};{auto tryResult903 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult903)::ok_type>
); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult903.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7003, mozilla::dom::quota::Severity::Warning); }}
7003 })){auto tryResult903 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult903)::ok_type>
); if ((__builtin_expect(!!(tryResult903.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult903.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7003, mozilla::dom::quota::Severity::Warning); }}
;
7004}
7005
7006nsresult DatabaseConnection::StartSavepoint() {
7007 AssertIsOnConnectionThread();
7008 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7008)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 7008); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7009 MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7009)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { MOZ_CrashSequence(__null, 7009); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7010 MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7010)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7010); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7011
7012 AUTO_PROFILER_LABEL("DatabaseConnection::StartSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7012( "DatabaseConnection::StartSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7013
7014 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(SAVEPOINT_CLAUSE))){auto tryResult904 = (ToResult(ExecuteCachedStatement("SAVEPOINT sp;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult904
)::ok_type>); if ((__builtin_expect(!!(tryResult904.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"SAVEPOINT sp;\"_ns))"
, tryResult904.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7014, mozilla::dom::quota::Severity::Error); return tryResult904
.propagateErr(); }}
;
7015
7016 mUpdateRefcountFunction->StartSavepoint();
7017
7018#ifdef DEBUG1
7019 MOZ_ASSERT(mDEBUGSavepointCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGSavepointCount < (4294967295U))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mDEBUGSavepointCount < (4294967295U)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount < (4294967295U)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7019)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount < (4294967295U)"
")"); do { MOZ_CrashSequence(__null, 7019); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7020 mDEBUGSavepointCount++;
7021#endif
7022
7023 return NS_OK;
7024}
7025
7026nsresult DatabaseConnection::ReleaseSavepoint() {
7027 AssertIsOnConnectionThread();
7028 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7028)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 7028); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7029 MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7029)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { MOZ_CrashSequence(__null, 7029); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7030 MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7030)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7030); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7031
7032 AUTO_PROFILER_LABEL("DatabaseConnection::ReleaseSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7032( "DatabaseConnection::ReleaseSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7033
7034 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("RELEASE "_ns SAVEPOINT_CLAUSE))){auto tryResult905 = (ToResult(ExecuteCachedStatement("RELEASE "_ns
"SAVEPOINT sp;"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult905)::ok_type>); if ((__builtin_expect(
!!(tryResult905.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"RELEASE \"_ns \"SAVEPOINT sp;\"_ns))"
, tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7034, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); }}
;
7035
7036 mUpdateRefcountFunction->ReleaseSavepoint();
7037
7038#ifdef DEBUG1
7039 MOZ_ASSERT(mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGSavepointCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGSavepointCount))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7039)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount"
")"); do { MOZ_CrashSequence(__null, 7039); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7040 mDEBUGSavepointCount--;
7041#endif
7042
7043 return NS_OK;
7044}
7045
7046nsresult DatabaseConnection::RollbackSavepoint() {
7047 AssertIsOnConnectionThread();
7048 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7048)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 7048); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7049 MOZ_ASSERT(mUpdateRefcountFunction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mUpdateRefcountFunction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mUpdateRefcountFunction))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mUpdateRefcountFunction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7049)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { MOZ_CrashSequence(__null, 7049); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7050 MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7050)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7050); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7051
7052 AUTO_PROFILER_LABEL("DatabaseConnection::RollbackSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7052( "DatabaseConnection::RollbackSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7053
7054#ifdef DEBUG1
7055 MOZ_ASSERT(mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGSavepointCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGSavepointCount))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGSavepointCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7055)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount"
")"); do { MOZ_CrashSequence(__null, 7055); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7056 mDEBUGSavepointCount--;
7057#endif
7058
7059 mUpdateRefcountFunction->RollbackSavepoint();
7060
7061 QM_TRY_INSPECT(const auto& stmt,auto tryResult906 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns
)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7062, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const auto& stmt = tryResult906.inspect
();
7062 BorrowCachedStatement("ROLLBACK TO "_ns SAVEPOINT_CLAUSE))auto tryResult906 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns
)); if ((__builtin_expect(!!(tryResult906.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)"
, tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7062, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); } const auto& stmt = tryResult906.inspect
();
;
7063
7064 // This may fail if SQLite already rolled back the savepoint so ignore any
7065 // errors.
7066 Unused << stmt->Execute();
7067
7068 return NS_OK;
7069}
7070
7071nsresult DatabaseConnection::CheckpointInternal(CheckpointMode aMode) {
7072 AssertIsOnConnectionThread();
7073 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7073)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 7073); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7074 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7074)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7074); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7075
7076 AUTO_PROFILER_LABEL("DatabaseConnection::CheckpointInternal", DOM)mozilla::AutoProfilerLabel raiiObject7076( "DatabaseConnection::CheckpointInternal"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7077
7078 nsAutoCString stmtString;
7079 stmtString.AssignLiteral("PRAGMA wal_checkpoint(");
7080
7081 switch (aMode) {
7082 case CheckpointMode::Full:
7083 // Ensures that the database is completely checkpointed and flushed to
7084 // disk.
7085 stmtString.AppendLiteral("FULL");
7086 break;
7087
7088 case CheckpointMode::Restart:
7089 // Like Full, but also ensures that the next write will start overwriting
7090 // the existing WAL file rather than letting the WAL file grow.
7091 stmtString.AppendLiteral("RESTART");
7092 break;
7093
7094 case CheckpointMode::Truncate:
7095 // Like Restart but also truncates the existing WAL file.
7096 stmtString.AppendLiteral("TRUNCATE");
7097 break;
7098
7099 default:
7100 MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7100)
; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!"
")"); do { MOZ_CrashSequence(__null, 7100); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
7101 }
7102
7103 stmtString.AppendLiteral(");");
7104
7105 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(stmtString))){auto tryResult907 = (ToResult(ExecuteCachedStatement(stmtString
))); static_assert(std::is_empty_v<typename decltype(tryResult907
)::ok_type>); if ((__builtin_expect(!!(tryResult907.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(stmtString))"
, tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7105, mozilla::dom::quota::Severity::Error); return tryResult907
.propagateErr(); }}
;
7106
7107 return NS_OK;
7108}
7109
7110void DatabaseConnection::DoIdleProcessing(bool aNeedsCheckpoint,
7111 const Atomic<bool>& aInterrupted) {
7112 AssertIsOnConnectionThread();
7113 MOZ_ASSERT(mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInReadTransaction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7113)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 7113); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7114 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7114)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7114); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7115
7116 AUTO_PROFILER_LABEL("DatabaseConnection::DoIdleProcessing", DOM)mozilla::AutoProfilerLabel raiiObject7116( "DatabaseConnection::DoIdleProcessing"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7117
7118 CachingDatabaseConnection::CachedStatement freelistStmt;
7119 const uint32_t freelistCount = [this, &freelistStmt] {
7120 QM_TRY_RETURN(GetFreelistCount(freelistStmt), 0u){auto tryResult908 = (GetFreelistCount(freelistStmt)); if ((__builtin_expect
(!!(tryResult908.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult908.unwrapErr(); mozilla::dom::quota
::HandleError("GetFreelistCount(freelistStmt)", tryResult908.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7120, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "GetFreelistCount(freelistStmt)"
, tryTempError, 0u); } return tryResult908.unwrap();}
;
7121 }();
7122
7123 CachedStatement rollbackStmt;
7124 CachedStatement beginStmt;
7125 if (aNeedsCheckpoint || freelistCount) {
7126 QM_TRY_UNWRAP(rollbackStmt, GetCachedStatement("ROLLBACK;"_ns), QM_VOID)auto tryResult909 = (GetCachedStatement("ROLLBACK;"_ns)); if (
(__builtin_expect(!!(tryResult909.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult909.unwrapErr(); mozilla
::dom::quota::HandleError("GetCachedStatement(\"ROLLBACK;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7126, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } rollbackStmt = tryResult909.unwrap();
;
7127 QM_TRY_UNWRAP(beginStmt, GetCachedStatement("BEGIN;"_ns), QM_VOID)auto tryResult910 = (GetCachedStatement("BEGIN;"_ns)); if ((__builtin_expect
(!!(tryResult910.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult910.unwrapErr(); mozilla::dom::quota
::HandleError("GetCachedStatement(\"BEGIN;\"_ns)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7127,
mozilla::dom::quota::Severity::Error); constexpr const auto&
func __attribute__((__unused__)) = __func__; return ; } beginStmt
= tryResult910.unwrap();
;
7128
7129 // Release the connection's normal transaction. It's possible that it could
7130 // fail, but that isn't a problem here.
7131 Unused << rollbackStmt.Borrow()->Execute();
7132
7133 mInReadTransaction = false;
7134 }
7135
7136 const bool freedSomePages =
7137 freelistCount && [this, &freelistStmt, &rollbackStmt, freelistCount,
7138 aNeedsCheckpoint, &aInterrupted] {
7139 // Warn in case of an error, but do not propagate it. Just indicate we
7140 // didn't free any pages.
7141 QM_TRY_INSPECT(auto tryResult911 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult911.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult911.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7145, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult911.
inspect();
7142 const bool& res,auto tryResult911 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult911.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult911.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7145, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult911.
inspect();
7143 ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount,auto tryResult911 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult911.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult911.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7145, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult911.
inspect();
7144 aNeedsCheckpoint, aInterrupted),auto tryResult911 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult911.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult911.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7145, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult911.
inspect();
7145 false)auto tryResult911 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult911.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult911.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7145, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, false); } const bool& res = tryResult911.
inspect();
;
7146
7147 // Make sure we didn't leave a transaction running.
7148 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7148)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 7148); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7149 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7149)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7149); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7150
7151 return res;
7152 }();
7153
7154 // Truncate the WAL if we were asked to or if we managed to free some space.
7155 if (aNeedsCheckpoint || freedSomePages) {
7156 QM_WARNONLY_TRY(QM_TO_RESULT(CheckpointInternal(CheckpointMode::Truncate))){auto tryResult912 = (ToResult<QMResult>(CheckpointInternal
(CheckpointMode::Truncate))); static_assert(std::is_empty_v<
typename decltype(tryResult912)::ok_type>); if ((__builtin_expect
(!!(tryResult912.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(CheckpointInternal(CheckpointMode::Truncate))"
, tryResult912.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7156, mozilla::dom::quota::Severity::Warning); }}
;
7157 }
7158
7159 // Finally try to restart the read transaction if we rolled it back earlier.
7160 if (beginStmt) {
7161 QM_WARNONLY_TRY({auto tryResult913 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult913
)::ok_type>); if ((__builtin_expect(!!(tryResult913.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult913.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7166, mozilla::dom::quota::Severity::Warning); }}
7162 MOZ_TO_RESULT(beginStmt.Borrow()->Execute()){auto tryResult913 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult913
)::ok_type>); if ((__builtin_expect(!!(tryResult913.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult913.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7166, mozilla::dom::quota::Severity::Warning); }}
7163 .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> {{auto tryResult913 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult913
)::ok_type>); if ((__builtin_expect(!!(tryResult913.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult913.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7166, mozilla::dom::quota::Severity::Warning); }}
7164 self.mInReadTransaction = true;{auto tryResult913 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult913
)::ok_type>); if ((__builtin_expect(!!(tryResult913.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult913.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7166, mozilla::dom::quota::Severity::Warning); }}
7165 return Ok{};{auto tryResult913 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult913
)::ok_type>); if ((__builtin_expect(!!(tryResult913.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult913.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7166, mozilla::dom::quota::Severity::Warning); }}
7166 })){auto tryResult913 = (ToResult(beginStmt.Borrow()->Execute
()) .andThen([&self = *this](const Ok) -> Result<Ok
, nsresult> { self.mInReadTransaction = true; return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult913
)::ok_type>); if ((__builtin_expect(!!(tryResult913.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult913.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7166, mozilla::dom::quota::Severity::Warning); }}
;
7167 }
7168}
7169
7170Result<bool, nsresult> DatabaseConnection::ReclaimFreePagesWhileIdle(
7171 CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement,
7172 uint32_t aFreelistCount, bool aNeedsCheckpoint,
7173 const Atomic<bool>& aInterrupted) {
7174 AssertIsOnConnectionThread();
7175 MOZ_ASSERT(aFreelistStatement)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aFreelistStatement)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aFreelistStatement))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aFreelistStatement"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7175)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistStatement"
")"); do { MOZ_CrashSequence(__null, 7175); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7176 MOZ_ASSERT(aRollbackStatement)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aRollbackStatement)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aRollbackStatement))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aRollbackStatement"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7176)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRollbackStatement"
")"); do { MOZ_CrashSequence(__null, 7176); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7177 MOZ_ASSERT(aFreelistCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aFreelistCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aFreelistCount))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aFreelistCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7177)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistCount" ")"
); do { MOZ_CrashSequence(__null, 7177); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7178 MOZ_ASSERT(!mInReadTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInReadTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInReadTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mInReadTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7178)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { MOZ_CrashSequence(__null, 7178); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7179 MOZ_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7179)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7179); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7180
7181 AUTO_PROFILER_LABEL("DatabaseConnection::ReclaimFreePagesWhileIdle", DOM)mozilla::AutoProfilerLabel raiiObject7181( "DatabaseConnection::ReclaimFreePagesWhileIdle"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7182
7183 uint32_t pauseOnConnectionThreadMs = StaticPrefs::
7184 dom_indexedDB_connectionIdleMaintenance_pauseOnConnectionThreadMs();
7185 if (pauseOnConnectionThreadMs > 0) {
7186 PR_Sleep(PR_MillisecondsToInterval(pauseOnConnectionThreadMs));
7187 }
7188
7189 // Make sure we don't keep working if anything else needs this thread.
7190 if (aInterrupted) {
7191 return false;
7192 }
7193
7194 // Make all the statements we'll need up front.
7195
7196 // Only try to free 10% at a time so that we can bail out if this connection
7197 // suddenly becomes active or if the thread is needed otherwise.
7198 QM_TRY_INSPECT(auto tryResult914 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult914.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7203, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult914
.inspect();
7199 const auto& incrementalVacuumStmt,auto tryResult914 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult914.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7203, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult914
.inspect();
7200 GetCachedStatement(auto tryResult914 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult914.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7203, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult914
.inspect();
7201 "PRAGMA incremental_vacuum("_ns +auto tryResult914 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult914.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7203, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult914
.inspect();
7202 IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) +auto tryResult914 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult914.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7203, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult914
.inspect();
7203 ");"_ns))auto tryResult914 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult914.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7203, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult914
.inspect();
;
7204
7205 QM_TRY_INSPECT(const auto& beginImmediateStmt,auto tryResult915 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult915.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult915.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Error); return tryResult915
.propagateErr(); } const auto& beginImmediateStmt = tryResult915
.inspect();
7206 GetCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult915 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult915.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult915.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7206, mozilla::dom::quota::Severity::Error); return tryResult915
.propagateErr(); } const auto& beginImmediateStmt = tryResult915
.inspect();
;
7207
7208 QM_TRY_INSPECT(const auto& commitStmt, GetCachedStatement("COMMIT;"_ns))auto tryResult916 = (GetCachedStatement("COMMIT;"_ns)); if ((
__builtin_expect(!!(tryResult916.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetCachedStatement(\"COMMIT;\"_ns)", tryResult916
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7208, mozilla::dom::quota::Severity::Error); return tryResult916
.propagateErr(); } const auto& commitStmt = tryResult916.
inspect();
;
7209
7210 if (aNeedsCheckpoint) {
7211 // Freeing pages is a journaled operation, so it will require additional WAL
7212 // space. However, we're idle and are about to checkpoint anyway, so doing a
7213 // RESTART checkpoint here should allow us to reuse any existing space.
7214 QM_TRY(MOZ_TO_RESULT(CheckpointInternal(CheckpointMode::Restart))){auto tryResult917 = (ToResult(CheckpointInternal(CheckpointMode
::Restart))); static_assert(std::is_empty_v<typename decltype
(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(CheckpointInternal(CheckpointMode::Restart))"
, tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7214, mozilla::dom::quota::Severity::Error); return tryResult917
.propagateErr(); }}
;
7215 }
7216
7217 // Start the write transaction.
7218 QM_TRY(MOZ_TO_RESULT(beginImmediateStmt.Borrow()->Execute())){auto tryResult918 = (ToResult(beginImmediateStmt.Borrow()->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginImmediateStmt.Borrow()->Execute())"
, tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7218, mozilla::dom::quota::Severity::Error); return tryResult918
.propagateErr(); }}
;
7219
7220 mInWriteTransaction = true;
7221
7222 bool freedSomePages = false;
7223
7224 const auto rollback = [&aRollbackStatement, this](const auto&) {
7225 MOZ_ASSERT(mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInWriteTransaction))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7225)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7225); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7226
7227 // Something failed, make sure we roll everything back.
7228 Unused << aRollbackStatement.Borrow()->Execute();
7229
7230 // XXX Is rollback infallible? Shouldn't we check the result?
7231
7232 mInWriteTransaction = false;
7233 };
7234
7235 uint64_t previousFreelistCount = (uint64_t)aFreelistCount + 1;
7236
7237 QM_TRY(CollectWhile({auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7238 [&aFreelistCount, &previousFreelistCount,{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7239 &aInterrupted]() -> Result<bool, nsresult> {{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7240 if (aInterrupted) {{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7241 // On interrupt, abort and roll back this transaction. It's ok{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7242 // if we never make progress here because the idle service{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7243 // should eventually reclaim this space.{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7244 return false;{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7245 }{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7246 // If we were not able to free anything, we might either see{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7247 // a DB that has no auto-vacuum support at all or some other{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7248 // (hopefully temporary) condition that prevents vacuum from{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7249 // working. Just carry on in non-DEBUG.{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7250 bool madeProgress = previousFreelistCount != aFreelistCount;{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7251 previousFreelistCount = aFreelistCount;{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7252 MOZ_ASSERT(madeProgress);{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7253 QM_WARNONLY_TRY(MOZ_TO_RESULT(madeProgress));{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7254 return madeProgress && (aFreelistCount != 0);{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7255 },{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7256 [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt,{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7257 &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> {{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7258 QM_TRY(MOZ_TO_RESULT(incrementalVacuumStmt.Borrow()->Execute()));{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7259
7260 freedSomePages = true;{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7261
7262 QM_TRY_UNWRAP(aFreelistCount,{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7263 GetFreelistCount(aFreelistStatement));{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7264
7265 return Ok{};{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7266 }){auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7267 .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback,{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7268 this](Ok) -> Result<Ok, nsresult> {{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7269 if (aInterrupted) {{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7270 rollback(Ok{});{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7271 freedSomePages = false;{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7272 }{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7273
7274 if (freedSomePages) {{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7275 // Commit the write transaction.{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7276 QM_TRY(MOZ_TO_RESULT(commitStmt.Borrow()->Execute()),{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7277 QM_PROPAGATE,{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7278 [](const auto&) { NS_WARNING("Failed to commit!"); });{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7279
7280 mInWriteTransaction = false;{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7281 }{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7282
7283 return Ok{};{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7284 }),{auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
7285 QM_PROPAGATE, rollback){auto tryResult923 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(madeProgress)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult919
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult919)::ok_type>); if ((__builtin_expect
(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult919.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult920)::ok_type>
); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7258, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); }}; freedSomePages = true; auto tryResult921
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult921.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7263
, mozilla::dom::quota::Severity::Error); return tryResult921.
propagateErr(); } aFreelistCount = tryResult921.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt
.Borrow()->Execute())); static_assert(std::is_empty_v<typename
decltype(tryResult922)::ok_type>); if ((__builtin_expect(
!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7278, mozilla::dom::quota::Severity::Error); [](const auto&
) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7278)
; }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(commitStmt.Borrow()->Execute())", tryTempError
, Err(tryTempError)); }}; mInWriteTransaction = false; } return
Ok{}; })); static_assert(std::is_empty_v<typename decltype
(tryResult923)::ok_type>); if ((__builtin_expect(!!(tryResult923
.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(
); mozilla::dom::quota::HandleError("CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7285, mozilla::dom::quota::Severity::Error); rollback(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "CollectWhile( [&aFreelistCount, &previousFreelistCount, &aInterrupted]() -> Result<bool, nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType<decltype(madeProgress)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"madeProgress\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7252); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7252); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult919 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult919.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7253, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult920 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult920.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7258, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); }}; freedSomePages = true; auto tryResult921 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult921.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult921.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7263, mozilla::dom::quota::Severity::Error); return tryResult921.propagateErr(); } aFreelistCount = tryResult921.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult922 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922.isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7278); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })"
, tryTempError, Err(tryTempError)); }}
;
7286
7287 return freedSomePages;
7288}
7289
7290Result<uint32_t, nsresult> DatabaseConnection::GetFreelistCount(
7291 CachedStatement& aCachedStatement) {
7292 AssertIsOnConnectionThread();
7293
7294 AUTO_PROFILER_LABEL("DatabaseConnection::GetFreelistCount", DOM)mozilla::AutoProfilerLabel raiiObject7294( "DatabaseConnection::GetFreelistCount"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7295
7296 if (!aCachedStatement) {
7297 QM_TRY_UNWRAP(aCachedStatement,auto tryResult924 = (GetCachedStatement("PRAGMA freelist_count;"_ns
)); if ((__builtin_expect(!!(tryResult924.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)"
, tryResult924.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7298, mozilla::dom::quota::Severity::Error); return tryResult924
.propagateErr(); } aCachedStatement = tryResult924.unwrap();
7298 GetCachedStatement("PRAGMA freelist_count;"_ns))auto tryResult924 = (GetCachedStatement("PRAGMA freelist_count;"_ns
)); if ((__builtin_expect(!!(tryResult924.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)"
, tryResult924.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7298, mozilla::dom::quota::Severity::Error); return tryResult924
.propagateErr(); } aCachedStatement = tryResult924.unwrap();
;
7299 }
7300
7301 const auto borrowedStatement = aCachedStatement.Borrow();
7302
7303 QM_TRY_UNWRAP(const DebugOnly<bool> hasResult,auto tryResult925 = (::mozilla::ToResultInvokeMember( (&*
borrowedStatement), &::mozilla::detail::DerefedType<decltype
(&*borrowedStatement)>::ExecuteStep)); if ((__builtin_expect
(!!(tryResult925.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep)"
, tryResult925.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7304, mozilla::dom::quota::Severity::Error); return tryResult925
.propagateErr(); } const DebugOnly<bool> hasResult = tryResult925
.unwrap();
7304 MOZ_TO_RESULT_INVOKE_MEMBER(&*borrowedStatement, ExecuteStep))auto tryResult925 = (::mozilla::ToResultInvokeMember( (&*
borrowedStatement), &::mozilla::detail::DerefedType<decltype
(&*borrowedStatement)>::ExecuteStep)); if ((__builtin_expect
(!!(tryResult925.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep)"
, tryResult925.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7304, mozilla::dom::quota::Severity::Error); return tryResult925
.propagateErr(); } const DebugOnly<bool> hasResult = tryResult925
.unwrap();
;
7305
7306 MOZ_ASSERT(hasResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(hasResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(hasResult))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7306); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasResult" ")"
); do { MOZ_CrashSequence(__null, 7306); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7307
7308 QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult926 = (::mozilla::ToResultInvokeMember( (*borrowedStatement
), &::mozilla::detail::DerefedType<decltype(*borrowedStatement
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult926.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32, 0)"
, tryResult926.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7309, mozilla::dom::quota::Severity::Error); return tryResult926
.propagateErr(); } const int32_t& freelistCount = tryResult926
.inspect();
7309 MOZ_TO_RESULT_INVOKE_MEMBER(*borrowedStatement, GetInt32, 0))auto tryResult926 = (::mozilla::ToResultInvokeMember( (*borrowedStatement
), &::mozilla::detail::DerefedType<decltype(*borrowedStatement
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult926.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32, 0)"
, tryResult926.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7309, mozilla::dom::quota::Severity::Error); return tryResult926
.propagateErr(); } const int32_t& freelistCount = tryResult926
.inspect();
;
7310
7311 MOZ_ASSERT(freelistCount >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(freelistCount >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(freelistCount >= 0))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("freelistCount >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7311)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0"
")"); do { MOZ_CrashSequence(__null, 7311); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7312
7313 return uint32_t(freelistCount);
7314}
7315
7316void DatabaseConnection::Close() {
7317 AssertIsOnConnectionThread();
7318 MOZ_ASSERT(!mDEBUGSavepointCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDEBUGSavepointCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDEBUGSavepointCount))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGSavepointCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7318)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount"
")"); do { MOZ_CrashSequence(__null, 7318); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7319 MOZ_DIAGNOSTIC_ASSERT(!mInWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInWriteTransaction))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mInWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7319)
; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 7319); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7320
7321 AUTO_PROFILER_LABEL("DatabaseConnection::Close", DOM)mozilla::AutoProfilerLabel raiiObject7321( "DatabaseConnection::Close"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7322
7323 if (mUpdateRefcountFunction) {
7324 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(MutableStorageConnection().RemoveFunction("update_refcount"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7325)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
")"); do { MOZ_CrashSequence(__null, 7325); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
7325 MutableStorageConnection().RemoveFunction("update_refcount"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(MutableStorageConnection().RemoveFunction("update_refcount"_ns
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7325)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
")"); do { MOZ_CrashSequence(__null, 7325); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
7326 mUpdateRefcountFunction = nullptr;
7327 }
7328
7329 CachingDatabaseConnection::Close();
7330
7331 mFileManager.destroy();
7332}
7333
7334nsresult DatabaseConnection::DisableQuotaChecks() {
7335 AssertIsOnConnectionThread();
7336 MOZ_ASSERT(HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasStorageConnection())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasStorageConnection()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7336)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 7336); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7337
7338 if (!mQuotaObject) {
7339 MOZ_ASSERT(!mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mJournalQuotaObject)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mJournalQuotaObject))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mJournalQuotaObject"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7339)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject"
")"); do { MOZ_CrashSequence(__null, 7339); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7340
7341 QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().GetQuotaObjects({auto tryResult927 = (ToResult(MutableStorageConnection().GetQuotaObjects
( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject
)))); static_assert(std::is_empty_v<typename decltype(tryResult927
)::ok_type>); if ((__builtin_expect(!!(tryResult927.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))"
, tryResult927.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7342, mozilla::dom::quota::Severity::Error); return tryResult927
.propagateErr(); }}
7342 getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))){auto tryResult927 = (ToResult(MutableStorageConnection().GetQuotaObjects
( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject
)))); static_assert(std::is_empty_v<typename decltype(tryResult927
)::ok_type>); if ((__builtin_expect(!!(tryResult927.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))"
, tryResult927.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7342, mozilla::dom::quota::Severity::Error); return tryResult927
.propagateErr(); }}
;
7343
7344 MOZ_ASSERT(mQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mQuotaObject)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mQuotaObject))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mQuotaObject", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7344); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaObject"
")"); do { MOZ_CrashSequence(__null, 7344); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7345 MOZ_ASSERT(mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mJournalQuotaObject)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mJournalQuotaObject))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mJournalQuotaObject"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7345)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject"
")"); do { MOZ_CrashSequence(__null, 7345); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7346 }
7347
7348 mQuotaObject->DisableQuotaCheck();
7349 mJournalQuotaObject->DisableQuotaCheck();
7350
7351 return NS_OK;
7352}
7353
7354void DatabaseConnection::EnableQuotaChecks() {
7355 AssertIsOnConnectionThread();
7356 if (!mQuotaObject) {
7357 MOZ_ASSERT(!mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mJournalQuotaObject)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mJournalQuotaObject))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mJournalQuotaObject"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7357)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject"
")"); do { MOZ_CrashSequence(__null, 7357); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7358
7359 // DisableQuotaChecks failed earlier, so we don't need to enable quota
7360 // checks again.
7361 return;
7362 }
7363
7364 MOZ_ASSERT(mJournalQuotaObject)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mJournalQuotaObject)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mJournalQuotaObject))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mJournalQuotaObject"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7364)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject"
")"); do { MOZ_CrashSequence(__null, 7364); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7365
7366 const RefPtr<QuotaObject> quotaObject = std::move(mQuotaObject);
7367 const RefPtr<QuotaObject> journalQuotaObject = std::move(mJournalQuotaObject);
7368
7369 quotaObject->EnableQuotaCheck();
7370 journalQuotaObject->EnableQuotaCheck();
7371
7372 QM_TRY_INSPECT(const int64_t& fileSize, GetFileSize(quotaObject->Path()),auto tryResult928 = (GetFileSize(quotaObject->Path())); if
((__builtin_expect(!!(tryResult928.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult928.unwrapErr(); mozilla
::dom::quota::HandleError("GetFileSize(quotaObject->Path())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7373, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& fileSize = tryResult928.inspect();
7373 QM_VOID)auto tryResult928 = (GetFileSize(quotaObject->Path())); if
((__builtin_expect(!!(tryResult928.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult928.unwrapErr(); mozilla
::dom::quota::HandleError("GetFileSize(quotaObject->Path())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7373, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& fileSize = tryResult928.inspect();
;
7374 QM_TRY_INSPECT(const int64_t& journalFileSize,auto tryResult929 = (GetFileSize(journalQuotaObject->Path(
))); if ((__builtin_expect(!!(tryResult929.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult929.unwrapErr
(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7375, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& journalFileSize = tryResult929.inspect
();
7375 GetFileSize(journalQuotaObject->Path()), QM_VOID)auto tryResult929 = (GetFileSize(journalQuotaObject->Path(
))); if ((__builtin_expect(!!(tryResult929.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult929.unwrapErr
(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7375, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& journalFileSize = tryResult929.inspect
();
;
7376
7377 DebugOnly<bool> result = journalQuotaObject->MaybeUpdateSize(
7378 journalFileSize, /* aTruncate */ true);
7379 MOZ_ASSERT(result)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(result)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(result))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("result", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7379); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")"
); do { MOZ_CrashSequence(__null, 7379); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7380
7381 result = quotaObject->MaybeUpdateSize(fileSize, /* aTruncate */ true);
7382 MOZ_ASSERT(result)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(result)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(result))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("result", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7382); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")"
); do { MOZ_CrashSequence(__null, 7382); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7383}
7384
7385Result<int64_t, nsresult> DatabaseConnection::GetFileSize(
7386 const nsAString& aPath) {
7387 MOZ_ASSERT(!aPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aPath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aPath.IsEmpty()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!aPath.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7387)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()" ")"
); do { MOZ_CrashSequence(__null, 7387); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7388
7389 QM_TRY_INSPECT(const auto& file, QM_NewLocalFile(aPath))auto tryResult930 = (QM_NewLocalFile(aPath)); if ((__builtin_expect
(!!(tryResult930.isErr()), 0))) { mozilla::dom::quota::HandleError
("QM_NewLocalFile(aPath)", tryResult930.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7389, mozilla::dom::quota::Severity::Error); return tryResult930
.propagateErr(); } const auto& file = tryResult930.inspect
();
;
7390 QM_TRY_INSPECT(const bool& exists, MOZ_TO_RESULT_INVOKE_MEMBER(file, Exists))auto tryResult931 = (::mozilla::ToResultInvokeMember( (file),
&::mozilla::detail::DerefedType<decltype(file)>::Exists
)); if ((__builtin_expect(!!(tryResult931.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::Exists)"
, tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7390, mozilla::dom::quota::Severity::Error); return tryResult931
.propagateErr(); } const bool& exists = tryResult931.inspect
();
;
7391
7392 if (exists) {
7393 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize)){auto tryResult932 = (::mozilla::ToResultInvokeMember( (file)
, &::mozilla::detail::DerefedType<decltype(file)>::
GetFileSize)); if ((__builtin_expect(!!(tryResult932.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize)"
, tryResult932.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7393, mozilla::dom::quota::Severity::Error); } return tryResult932
;}
;
7394 }
7395
7396 return 0;
7397}
7398
7399DatabaseConnection::AutoSavepoint::AutoSavepoint()
7400 : mConnection(nullptr)
7401#ifdef DEBUG1
7402 ,
7403 mDEBUGTransaction(nullptr)
7404#endif
7405{
7406 MOZ_COUNT_CTOR(DatabaseConnection::AutoSavepoint)do { static_assert(std::is_class_v<DatabaseConnection::AutoSavepoint
>, "Token '" "DatabaseConnection::AutoSavepoint" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, DatabaseConnection
::AutoSavepoint>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseConnection::AutoSavepoint"
, sizeof(*this)); } while (0)
;
7407}
7408
7409DatabaseConnection::AutoSavepoint::~AutoSavepoint() {
7410 MOZ_COUNT_DTOR(DatabaseConnection::AutoSavepoint)do { static_assert(std::is_class_v<DatabaseConnection::AutoSavepoint
>, "Token '" "DatabaseConnection::AutoSavepoint" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, DatabaseConnection
::AutoSavepoint>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseConnection::AutoSavepoint"
, sizeof(*this)); } while (0)
;
7411
7412 if (mConnection) {
7413 mConnection->AssertIsOnConnectionThread();
7414 MOZ_ASSERT(mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7414)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction"
")"); do { MOZ_CrashSequence(__null, 7414); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7415 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode
::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode
() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->
GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::VersionChange))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7419)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7419); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7416 mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode
::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode
() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->
GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::VersionChange))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7419)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7419); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7417 mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode
::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode
() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->
GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::VersionChange))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7419)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7419); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7418 mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode
::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode
() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->
GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::VersionChange))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7419)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7419); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7419 mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction->GetMode() == IDBTransaction::Mode
::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction->GetMode
() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->
GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction
->GetMode() == IDBTransaction::Mode::VersionChange))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7419)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mDEBUGTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7419); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7420
7421 QM_WARNONLY_TRY(QM_TO_RESULT(mConnection->RollbackSavepoint())){auto tryResult933 = (ToResult<QMResult>(mConnection->
RollbackSavepoint())); static_assert(std::is_empty_v<typename
decltype(tryResult933)::ok_type>); if ((__builtin_expect(
!!(tryResult933.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(mConnection->RollbackSavepoint())"
, tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7421, mozilla::dom::quota::Severity::Warning); }}
;
7422 }
7423}
7424
7425nsresult DatabaseConnection::AutoSavepoint::Start(
7426 const TransactionBase& aTransaction) {
7427 MOZ_ASSERT(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7430)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7430); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7428 aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7430)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7430); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7429 aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7430)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7430); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7430 aTransaction.GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite
|| aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush
|| aTransaction.GetMode() == IDBTransaction::Mode::Cleanup ||
aTransaction.GetMode() == IDBTransaction::Mode::VersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7430)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransaction.GetMode() == IDBTransaction::Mode::ReadWrite || aTransaction.GetMode() == IDBTransaction::Mode::ReadWriteFlush || aTransaction.GetMode() == IDBTransaction::Mode::Cleanup || aTransaction.GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 7430); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7431
7432 DatabaseConnection* connection = aTransaction.GetDatabase().GetConnection();
7433 MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("connection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7433); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { MOZ_CrashSequence(__null, 7433); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7434 connection->AssertIsOnConnectionThread();
7435
7436 // The previous operation failed to begin a write transaction and the
7437 // following opertion jumped to the connection thread before the previous
7438 // operation has updated its failure to the transaction.
7439 if (!connection->GetUpdateRefcountFunction()) {
7440 NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation "
"failed!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7442)
7441 "The connection was closed because the previous operation "NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation "
"failed!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7442)
7442 "failed!")NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation "
"failed!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7442)
;
7443 return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
7444 }
7445
7446 MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7446); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { MOZ_CrashSequence(__null, 7446); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7447 MOZ_ASSERT(!mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDEBUGTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDEBUGTransaction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7447)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGTransaction"
")"); do { MOZ_CrashSequence(__null, 7447); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7448
7449 QM_TRY(MOZ_TO_RESULT(connection->StartSavepoint())){auto tryResult934 = (ToResult(connection->StartSavepoint(
))); static_assert(std::is_empty_v<typename decltype(tryResult934
)::ok_type>); if ((__builtin_expect(!!(tryResult934.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->StartSavepoint())"
, tryResult934.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7449, mozilla::dom::quota::Severity::Error); return tryResult934
.propagateErr(); }}
;
7450
7451 mConnection = connection;
7452#ifdef DEBUG1
7453 mDEBUGTransaction = &aTransaction;
7454#endif
7455
7456 return NS_OK;
7457}
7458
7459nsresult DatabaseConnection::AutoSavepoint::Commit() {
7460 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7460); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7461 mConnection->AssertIsOnConnectionThread();
7462 MOZ_ASSERT(mDEBUGTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGTransaction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mDEBUGTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7462)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction"
")"); do { MOZ_CrashSequence(__null, 7462); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7463
7464 QM_TRY(MOZ_TO_RESULT(mConnection->ReleaseSavepoint())){auto tryResult935 = (ToResult(mConnection->ReleaseSavepoint
())); static_assert(std::is_empty_v<typename decltype(tryResult935
)::ok_type>); if ((__builtin_expect(!!(tryResult935.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(mConnection->ReleaseSavepoint())"
, tryResult935.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7464, mozilla::dom::quota::Severity::Error); return tryResult935
.propagateErr(); }}
;
7465
7466 mConnection = nullptr;
7467#ifdef DEBUG1
7468 mDEBUGTransaction = nullptr;
7469#endif
7470
7471 return NS_OK;
7472}
7473
7474DatabaseConnection::UpdateRefcountFunction::UpdateRefcountFunction(
7475 DatabaseConnection* const aConnection, DatabaseFileManager& aFileManager)
7476 : mConnection(aConnection),
7477 mFileManager(aFileManager),
7478 mInSavepoint(false) {
7479 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7479); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 7479); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7480 aConnection->AssertIsOnConnectionThread();
7481}
7482
7483nsresult DatabaseConnection::UpdateRefcountFunction::WillCommit() {
7484 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7484); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7484); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7485 mConnection->AssertIsOnConnectionThread();
7486 MOZ_ASSERT(mConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection->HasStorageConnection())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mConnection->HasStorageConnection()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mConnection->HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7486)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection->HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 7486); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7487
7488 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::WillCommit",mozilla::AutoProfilerLabel raiiObject7489( "DatabaseConnection::UpdateRefcountFunction::WillCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
7489 DOM)mozilla::AutoProfilerLabel raiiObject7489( "DatabaseConnection::UpdateRefcountFunction::WillCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7490
7491 // The parameter names are not used, parameters are bound by index
7492 // only locally in the same function.
7493 auto update =
7494 [updateStatement = LazyStatement{*mConnection,
7495 "UPDATE file "
7496 "SET refcount = refcount + :delta "
7497 "WHERE id = :id"_ns},
7498 selectStatement = LazyStatement{*mConnection,
7499 "SELECT id "
7500 "FROM file "
7501 "WHERE id = :id"_ns},
7502 insertStatement =
7503 LazyStatement{
7504 *mConnection,
7505 "INSERT INTO file (id, refcount) VALUES(:id, :delta)"_ns},
7506 this](int64_t aId, int32_t aDelta) mutable -> Result<Ok, nsresult> {
7507 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7508( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update"
, nullptr, JS::ProfilingCategoryPair::DOM)
7508 "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update", DOM)mozilla::AutoProfilerLabel raiiObject7508( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7509 {
7510 QM_TRY_INSPECT(const auto& borrowedUpdateStatement,auto tryResult936 = (updateStatement.Borrow()); if ((__builtin_expect
(!!(tryResult936.isErr()), 0))) { mozilla::dom::quota::HandleError
("updateStatement.Borrow()", tryResult936.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7511, mozilla::dom::quota::Severity::Error); return tryResult936
.propagateErr(); } const auto& borrowedUpdateStatement = tryResult936
.inspect();
7511 updateStatement.Borrow())auto tryResult936 = (updateStatement.Borrow()); if ((__builtin_expect
(!!(tryResult936.isErr()), 0))) { mozilla::dom::quota::HandleError
("updateStatement.Borrow()", tryResult936.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7511, mozilla::dom::quota::Severity::Error); return tryResult936
.propagateErr(); } const auto& borrowedUpdateStatement = tryResult936
.inspect();
;
7512
7513 QM_TRY({auto tryResult937 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex
(0, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult937)::ok_type>); if ((__builtin_expect(!!(tryResult937
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))"
, tryResult937.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7514, mozilla::dom::quota::Severity::Error); return tryResult937
.propagateErr(); }}
7514 MOZ_TO_RESULT(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))){auto tryResult937 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex
(0, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult937)::ok_type>); if ((__builtin_expect(!!(tryResult937
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))"
, tryResult937.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7514, mozilla::dom::quota::Severity::Error); return tryResult937
.propagateErr(); }}
;
7515 QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->BindInt64ByIndex(1, aId))){auto tryResult938 = (ToResult(borrowedUpdateStatement->BindInt64ByIndex
(1, aId))); static_assert(std::is_empty_v<typename decltype
(tryResult938)::ok_type>); if ((__builtin_expect(!!(tryResult938
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt64ByIndex(1, aId))"
, tryResult938.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7515, mozilla::dom::quota::Severity::Error); return tryResult938
.propagateErr(); }}
;
7516 QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->Execute())){auto tryResult939 = (ToResult(borrowedUpdateStatement->Execute
())); static_assert(std::is_empty_v<typename decltype(tryResult939
)::ok_type>); if ((__builtin_expect(!!(tryResult939.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->Execute())"
, tryResult939.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7516, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); }}
;
7517 }
7518
7519 QM_TRY_INSPECT(auto tryResult940 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult940.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult940.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7522, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const int32_t& rows = tryResult940.inspect
();
7520 const int32_t& rows,auto tryResult940 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult940.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult940.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7522, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const int32_t& rows = tryResult940.inspect
();
7521 MOZ_TO_RESULT_INVOKE_MEMBER(mConnection->MutableStorageConnection(),auto tryResult940 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult940.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult940.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7522, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const int32_t& rows = tryResult940.inspect
();
7522 GetAffectedRows))auto tryResult940 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult940.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult940.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7522, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); } const int32_t& rows = tryResult940.inspect
();
;
7523
7524 if (rows > 0) {
7525 QM_TRY_INSPECT(auto tryResult942 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult941)::ok_type>
); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult941.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7530, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult941.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7530, mozilla::dom::quota::Severity::Error); return tryResult941.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7533, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); } const bool& hasResult = tryResult942.inspect
();
7526 const bool& hasResult,auto tryResult942 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult941)::ok_type>
); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult941.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7530, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult941.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7530, mozilla::dom::quota::Severity::Error); return tryResult941.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7533, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); } const bool& hasResult = tryResult942.inspect
();
7527 selectStatementauto tryResult942 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult941)::ok_type>
); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult941.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7530, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult941.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7530, mozilla::dom::quota::Severity::Error); return tryResult941.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7533, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); } const bool& hasResult = tryResult942.inspect
();
7528 .BorrowAndExecuteSingleStep(auto tryResult942 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult941)::ok_type>
); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult941.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7530, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult941.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7530, mozilla::dom::quota::Severity::Error); return tryResult941.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7533, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); } const bool& hasResult = tryResult942.inspect
();
7529 [aId](auto& stmt) -> Result<Ok, nsresult> {auto tryResult942 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult941)::ok_type>
); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult941.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7530, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult941.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7530, mozilla::dom::quota::Severity::Error); return tryResult941.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7533, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); } const bool& hasResult = tryResult942.inspect
();
7530 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, aId)));auto tryResult942 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult941)::ok_type>
); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult941.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7530, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult941.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7530, mozilla::dom::quota::Severity::Error); return tryResult941.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7533, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); } const bool& hasResult = tryResult942.inspect
();
7531 return Ok{};auto tryResult942 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult941)::ok_type>
); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult941.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7530, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult941.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7530, mozilla::dom::quota::Severity::Error); return tryResult941.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7533, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); } const bool& hasResult = tryResult942.inspect
();
7532 })auto tryResult942 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult941)::ok_type>
); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult941.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7530, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult941.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7530, mozilla::dom::quota::Severity::Error); return tryResult941.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7533, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); } const bool& hasResult = tryResult942.inspect
();
7533 .map(IsSome))auto tryResult942 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult941)::ok_type>
); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult941.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7530, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult941 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult941)::ok_type>); if ((__builtin_expect(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult941.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7530, mozilla::dom::quota::Severity::Error); return tryResult941.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult942.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7533, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); } const bool& hasResult = tryResult942.inspect
();
;
7534
7535 if (!hasResult) {
7536 // Don't have to create the journal here, we can create all at once,
7537 // just before commit
7538 mJournalsToCreateBeforeCommit.AppendElement(aId);
7539 }
7540
7541 return Ok{};
7542 }
7543
7544 QM_TRY_INSPECT(const auto& borrowedInsertStatement,auto tryResult943 = (insertStatement.Borrow()); if ((__builtin_expect
(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError
("insertStatement.Borrow()", tryResult943.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7545, mozilla::dom::quota::Severity::Error); return tryResult943
.propagateErr(); } const auto& borrowedInsertStatement = tryResult943
.inspect();
7545 insertStatement.Borrow())auto tryResult943 = (insertStatement.Borrow()); if ((__builtin_expect
(!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError
("insertStatement.Borrow()", tryResult943.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7545, mozilla::dom::quota::Severity::Error); return tryResult943
.propagateErr(); } const auto& borrowedInsertStatement = tryResult943
.inspect();
;
7546
7547 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt64ByIndex(0, aId))){auto tryResult944 = (ToResult(borrowedInsertStatement->BindInt64ByIndex
(0, aId))); static_assert(std::is_empty_v<typename decltype
(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt64ByIndex(0, aId))"
, tryResult944.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7547, mozilla::dom::quota::Severity::Error); return tryResult944
.propagateErr(); }}
;
7548 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))){auto tryResult945 = (ToResult(borrowedInsertStatement->BindInt32ByIndex
(1, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult945)::ok_type>); if ((__builtin_expect(!!(tryResult945
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))"
, tryResult945.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7548, mozilla::dom::quota::Severity::Error); return tryResult945
.propagateErr(); }}
;
7549 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->Execute())){auto tryResult946 = (ToResult(borrowedInsertStatement->Execute
())); static_assert(std::is_empty_v<typename decltype(tryResult946
)::ok_type>); if ((__builtin_expect(!!(tryResult946.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->Execute())"
, tryResult946.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7549, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}
;
7550
7551 mJournalsToRemoveAfterCommit.AppendElement(aId);
7552
7553 return Ok{};
7554 };
7555
7556 QM_TRY(CollectEachInRange({auto tryResult948 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult947)::ok_type>
); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult947
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7560, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult948)::ok_type>); if ((__builtin_expect
(!!(tryResult948.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult947.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7560, mozilla::dom::quota::Severity::Error); return tryResult947.propagateErr(); }}; } return Ok{}; })"
, tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7564, mozilla::dom::quota::Severity::Error); return tryResult948
.propagateErr(); }}
7557 mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> {{auto tryResult948 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult947)::ok_type>
); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult947
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7560, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult948)::ok_type>); if ((__builtin_expect
(!!(tryResult948.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult947.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7560, mozilla::dom::quota::Severity::Error); return tryResult947.propagateErr(); }}; } return Ok{}; })"
, tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7564, mozilla::dom::quota::Severity::Error); return tryResult948
.propagateErr(); }}
7558 const auto delta = entry.GetData()->Delta();{auto tryResult948 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult947)::ok_type>
); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult947
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7560, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult948)::ok_type>); if ((__builtin_expect
(!!(tryResult948.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult947.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7560, mozilla::dom::quota::Severity::Error); return tryResult947.propagateErr(); }}; } return Ok{}; })"
, tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7564, mozilla::dom::quota::Severity::Error); return tryResult948
.propagateErr(); }}
7559 if (delta) {{auto tryResult948 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult947)::ok_type>
); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult947
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7560, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult948)::ok_type>); if ((__builtin_expect
(!!(tryResult948.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult947.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7560, mozilla::dom::quota::Severity::Error); return tryResult947.propagateErr(); }}; } return Ok{}; })"
, tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7564, mozilla::dom::quota::Severity::Error); return tryResult948
.propagateErr(); }}
7560 QM_TRY(update(entry.GetKey(), delta));{auto tryResult948 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult947)::ok_type>
); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult947
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7560, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult948)::ok_type>); if ((__builtin_expect
(!!(tryResult948.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult947.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7560, mozilla::dom::quota::Severity::Error); return tryResult947.propagateErr(); }}; } return Ok{}; })"
, tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7564, mozilla::dom::quota::Severity::Error); return tryResult948
.propagateErr(); }}
7561 }{auto tryResult948 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult947)::ok_type>
); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult947
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7560, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult948)::ok_type>); if ((__builtin_expect
(!!(tryResult948.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult947.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7560, mozilla::dom::quota::Severity::Error); return tryResult947.propagateErr(); }}; } return Ok{}; })"
, tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7564, mozilla::dom::quota::Severity::Error); return tryResult948
.propagateErr(); }}
7562
7563 return Ok{};{auto tryResult948 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult947)::ok_type>
); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult947
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7560, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult948)::ok_type>); if ((__builtin_expect
(!!(tryResult948.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult947.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7560, mozilla::dom::quota::Severity::Error); return tryResult947.propagateErr(); }}; } return Ok{}; })"
, tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7564, mozilla::dom::quota::Severity::Error); return tryResult948
.propagateErr(); }}
7564 })){auto tryResult948 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult947)::ok_type>
); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult947
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7560, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult948)::ok_type>); if ((__builtin_expect
(!!(tryResult948.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult947 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult947.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7560, mozilla::dom::quota::Severity::Error); return tryResult947.propagateErr(); }}; } return Ok{}; })"
, tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7564, mozilla::dom::quota::Severity::Error); return tryResult948
.propagateErr(); }}
;
7565
7566 QM_TRY(MOZ_TO_RESULT(CreateJournals())){auto tryResult949 = (ToResult(CreateJournals())); static_assert
(std::is_empty_v<typename decltype(tryResult949)::ok_type>
); if ((__builtin_expect(!!(tryResult949.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(CreateJournals())", tryResult949
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7566, mozilla::dom::quota::Severity::Error); return tryResult949
.propagateErr(); }}
;
7567
7568 return NS_OK;
7569}
7570
7571void DatabaseConnection::UpdateRefcountFunction::DidCommit() {
7572 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7572); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7572); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7573 mConnection->AssertIsOnConnectionThread();
7574
7575 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidCommit",mozilla::AutoProfilerLabel raiiObject7576( "DatabaseConnection::UpdateRefcountFunction::DidCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
7576 DOM)mozilla::AutoProfilerLabel raiiObject7576( "DatabaseConnection::UpdateRefcountFunction::DidCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7577
7578 for (const auto& entry : mFileInfoEntries.Values()) {
7579 entry->MaybeUpdateDBRefs();
7580 }
7581
7582 QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterCommit))){auto tryResult950 = (ToResult<QMResult>(RemoveJournals
(mJournalsToRemoveAfterCommit))); static_assert(std::is_empty_v
<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect
(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterCommit))"
, tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7582, mozilla::dom::quota::Severity::Warning); }}
;
7583}
7584
7585void DatabaseConnection::UpdateRefcountFunction::DidAbort() {
7586 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7586); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7586); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7587 mConnection->AssertIsOnConnectionThread();
7588
7589 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidAbort",mozilla::AutoProfilerLabel raiiObject7590( "DatabaseConnection::UpdateRefcountFunction::DidAbort"
, nullptr, JS::ProfilingCategoryPair::DOM)
7590 DOM)mozilla::AutoProfilerLabel raiiObject7590( "DatabaseConnection::UpdateRefcountFunction::DidAbort"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7591
7592 QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterAbort))){auto tryResult951 = (ToResult<QMResult>(RemoveJournals
(mJournalsToRemoveAfterAbort))); static_assert(std::is_empty_v
<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect
(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterAbort))"
, tryResult951.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7592, mozilla::dom::quota::Severity::Warning); }}
;
7593}
7594
7595void DatabaseConnection::UpdateRefcountFunction::StartSavepoint() {
7596 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7596); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7596); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7597 mConnection->AssertIsOnConnectionThread();
7598 MOZ_ASSERT(!mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInSavepoint)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInSavepoint))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mInSavepoint",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7598);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint" ")")
; do { MOZ_CrashSequence(__null, 7598); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7599 MOZ_ASSERT(!mSavepointEntriesIndex.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mSavepointEntriesIndex.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mSavepointEntriesIndex.Count
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mSavepointEntriesIndex.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7599); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()"
")"); do { MOZ_CrashSequence(__null, 7599); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7600
7601 mInSavepoint = true;
7602}
7603
7604void DatabaseConnection::UpdateRefcountFunction::ReleaseSavepoint() {
7605 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7605); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7605); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7606 mConnection->AssertIsOnConnectionThread();
7607 MOZ_ASSERT(mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInSavepoint)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInSavepoint))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mInSavepoint", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7607); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint"
")"); do { MOZ_CrashSequence(__null, 7607); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7608
7609 mSavepointEntriesIndex.Clear();
7610 mInSavepoint = false;
7611}
7612
7613void DatabaseConnection::UpdateRefcountFunction::RollbackSavepoint() {
7614 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7614); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7614); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7615 mConnection->AssertIsOnConnectionThread();
7616 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7616)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 7616); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7617 MOZ_ASSERT(mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInSavepoint)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInSavepoint))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mInSavepoint", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7617); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint"
")"); do { MOZ_CrashSequence(__null, 7617); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7618
7619 for (const auto& entry : mSavepointEntriesIndex.Values()) {
7620 entry->DecBySavepointDelta();
7621 }
7622
7623 mInSavepoint = false;
7624 mSavepointEntriesIndex.Clear();
7625}
7626
7627void DatabaseConnection::UpdateRefcountFunction::Reset() {
7628 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7628); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7629 mConnection->AssertIsOnConnectionThread();
7630 MOZ_ASSERT(!mSavepointEntriesIndex.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mSavepointEntriesIndex.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mSavepointEntriesIndex.Count
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mSavepointEntriesIndex.Count()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7630); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()"
")"); do { MOZ_CrashSequence(__null, 7630); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7631 MOZ_ASSERT(!mInSavepoint)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInSavepoint)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInSavepoint))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mInSavepoint",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7631);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint" ")")
; do { MOZ_CrashSequence(__null, 7631); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7632
7633 mJournalsToCreateBeforeCommit.Clear();
7634 mJournalsToRemoveAfterCommit.Clear();
7635 mJournalsToRemoveAfterAbort.Clear();
7636
7637 // DatabaseFileInfo implementation automatically removes unreferenced files,
7638 // but it's done asynchronously and with a delay. We want to remove them (and
7639 // decrease quota usage) before we fire the commit event.
7640 for (const auto& entry : mFileInfoEntries.Values()) {
7641 // We need to move mFileInfo into a raw pointer in order to release it
7642 // explicitly with aSyncDeleteFile == true.
7643 DatabaseFileInfo* const fileInfo = entry->ReleaseFileInfo().forget().take();
7644 MOZ_ASSERT(fileInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileInfo))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("fileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7644); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileInfo" ")"
); do { MOZ_CrashSequence(__null, 7644); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7645
7646 fileInfo->Release(/* aSyncDeleteFile */ true);
7647 }
7648
7649 mFileInfoEntries.Clear();
7650}
7651
7652nsresult DatabaseConnection::UpdateRefcountFunction::ProcessValue(
7653 mozIStorageValueArray* aValues, int32_t aIndex, UpdateType aUpdateType) {
7654 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7654); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7654); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7655 mConnection->AssertIsOnConnectionThread();
7656 MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aValues)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aValues", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { MOZ_CrashSequence(__null, 7656); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7657
7658 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7659( "DatabaseConnection::UpdateRefcountFunction::ProcessValue"
, nullptr, JS::ProfilingCategoryPair::DOM)
7659 "DatabaseConnection::UpdateRefcountFunction::ProcessValue", DOM)mozilla::AutoProfilerLabel raiiObject7659( "DatabaseConnection::UpdateRefcountFunction::ProcessValue"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7660
7661 QM_TRY_INSPECT(const int32_t& type,auto tryResult952 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, aIndex)); if ((__builtin_expect(!!(tryResult952
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, aIndex)"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7662, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); } const int32_t& type = tryResult952.inspect
();
7662 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, aIndex))auto tryResult952 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, aIndex)); if ((__builtin_expect(!!(tryResult952
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, aIndex)"
, tryResult952.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7662, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); } const int32_t& type = tryResult952.inspect
();
;
7663
7664 if (type == mozIStorageValueArray::VALUE_TYPE_NULL) {
7665 return NS_OK;
7666 }
7667
7668 QM_TRY_INSPECT(const auto& ids, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult953 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect
(!!(tryResult953.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)"
, tryResult953.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7669, mozilla::dom::quota::Severity::Error); return tryResult953
.propagateErr(); } const auto& ids = tryResult953.inspect
();
7669 nsString, aValues, GetString, aIndex))auto tryResult953 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect
(!!(tryResult953.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)"
, tryResult953.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7669, mozilla::dom::quota::Severity::Error); return tryResult953
.propagateErr(); } const auto& ids = tryResult953.inspect
();
;
7670
7671 QM_TRY_INSPECT(const auto& files,auto tryResult954 = (DeserializeStructuredCloneFiles(mFileManager
, ids)); if ((__builtin_expect(!!(tryResult954.isErr()), 0)))
{ mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)"
, tryResult954.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7672, mozilla::dom::quota::Severity::Error); return tryResult954
.propagateErr(); } const auto& files = tryResult954.inspect
();
7672 DeserializeStructuredCloneFiles(mFileManager, ids))auto tryResult954 = (DeserializeStructuredCloneFiles(mFileManager
, ids)); if ((__builtin_expect(!!(tryResult954.isErr()), 0)))
{ mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)"
, tryResult954.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7672, mozilla::dom::quota::Severity::Error); return tryResult954
.propagateErr(); } const auto& files = tryResult954.inspect
();
;
7673
7674 for (const StructuredCloneFileParent& file : files) {
7675 const int64_t id = file.FileInfo().Id();
7676 MOZ_ASSERT(id > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(id > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(id > 0))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("id > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7676); AnnotateMozCrashReason("MOZ_ASSERT" "(" "id > 0" ")"
); do { MOZ_CrashSequence(__null, 7676); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7677
7678 const auto entry =
7679 WrapNotNull(mFileInfoEntries.GetOrInsertNew(id, file.FileInfoPtr()));
7680
7681 if (mInSavepoint) {
7682 mSavepointEntriesIndex.InsertOrUpdate(id, entry);
7683 }
7684
7685 switch (aUpdateType) {
7686 case UpdateType::Increment:
7687 entry->IncDeltas(mInSavepoint);
7688 break;
7689 case UpdateType::Decrement:
7690 entry->DecDeltas(mInSavepoint);
7691 break;
7692 default:
7693 MOZ_CRASH("Unknown update type!")do { do { } while (false); MOZ_ReportCrash("" "Unknown update type!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7693)
; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown update type!" ")"
); do { MOZ_CrashSequence(__null, 7693); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
7694 }
7695 }
7696
7697 return NS_OK;
7698}
7699
7700nsresult DatabaseConnection::UpdateRefcountFunction::CreateJournals() {
7701 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7701); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7701); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7702 mConnection->AssertIsOnConnectionThread();
7703
7704 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7705( "DatabaseConnection::UpdateRefcountFunction::CreateJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
7705 "DatabaseConnection::UpdateRefcountFunction::CreateJournals", DOM)mozilla::AutoProfilerLabel raiiObject7705( "DatabaseConnection::UpdateRefcountFunction::CreateJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7706
7707 const nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory();
7708 QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult955 = (OkIf(journalDirectory)); static_assert(
std::is_empty_v<typename decltype(tryResult955)::ok_type>
); if ((__builtin_expect(!!(tryResult955.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult955.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7708, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
7709
7710 for (const int64_t id : mJournalsToCreateBeforeCommit) {
7711 const nsCOMPtr<nsIFile> file =
7712 DatabaseFileManager::GetFileForId(journalDirectory, id);
7713 QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult956 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult956)::ok_type>); if ((__builtin_expect
(!!(tryResult956.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult956.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7713, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
7714
7715 QM_TRY(MOZ_TO_RESULT(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult957 = (ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE
, 0644))); static_assert(std::is_empty_v<typename decltype
(tryResult957)::ok_type>); if ((__builtin_expect(!!(tryResult957
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))"
, tryResult957.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7715, mozilla::dom::quota::Severity::Error); return tryResult957
.propagateErr(); }}
;
7716
7717 mJournalsToRemoveAfterAbort.AppendElement(id);
7718 }
7719
7720 return NS_OK;
7721}
7722
7723nsresult DatabaseConnection::UpdateRefcountFunction::RemoveJournals(
7724 const nsTArray<int64_t>& aJournals) {
7725 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7725); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 7725); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7726 mConnection->AssertIsOnConnectionThread();
7727
7728 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7729( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
7729 "DatabaseConnection::UpdateRefcountFunction::RemoveJournals", DOM)mozilla::AutoProfilerLabel raiiObject7729( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7730
7731 nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory();
7732 QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult958 = (OkIf(journalDirectory)); static_assert(
std::is_empty_v<typename decltype(tryResult958)::ok_type>
); if ((__builtin_expect(!!(tryResult958.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult958.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
7733
7734 for (const auto& journal : aJournals) {
7735 nsCOMPtr<nsIFile> file =
7736 DatabaseFileManager::GetFileForId(journalDirectory, journal);
7737 QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult959 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult959)::ok_type>); if ((__builtin_expect
(!!(tryResult959.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult959.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
7738
7739 QM_WARNONLY_TRY(QM_TO_RESULT(file->Remove(false))){auto tryResult960 = (ToResult<QMResult>(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult960)::ok_type>); if ((__builtin_expect(!!(tryResult960
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult<QMResult>(file->Remove(false))"
, tryResult960.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7739, mozilla::dom::quota::Severity::Warning); }}
;
7740 }
7741
7742 return NS_OK;
7743}
7744
7745NS_IMPL_ISUPPORTS(DatabaseConnection::UpdateRefcountFunction,MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction
::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseConnection
::UpdateRefcountFunction>, "Reference-counted class " "DatabaseConnection::UpdateRefcountFunction"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 7746
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " ("
"Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 7746); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DatabaseConnection::UpdateRefcountFunction"
" not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef
((this), (count), ("DatabaseConnection::UpdateRefcountFunction"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
DatabaseConnection::UpdateRefcountFunction::Release(void) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 7746
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " ("
"Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 7746); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DatabaseConnection::UpdateRefcountFunction"
" not thread-safe"); const char* const nametmp = "DatabaseConnection::UpdateRefcountFunction"
; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), (
nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return
0; } return count; } nsresult DatabaseConnection::UpdateRefcountFunction
::QueryInterface(const nsIID& aIID, void** aInstancePtr) {
do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "QueryInterface requires a non-NULL destination!", "aInstancePtr"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7746)
; MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE
; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<DatabaseConnection::UpdateRefcountFunction
, mozIStorageFunction>, int32_t( reinterpret_cast<char*
>(static_cast<mozIStorageFunction*>((DatabaseConnection
::UpdateRefcountFunction*)0x1000)) - reinterpret_cast<char
*>((DatabaseConnection::UpdateRefcountFunction*)0x1000))},
{&mozilla::detail::kImplementedIID<DatabaseConnection
::UpdateRefcountFunction, nsISupports>, int32_t(reinterpret_cast
<char*>(static_cast<nsISupports*>( static_cast<
mozIStorageFunction*>((DatabaseConnection::UpdateRefcountFunction
*)0x1000))) - reinterpret_cast<char*>((DatabaseConnection
::UpdateRefcountFunction*)0x1000))}, { nullptr, 0 } } ; static_assert
(std::size(table) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI
(static_cast<void*>(this), aIID, aInstancePtr, table); return
rv; }
7746 mozIStorageFunction)MozExternalRefCountType DatabaseConnection::UpdateRefcountFunction
::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseConnection
::UpdateRefcountFunction>, "Reference-counted class " "DatabaseConnection::UpdateRefcountFunction"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 7746
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " ("
"Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 7746); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DatabaseConnection::UpdateRefcountFunction"
" not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef
((this), (count), ("DatabaseConnection::UpdateRefcountFunction"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
DatabaseConnection::UpdateRefcountFunction::Release(void) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 7746
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DatabaseConnection::UpdateRefcountFunction" != nullptr
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!("DatabaseConnection::UpdateRefcountFunction" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" " ("
"Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 7746); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DatabaseConnection::UpdateRefcountFunction"
" not thread-safe"); const char* const nametmp = "DatabaseConnection::UpdateRefcountFunction"
; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), (
nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return
0; } return count; } nsresult DatabaseConnection::UpdateRefcountFunction
::QueryInterface(const nsIID& aIID, void** aInstancePtr) {
do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "QueryInterface requires a non-NULL destination!", "aInstancePtr"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7746)
; MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE
; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<DatabaseConnection::UpdateRefcountFunction
, mozIStorageFunction>, int32_t( reinterpret_cast<char*
>(static_cast<mozIStorageFunction*>((DatabaseConnection
::UpdateRefcountFunction*)0x1000)) - reinterpret_cast<char
*>((DatabaseConnection::UpdateRefcountFunction*)0x1000))},
{&mozilla::detail::kImplementedIID<DatabaseConnection
::UpdateRefcountFunction, nsISupports>, int32_t(reinterpret_cast
<char*>(static_cast<nsISupports*>( static_cast<
mozIStorageFunction*>((DatabaseConnection::UpdateRefcountFunction
*)0x1000))) - reinterpret_cast<char*>((DatabaseConnection
::UpdateRefcountFunction*)0x1000))}, { nullptr, 0 } } ; static_assert
(std::size(table) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI
(static_cast<void*>(this), aIID, aInstancePtr, table); return
rv; }
7747
7748NS_IMETHODIMPnsresult
7749DatabaseConnection::UpdateRefcountFunction::OnFunctionCall(
7750 mozIStorageValueArray* aValues, nsIVariant** _retval) {
7751 MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aValues)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aValues", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7751); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { MOZ_CrashSequence(__null, 7751); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7752 MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(_retval)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("_retval", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7752); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { MOZ_CrashSequence(__null, 7752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7753
7754 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7755( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
7755 "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject7755( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7756
7757#ifdef DEBUG1
7758 {
7759 QM_TRY_INSPECT(const uint32_t& numEntries,auto tryResult961 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries)); if ((__builtin_expect(!!(tryResult961.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult961
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7761, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7761); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7761); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult961.inspect();
7760 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetNumEntries),auto tryResult961 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries)); if ((__builtin_expect(!!(tryResult961.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult961
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7761, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7761); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7761); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult961.inspect();
7761 QM_ASSERT_UNREACHABLE)auto tryResult961 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries)); if ((__builtin_expect(!!(tryResult961.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult961
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7761, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7761); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7761); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult961.inspect();
;
7762
7763 MOZ_ASSERT(numEntries == 2)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(numEntries == 2)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(numEntries == 2))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("numEntries == 2"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7763)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "numEntries == 2" ")"
); do { MOZ_CrashSequence(__null, 7763); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7764
7765 QM_TRY_INSPECT(const int32_t& type1,auto tryResult962 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 0)); if ((__builtin_expect(!!(tryResult962.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult962.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7767, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7767); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7767); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult962.inspect();
7766 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 0),auto tryResult962 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 0)); if ((__builtin_expect(!!(tryResult962.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult962.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7767, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7767); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7767); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult962.inspect();
7767 QM_ASSERT_UNREACHABLE)auto tryResult962 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 0)); if ((__builtin_expect(!!(tryResult962.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult962.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7767, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 0)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7767); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7767); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult962.inspect();
;
7768
7769 QM_TRY_INSPECT(const int32_t& type2,auto tryResult963 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult963.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult963.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7771, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7771); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7771); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult963.inspect();
7770 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1),auto tryResult963 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult963.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult963.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7771, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7771); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7771); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult963.inspect();
7771 QM_ASSERT_UNREACHABLE)auto tryResult963 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult963.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult963.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7771, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7771); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 7771); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult963.inspect();
;
7772
7773 MOZ_ASSERT(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&
type2 == mozIStorageValueArray::VALUE_TYPE_NULL))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&
type2 == mozIStorageValueArray::VALUE_TYPE_NULL)))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7774)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
")"); do { MOZ_CrashSequence(__null, 7774); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7774 type2 == mozIStorageValueArray::VALUE_TYPE_NULL))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&
type2 == mozIStorageValueArray::VALUE_TYPE_NULL))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL &&
type2 == mozIStorageValueArray::VALUE_TYPE_NULL)))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7774)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
")"); do { MOZ_CrashSequence(__null, 7774); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7775 }
7776#endif
7777
7778 QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 0, UpdateType::Decrement))){auto tryResult964 = (ToResult(ProcessValue(aValues, 0, UpdateType
::Decrement))); static_assert(std::is_empty_v<typename decltype
(tryResult964)::ok_type>); if ((__builtin_expect(!!(tryResult964
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 0, UpdateType::Decrement))"
, tryResult964.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7778, mozilla::dom::quota::Severity::Error); return tryResult964
.propagateErr(); }}
;
7779
7780 QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 1, UpdateType::Increment))){auto tryResult965 = (ToResult(ProcessValue(aValues, 1, UpdateType
::Increment))); static_assert(std::is_empty_v<typename decltype
(tryResult965)::ok_type>); if ((__builtin_expect(!!(tryResult965
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 1, UpdateType::Increment))"
, tryResult965.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7780, mozilla::dom::quota::Severity::Error); return tryResult965
.propagateErr(); }}
;
7781
7782 return NS_OK;
7783}
7784
7785/*******************************************************************************
7786 * ConnectionPool implementation
7787 ******************************************************************************/
7788
7789ConnectionPool::ConnectionPool()
7790 : mDatabasesMutex("ConnectionPool::mDatabasesMutex"),
7791 mIOTarget(MakeConnectionIOTarget()),
7792 mIdleTimer(NS_NewTimer()),
7793 mNextTransactionId(0) {
7794 AssertIsOnOwningThread();
7795 AssertIsOnBackgroundThread();
7796 MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { MOZ_CrashSequence(__null, 7796); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7797}
7798
7799ConnectionPool::~ConnectionPool() {
7800 AssertIsOnOwningThread();
7801 MOZ_ASSERT(mIdleDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIdleDatabases.IsEmpty()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleDatabases.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7801)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 7801); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7802 MOZ_ASSERT(!mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mIdleTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mIdleTimer))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7802); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleTimer"
")"); do { MOZ_CrashSequence(__null, 7802); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7803 MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7803)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 7803); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7804 MOZ_ASSERT(!mDatabases.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabases.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabases.Count()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mDatabases.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7804)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()"
")"); do { MOZ_CrashSequence(__null, 7804); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7805 MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7805)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { MOZ_CrashSequence(__null, 7805); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7806 MOZ_ASSERT(mQueuedTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mQueuedTransactions.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mQueuedTransactions.IsEmpty(
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mQueuedTransactions.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7806); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedTransactions.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 7806); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7807 MOZ_ASSERT(mCompleteCallbacks.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCompleteCallbacks.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCompleteCallbacks.IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mCompleteCallbacks.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7807); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 7807); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7808 MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mShutdownRequested)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7808)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { MOZ_CrashSequence(__null, 7808); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7809 MOZ_ASSERT(mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mShutdownComplete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mShutdownComplete))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mShutdownComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7809)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete"
")"); do { MOZ_CrashSequence(__null, 7809); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7810}
7811
7812// static
7813void ConnectionPool::IdleTimerCallback(nsITimer* aTimer, void* aClosure) {
7814 MOZ_ASSERT(aTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTimer)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aTimer))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7814); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")"
); do { MOZ_CrashSequence(__null, 7814); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7815 MOZ_ASSERT(aClosure)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aClosure)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aClosure))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aClosure", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7815); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aClosure" ")"
); do { MOZ_CrashSequence(__null, 7815); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7816
7817 AUTO_PROFILER_LABEL("ConnectionPool::IdleTimerCallback", DOM)mozilla::AutoProfilerLabel raiiObject7817( "ConnectionPool::IdleTimerCallback"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7818
7819 auto& self = *static_cast<ConnectionPool*>(aClosure);
7820 MOZ_ASSERT(self.mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(self.mIdleTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(self.mIdleTimer))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("self.mIdleTimer"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7820)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "self.mIdleTimer" ")"
); do { MOZ_CrashSequence(__null, 7820); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7821 MOZ_ASSERT(SameCOMIdentity(self.mIdleTimer, aTimer))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(SameCOMIdentity(self.mIdleTimer, aTimer))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(SameCOMIdentity(self.mIdleTimer, aTimer)))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("SameCOMIdentity(self.mIdleTimer, aTimer)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7821)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self.mIdleTimer, aTimer)"
")"); do { MOZ_CrashSequence(__null, 7821); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7822 MOZ_ASSERT(!self.mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!self.mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!self.mTargetIdleTime.IsNull
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!self.mTargetIdleTime.IsNull()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7822); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!self.mTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 7822); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7823
7824 self.mTargetIdleTime = TimeStamp();
7825
7826 // Cheat a little.
7827 const TimeStamp now =
7828 TimeStamp::NowLoRes() + TimeDuration::FromMilliseconds(500);
7829
7830 // XXX Move this to ArrayAlgorithm.h?
7831 const auto removeUntil = [](auto& array, auto&& cond) {
7832 const auto begin = array.begin(), end = array.end();
7833 array.RemoveElementsRange(
7834 begin, std::find_if(begin, end, std::forward<decltype(cond)>(cond)));
7835 };
7836
7837 removeUntil(self.mIdleDatabases, [now, &self](const auto& info) {
7838 if (now >= info.mIdleTime) {
7839 if ((*info.mDatabaseInfo)->mIdle) {
7840 self.PerformIdleDatabaseMaintenance(*info.mDatabaseInfo.ref());
7841 } else {
7842 self.CloseDatabase(*info.mDatabaseInfo.ref());
7843 }
7844
7845 return false;
7846 }
7847
7848 return true;
7849 });
7850
7851 self.AdjustIdleTimer();
7852}
7853
7854Result<RefPtr<DatabaseConnection>, nsresult>
7855ConnectionPool::GetOrCreateConnection(const Database& aDatabase) {
7856 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7856)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 7856); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7857 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7857)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 7857); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7858
7859 AUTO_PROFILER_LABEL("ConnectionPool::GetOrCreateConnection", DOM)mozilla::AutoProfilerLabel raiiObject7859( "ConnectionPool::GetOrCreateConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7860
7861 DatabaseInfo* dbInfo;
7862 {
7863 MutexAutoLock lock(mDatabasesMutex);
7864
7865 dbInfo = mDatabases.Get(aDatabase.Id());
7866 }
7867
7868 MOZ_ASSERT(dbInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(dbInfo))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("dbInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7868); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo" ")"
); do { MOZ_CrashSequence(__null, 7868); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7869
7870 if (dbInfo->mConnection) {
7871 dbInfo->AssertIsOnConnectionThread();
7872
7873 return dbInfo->mConnection;
7874 }
7875
7876 MOZ_ASSERT(!dbInfo->mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo->mDEBUGConnectionEventTarget)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!dbInfo->mDEBUGConnectionEventTarget))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!dbInfo->mDEBUGConnectionEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7876)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo->mDEBUGConnectionEventTarget"
")"); do { MOZ_CrashSequence(__null, 7876); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7877
7878 QM_TRY_UNWRAP(auto tryResult966 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult966.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7881, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult966.unwrap();
7879 MovingNotNull<nsCOMPtr<mozIStorageConnection>> storageConnection,auto tryResult966 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult966.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7881, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult966.unwrap();
7880 GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(),auto tryResult966 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult966.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7881, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult966.unwrap();
7881 aDatabase.TelemetryId(), aDatabase.MaybeKeyRef()))auto tryResult966 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult966.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7881, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult966.unwrap();
;
7882
7883 RefPtr<DatabaseConnection> connection = new DatabaseConnection(
7884 std::move(storageConnection), aDatabase.GetFileManagerPtr());
7885
7886 QM_TRY(MOZ_TO_RESULT(connection->Init())){auto tryResult967 = (ToResult(connection->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult967)::ok_type>
); if ((__builtin_expect(!!(tryResult967.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(connection->Init())", tryResult967
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7886, mozilla::dom::quota::Severity::Error); return tryResult967
.propagateErr(); }}
;
7887
7888 dbInfo->mConnection = connection;
7889
7890 IDB_DEBUG_LOG(("ConnectionPool created connection 0x%p for '%s'",
7891 dbInfo->mConnection.get(),
7892 NS_ConvertUTF16toUTF8(aDatabase.FilePath()).get()));
7893
7894#ifdef DEBUG1
7895 dbInfo->mDEBUGConnectionEventTarget = GetCurrentSerialEventTarget();
7896#endif
7897
7898 return connection;
7899}
7900
7901uint64_t ConnectionPool::Start(
7902 const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId,
7903 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
7904 bool aIsWriteTransaction,
7905 TransactionDatabaseOperationBase* aTransactionOp) {
7906 AssertIsOnOwningThread();
7907 MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7907)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 7907); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7908 MOZ_ASSERT(mNextTransactionId < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mNextTransactionId < (18446744073709551615UL))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mNextTransactionId < (18446744073709551615UL)))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mNextTransactionId < (18446744073709551615UL)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7908)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mNextTransactionId < (18446744073709551615UL)"
")"); do { MOZ_CrashSequence(__null, 7908); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7909 MOZ_ASSERT(!mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mShutdownRequested)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mShutdownRequested))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mShutdownRequested"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7909)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownRequested"
")"); do { MOZ_CrashSequence(__null, 7909); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7910
7911 AUTO_PROFILER_LABEL("ConnectionPool::Start", DOM)mozilla::AutoProfilerLabel raiiObject7911( "ConnectionPool::Start"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7912
7913 const uint64_t transactionId = ++mNextTransactionId;
7914
7915 // To avoid always acquiring a lock, we don't use WithEntryHandle here, which
7916 // would require a lock in any case.
7917 DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId);
7918
7919 const bool databaseInfoIsNew = !dbInfo;
7920
7921 if (databaseInfoIsNew) {
7922 MutexAutoLock lock(mDatabasesMutex);
7923
7924 dbInfo = mDatabases
7925 .InsertOrUpdate(aDatabaseId,
7926 MakeUnique<DatabaseInfo>(this, aDatabaseId))
7927 .get();
7928 }
7929
7930 MOZ_ASSERT(!mTransactions.Contains(transactionId))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Contains(transactionId))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mTransactions.Contains(transactionId)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mTransactions.Contains(transactionId)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7930)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(transactionId)"
")"); do { MOZ_CrashSequence(__null, 7930); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7931 auto& transactionInfo = *mTransactions.InsertOrUpdate(
7932 transactionId, MakeUnique<TransactionInfo>(
7933 *dbInfo, aBackgroundChildLoggingId, aDatabaseId,
7934 transactionId, aLoggingSerialNumber, aObjectStoreNames,
7935 aIsWriteTransaction, aTransactionOp));
7936
7937 if (aIsWriteTransaction) {
7938 MOZ_ASSERT(dbInfo->mWriteTransactionCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo->mWriteTransactionCount < (4294967295U)
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(dbInfo->mWriteTransactionCount < (4294967295U)
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"dbInfo->mWriteTransactionCount < (4294967295U)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 7938); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mWriteTransactionCount < (4294967295U)"
")"); do { MOZ_CrashSequence(__null, 7938); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7939 dbInfo->mWriteTransactionCount++;
7940 } else {
7941 MOZ_ASSERT(dbInfo->mReadTransactionCount < UINT32_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo->mReadTransactionCount < (4294967295U))
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(dbInfo->mReadTransactionCount < (4294967295U))
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo->mReadTransactionCount < (4294967295U)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7941)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mReadTransactionCount < (4294967295U)"
")"); do { MOZ_CrashSequence(__null, 7941); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7942 dbInfo->mReadTransactionCount++;
7943 }
7944
7945 auto& blockingTransactions = dbInfo->mBlockingTransactions;
7946
7947 for (const nsAString& objectStoreName : aObjectStoreNames) {
7948 TransactionInfoPair* blockInfo =
7949 blockingTransactions.GetOrInsertNew(objectStoreName);
7950
7951 // Mark what we are blocking on.
7952 if (const auto maybeBlockingRead = blockInfo->mLastBlockingReads) {
7953 transactionInfo.mBlockedOn.Insert(&maybeBlockingRead.ref());
7954 maybeBlockingRead->AddBlockingTransaction(transactionInfo);
7955 }
7956
7957 if (aIsWriteTransaction) {
7958 for (const auto blockingWrite : blockInfo->mLastBlockingWrites) {
7959 transactionInfo.mBlockedOn.Insert(blockingWrite);
7960 blockingWrite->AddBlockingTransaction(transactionInfo);
7961 }
7962
7963 blockInfo->mLastBlockingReads = SomeRef(transactionInfo);
7964 blockInfo->mLastBlockingWrites.Clear();
7965 } else {
7966 blockInfo->mLastBlockingWrites.AppendElement(
7967 WrapNotNullUnchecked(&transactionInfo));
7968 }
7969 }
7970
7971 if (!transactionInfo.mBlockedOn.Count()) {
7972 Unused << ScheduleTransaction(transactionInfo,
7973 /* aFromQueuedTransactions */ false);
7974 }
7975
7976 if (!databaseInfoIsNew &&
7977 (mIdleDatabases.RemoveElement(dbInfo) ||
7978 mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo))) {
7979 AdjustIdleTimer();
7980 }
7981
7982 return transactionId;
7983}
7984
7985void ConnectionPool::StartOp(uint64_t aTransactionId,
7986 nsCOMPtr<nsIRunnable> aRunnable) {
7987 AssertIsOnOwningThread();
7988
7989 AUTO_PROFILER_LABEL("ConnectionPool::StartOp", DOM)mozilla::AutoProfilerLabel raiiObject7989( "ConnectionPool::StartOp"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7990
7991 auto* const transactionInfo = mTransactions.Get(aTransactionId);
7992 MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("transactionInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7992)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")"
); do { MOZ_CrashSequence(__null, 7992); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7993
7994 transactionInfo->StartOp(std::move(aRunnable));
7995}
7996
7997void ConnectionPool::FinishOp(uint64_t aTransactionId) {
7998 AssertIsOnOwningThread();
7999
8000 AUTO_PROFILER_LABEL("ConnectionPool::FinishOp", DOM)mozilla::AutoProfilerLabel raiiObject8000( "ConnectionPool::FinishOp"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8001
8002 auto* const transactionInfo = mTransactions.Get(aTransactionId);
8003 MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("transactionInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8003)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")"
); do { MOZ_CrashSequence(__null, 8003); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8004
8005 transactionInfo->FinishOp();
8006}
8007
8008void ConnectionPool::Finish(uint64_t aTransactionId,
8009 FinishCallback* aCallback) {
8010 AssertIsOnOwningThread();
8011
8012#ifdef DEBUG1
8013 auto* const transactionInfo = mTransactions.Get(aTransactionId);
8014 MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("transactionInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8014)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")"
); do { MOZ_CrashSequence(__null, 8014); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8015 MOZ_ASSERT(!transactionInfo->mFinished)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!transactionInfo->mFinished)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!transactionInfo->mFinished
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!transactionInfo->mFinished", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8015); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!transactionInfo->mFinished"
")"); do { MOZ_CrashSequence(__null, 8015); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8016#endif
8017
8018 AUTO_PROFILER_LABEL("ConnectionPool::Finish", DOM)mozilla::AutoProfilerLabel raiiObject8018( "ConnectionPool::Finish"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8019
8020 nsCOMPtr<nsIRunnable> wrapper =
8021 new FinishCallbackWrapper(this, aTransactionId, aCallback);
8022
8023 StartOp(aTransactionId, std::move(wrapper));
8024
8025#ifdef DEBUG1
8026 transactionInfo->mFinished.Flip();
8027#endif
8028}
8029
8030void ConnectionPool::WaitForDatabaseToComplete(const nsCString& aDatabaseId,
8031 nsIRunnable* aCallback) {
8032 AssertIsOnOwningThread();
8033 MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8033)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8033); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8034 MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8034); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { MOZ_CrashSequence(__null, 8034); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8035
8036 AUTO_PROFILER_LABEL("ConnectionPool::WaitForDatabaseToComplete", DOM)mozilla::AutoProfilerLabel raiiObject8036( "ConnectionPool::WaitForDatabaseToComplete"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8037
8038 if (!CloseDatabaseWhenIdleInternal(aDatabaseId)) {
8039 Unused << aCallback->Run();
8040 return;
8041 }
8042
8043 mCompleteCallbacks.EmplaceBack(
8044 MakeUnique<DatabaseCompleteCallback>(aDatabaseId, aCallback));
8045}
8046
8047void ConnectionPool::Shutdown() {
8048 AssertIsOnOwningThread();
8049 MOZ_ASSERT(!mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mShutdownComplete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mShutdownComplete))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mShutdownComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8049)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete"
")"); do { MOZ_CrashSequence(__null, 8049); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8050
8051 AUTO_PROFILER_LABEL("ConnectionPool::Shutdown", DOM)mozilla::AutoProfilerLabel raiiObject8051( "ConnectionPool::Shutdown"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8052
8053 mShutdownRequested.Flip();
8054
8055 CancelIdleTimer();
8056 MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8056)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 8056); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8057
8058 mIdleTimer = nullptr;
8059
8060 CloseIdleDatabases();
8061
8062 if (!mDatabases.Count()) {
8063 MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8063)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { MOZ_CrashSequence(__null, 8063); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8064
8065 Cleanup();
8066
8067 MOZ_ASSERT(mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mShutdownComplete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mShutdownComplete))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mShutdownComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8067)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete"
")"); do { MOZ_CrashSequence(__null, 8067); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8068
8069 mIOTarget->Shutdown();
8070
8071 return;
8072 }
8073
8074 MOZ_ALWAYS_TRUE(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns, [&]() {do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns
, [&]() { return static_cast<bool>(mShutdownComplete
); })), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8076)
; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { MOZ_CrashSequence(__null, 8076); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8075 return static_cast<bool>(mShutdownComplete);do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns
, [&]() { return static_cast<bool>(mShutdownComplete
); })), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8076)
; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { MOZ_CrashSequence(__null, 8076); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8076 }))do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns
, [&]() { return static_cast<bool>(mShutdownComplete
); })), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8076)
; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { MOZ_CrashSequence(__null, 8076); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8077
8078 mIOTarget->Shutdown();
8079}
8080
8081void ConnectionPool::Cleanup() {
8082 AssertIsOnOwningThread();
8083 MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mShutdownRequested)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8083)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { MOZ_CrashSequence(__null, 8083); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8084 MOZ_ASSERT(!mShutdownComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mShutdownComplete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mShutdownComplete))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mShutdownComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8084)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete"
")"); do { MOZ_CrashSequence(__null, 8084); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8085 MOZ_ASSERT(!mDatabases.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabases.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabases.Count()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mDatabases.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8085)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()"
")"); do { MOZ_CrashSequence(__null, 8085); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8086 MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8086)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { MOZ_CrashSequence(__null, 8086); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8087
8088 AUTO_PROFILER_LABEL("ConnectionPool::Cleanup", DOM)mozilla::AutoProfilerLabel raiiObject8088( "ConnectionPool::Cleanup"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8089
8090 if (!mCompleteCallbacks.IsEmpty()) {
8091 // Run all callbacks manually now.
8092
8093 {
8094 auto completeCallbacks = std::move(mCompleteCallbacks);
8095 for (const auto& completeCallback : completeCallbacks) {
8096 MOZ_ASSERT(completeCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(completeCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(completeCallback))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("completeCallback"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8096)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback" ")"
); do { MOZ_CrashSequence(__null, 8096); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8097 MOZ_ASSERT(completeCallback->mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(completeCallback->mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(completeCallback->mCallback
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"completeCallback->mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8097); AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback->mCallback"
")"); do { MOZ_CrashSequence(__null, 8097); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8098
8099 Unused << completeCallback->mCallback->Run();
8100 }
8101
8102 // We expect no new callbacks being completed by running the existing
8103 // ones.
8104 MOZ_ASSERT(mCompleteCallbacks.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCompleteCallbacks.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCompleteCallbacks.IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mCompleteCallbacks.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8104); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8104); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8105 }
8106
8107 // And make sure they get processed.
8108 nsIThread* currentThread = NS_GetCurrentThread();
8109 MOZ_ASSERT(currentThread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(currentThread)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(currentThread))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("currentThread",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8109);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "currentThread" ")")
; do { MOZ_CrashSequence(__null, 8109); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8110
8111 MOZ_ALWAYS_SUCCEEDS(NS_ProcessPendingEvents(currentThread))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_ProcessPendingEvents(currentThread))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8111)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))"
")"); do { MOZ_CrashSequence(__null, 8111); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8112 }
8113
8114 mShutdownComplete.Flip();
8115}
8116
8117void ConnectionPool::AdjustIdleTimer() {
8118 AssertIsOnOwningThread();
8119 MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8119); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { MOZ_CrashSequence(__null, 8119); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8120
8121 AUTO_PROFILER_LABEL("ConnectionPool::AdjustIdleTimer", DOM)mozilla::AutoProfilerLabel raiiObject8121( "ConnectionPool::AdjustIdleTimer"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8122
8123 // Figure out the next time at which we should release idle resources. This
8124 // includes both databases and threads.
8125 TimeStamp newTargetIdleTime;
8126 MOZ_ASSERT(newTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(newTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(newTargetIdleTime.IsNull()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("newTargetIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8126)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "newTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 8126); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8127
8128 if (!mIdleDatabases.IsEmpty()) {
8129 newTargetIdleTime = mIdleDatabases[0].mIdleTime;
8130 }
8131
8132 MOZ_ASSERT_IF(newTargetIdleTime.IsNull(), mIdleDatabases.IsEmpty())do { if (newTargetIdleTime.IsNull()) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(mIdleDatabases.IsEmpty
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mIdleDatabases.IsEmpty()))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mIdleDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8132); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8132); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8133
8134 // Cancel the timer if it was running and the new target time is different.
8135 if (!mTargetIdleTime.IsNull() &&
8136 (newTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) {
8137 CancelIdleTimer();
8138
8139 MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8139)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 8139); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8140 }
8141
8142 // Schedule the timer if we have a target time different than before.
8143 if (!newTargetIdleTime.IsNull() &&
8144 (mTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) {
8145 double delta = (newTargetIdleTime - TimeStamp::NowLoRes()).ToMilliseconds();
8146
8147 uint32_t delay;
8148 if (delta > 0) {
8149 delay = uint32_t(std::min(delta, double(UINT32_MAX(4294967295U))));
8150 } else {
8151 delay = 0;
8152 }
8153
8154 MOZ_ALWAYS_SUCCEEDS(mIdleTimer->InitWithNamedFuncCallback(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback,
this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback"
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8156)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")"); do { MOZ_CrashSequence(__null, 8156); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8155 IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT,do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback,
this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback"
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8156)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")"); do { MOZ_CrashSequence(__null, 8156); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8156 "ConnectionPool::IdleTimerCallback"))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback,
this, delay, nsITimer::TYPE_ONE_SHOT, "ConnectionPool::IdleTimerCallback"
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8156)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")"); do { MOZ_CrashSequence(__null, 8156); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8157
8158 mTargetIdleTime = newTargetIdleTime;
8159 }
8160}
8161
8162void ConnectionPool::CancelIdleTimer() {
8163 AssertIsOnOwningThread();
8164 MOZ_ASSERT(mIdleTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIdleTimer))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mIdleTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { MOZ_CrashSequence(__null, 8164); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8165
8166 if (!mTargetIdleTime.IsNull()) {
8167 MOZ_ALWAYS_SUCCEEDS(mIdleTimer->Cancel())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mIdleTimer->Cancel())), 1)))), 1))) { } else { do { do { }
while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mIdleTimer->Cancel())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8167)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->Cancel())"
")"); do { MOZ_CrashSequence(__null, 8167); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8168
8169 mTargetIdleTime = TimeStamp();
8170 MOZ_ASSERT(mTargetIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTargetIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTargetIdleTime.IsNull()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mTargetIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8170)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 8170); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8171 }
8172}
8173
8174void ConnectionPool::CloseIdleDatabases() {
8175 AssertIsOnOwningThread();
8176 MOZ_ASSERT(mShutdownRequested)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mShutdownRequested)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mShutdownRequested))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mShutdownRequested"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8176)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { MOZ_CrashSequence(__null, 8176); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8177
8178 AUTO_PROFILER_LABEL("ConnectionPool::CloseIdleDatabases", DOM)mozilla::AutoProfilerLabel raiiObject8178( "ConnectionPool::CloseIdleDatabases"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8179
8180 if (!mIdleDatabases.IsEmpty()) {
8181 for (IdleDatabaseInfo& idleInfo : mIdleDatabases) {
8182 CloseDatabase(*idleInfo.mDatabaseInfo.ref());
8183 }
8184 mIdleDatabases.Clear();
8185 }
8186
8187 if (!mDatabasesPerformingIdleMaintenance.IsEmpty()) {
8188 for (PerformingIdleMaintenanceDatabaseInfo& performingIdleMaintenanceInfo :
8189 mDatabasesPerformingIdleMaintenance) {
8190 CloseDatabase(*performingIdleMaintenanceInfo.mDatabaseInfo);
8191 }
8192 mDatabasesPerformingIdleMaintenance.Clear();
8193 }
8194}
8195
8196bool ConnectionPool::ScheduleTransaction(TransactionInfo& aTransactionInfo,
8197 bool aFromQueuedTransactions) {
8198 AssertIsOnOwningThread();
8199
8200 AUTO_PROFILER_LABEL("ConnectionPool::ScheduleTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8200( "ConnectionPool::ScheduleTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8201
8202 DatabaseInfo& dbInfo = aTransactionInfo.mDatabaseInfo;
8203
8204 dbInfo.mIdle = false;
8205
8206 if (dbInfo.mClosing) {
8207 MOZ_ASSERT(!mIdleDatabases.Contains(&dbInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mIdleDatabases.Contains(&dbInfo))>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(!mIdleDatabases.Contains(&dbInfo)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&dbInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8207)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&dbInfo)"
")"); do { MOZ_CrashSequence(__null, 8207); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8208 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo.mTransactionsScheduledDuringClose.Contains(&
aTransactionInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!dbInfo.mTransactionsScheduledDuringClose
.Contains(&aTransactionInfo)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8209)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
")"); do { MOZ_CrashSequence(__null, 8209); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8209 !dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo.mTransactionsScheduledDuringClose.Contains(&
aTransactionInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!dbInfo.mTransactionsScheduledDuringClose
.Contains(&aTransactionInfo)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8209)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
")"); do { MOZ_CrashSequence(__null, 8209); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8210
8211 dbInfo.mTransactionsScheduledDuringClose.AppendElement(
8212 WrapNotNullUnchecked(&aTransactionInfo));
8213 return true;
8214 }
8215
8216 if (!dbInfo.mEventTarget) {
8217 const uint32_t serialNumber = SerialNumber();
8218 const nsCString serialName =
8219 nsPrintfCString("IndexedDB #%" PRIu32"u", serialNumber);
8220
8221 dbInfo.mEventTarget =
8222 TaskQueue::Create(do_AddRef(mIOTarget), serialName.get());
8223 MOZ_ASSERT(dbInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mEventTarget))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8223)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8223); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8224 IDB_DEBUG_LOG(("ConnectionPool created task queue %" PRIu32"u", serialNumber));
8225 }
8226
8227 // The number of active operations equals the number of databases minus idle
8228 // databases. The maximum number of database operations which can make
8229 // progress at the same time is kMaxConnectionThreadCount. If we are at this
8230 // limit, all idle processing is interrupted to make room for user
8231 // transactions.
8232 if (mDatabases.Count() >=
8233 (mIdleDatabases.Length() + kMaxConnectionThreadCount) &&
8234 !mDatabasesPerformingIdleMaintenance.IsEmpty()) {
8235 const auto& busyDbs = mDatabasesPerformingIdleMaintenance;
8236 for (auto dbInfo = busyDbs.rbegin(); dbInfo != busyDbs.rend(); ++dbInfo) {
8237 (*dbInfo).mIdleConnectionRunnable->Interrupt();
8238 }
8239 }
8240
8241 if (aTransactionInfo.mIsWriteTransaction) {
8242 if (dbInfo.mRunningWriteTransaction) {
8243 // SQLite only allows one write transaction at a time so queue this
8244 // transaction for later.
8245 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8246)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
")"); do { MOZ_CrashSequence(__null, 8246); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8246 !dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8246)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
")"); do { MOZ_CrashSequence(__null, 8246); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8247
8248 dbInfo.mScheduledWriteTransactions.AppendElement(
8249 WrapNotNullUnchecked(&aTransactionInfo));
8250 return true;
8251 }
8252
8253 dbInfo.mRunningWriteTransaction = SomeRef(aTransactionInfo);
8254 dbInfo.mNeedsCheckpoint = true;
8255 }
8256
8257 aTransactionInfo.SetRunning();
8258
8259 return true;
8260}
8261
8262void ConnectionPool::NoteFinishedTransaction(uint64_t aTransactionId) {
8263 AssertIsOnOwningThread();
8264
8265 AUTO_PROFILER_LABEL("ConnectionPool::NoteFinishedTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8265( "ConnectionPool::NoteFinishedTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8266
8267 auto* const transactionInfo = mTransactions.Get(aTransactionId);
8268 MOZ_ASSERT(transactionInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("transactionInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8268)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")"
); do { MOZ_CrashSequence(__null, 8268); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8269 MOZ_ASSERT(transactionInfo->mRunning)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo->mRunning)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo->mRunning
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"transactionInfo->mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8269); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mRunning"
")"); do { MOZ_CrashSequence(__null, 8269); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8270 MOZ_ASSERT(transactionInfo->mFinished)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo->mFinished)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(transactionInfo->mFinished
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"transactionInfo->mFinished", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8270); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mFinished"
")"); do { MOZ_CrashSequence(__null, 8270); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8271
8272 transactionInfo->mRunning = false;
8273
8274 DatabaseInfo& dbInfo = transactionInfo->mDatabaseInfo;
8275 MOZ_ASSERT(mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabases.Get(transactionInfo->mDatabaseId) == &
dbInfo)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDatabases.Get(transactionInfo->mDatabaseId) == &
dbInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8275)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo"
")"); do { MOZ_CrashSequence(__null, 8275); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8276 MOZ_ASSERT(dbInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mEventTarget))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8276)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8276); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8277
8278 // Schedule the next write transaction if there are any queued.
8279 if (dbInfo.mRunningWriteTransaction &&
8280 dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)) {
8281 MOZ_ASSERT(transactionInfo->mIsWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(transactionInfo->mIsWriteTransaction)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(transactionInfo->mIsWriteTransaction))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("transactionInfo->mIsWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8281)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mIsWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 8281); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8282 MOZ_ASSERT(dbInfo.mNeedsCheckpoint)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo.mNeedsCheckpoint)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mNeedsCheckpoint))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("dbInfo.mNeedsCheckpoint"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8282)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mNeedsCheckpoint"
")"); do { MOZ_CrashSequence(__null, 8282); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8283
8284 dbInfo.mRunningWriteTransaction = Nothing();
8285
8286 if (!dbInfo.mScheduledWriteTransactions.IsEmpty()) {
8287 const auto nextWriteTransaction = dbInfo.mScheduledWriteTransactions[0];
8288
8289 dbInfo.mScheduledWriteTransactions.RemoveElementAt(0);
8290
8291 MOZ_ALWAYS_TRUE(ScheduleTransaction(*nextWriteTransaction,do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction
, false)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "ScheduleTransaction(*nextWriteTransaction, false)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8292); AnnotateMozCrashReason("MOZ_CRASH(" "ScheduleTransaction(*nextWriteTransaction, false)"
")"); do { MOZ_CrashSequence(__null, 8292); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8292 /* aFromQueuedTransactions */ false))do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction
, false)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "ScheduleTransaction(*nextWriteTransaction, false)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8292); AnnotateMozCrashReason("MOZ_CRASH(" "ScheduleTransaction(*nextWriteTransaction, false)"
")"); do { MOZ_CrashSequence(__null, 8292); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8293 }
8294 }
8295
8296 for (const auto& objectStoreName : transactionInfo->mObjectStoreNames) {
8297 TransactionInfoPair* blockInfo =
8298 dbInfo.mBlockingTransactions.Get(objectStoreName);
8299 MOZ_ASSERT(blockInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(blockInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(blockInfo))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("blockInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8299); AnnotateMozCrashReason("MOZ_ASSERT" "(" "blockInfo" ")"
); do { MOZ_CrashSequence(__null, 8299); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8300
8301 if (transactionInfo->mIsWriteTransaction && blockInfo->mLastBlockingReads &&
8302 blockInfo->mLastBlockingReads.refEquals(*transactionInfo)) {
8303 blockInfo->mLastBlockingReads = Nothing();
8304 }
8305
8306 blockInfo->mLastBlockingWrites.RemoveElement(transactionInfo);
8307 }
8308
8309 transactionInfo->RemoveBlockingTransactions();
8310
8311 if (transactionInfo->mIsWriteTransaction) {
8312 MOZ_ASSERT(dbInfo.mWriteTransactionCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo.mWriteTransactionCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mWriteTransactionCount
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"dbInfo.mWriteTransactionCount", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mWriteTransactionCount"
")"); do { MOZ_CrashSequence(__null, 8312); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8313 dbInfo.mWriteTransactionCount--;
8314 } else {
8315 MOZ_ASSERT(dbInfo.mReadTransactionCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbInfo.mReadTransactionCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbInfo.mReadTransactionCount
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"dbInfo.mReadTransactionCount", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8315); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mReadTransactionCount"
")"); do { MOZ_CrashSequence(__null, 8315); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8316 dbInfo.mReadTransactionCount--;
8317 }
8318
8319 mTransactions.Remove(aTransactionId);
8320
8321 if (!dbInfo.TotalTransactionCount()) {
8322 MOZ_ASSERT(!dbInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!dbInfo.mIdle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!dbInfo.mIdle))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!dbInfo.mIdle",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8322);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mIdle" ")")
; do { MOZ_CrashSequence(__null, 8322); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8323 dbInfo.mIdle = true;
8324
8325 NoteIdleDatabase(dbInfo);
8326 }
8327}
8328
8329void ConnectionPool::ScheduleQueuedTransactions() {
8330 AssertIsOnOwningThread();
8331 MOZ_ASSERT(!mQueuedTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mQueuedTransactions.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mQueuedTransactions.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mQueuedTransactions.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8331); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mQueuedTransactions.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8331); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8332
8333 AUTO_PROFILER_LABEL("ConnectionPool::ScheduleQueuedTransactions", DOM)mozilla::AutoProfilerLabel raiiObject8333( "ConnectionPool::ScheduleQueuedTransactions"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8334
8335 const auto foundIt = std::find_if(
8336 mQueuedTransactions.begin(), mQueuedTransactions.end(),
8337 [&me = *this](const auto& queuedTransaction) {
8338 return !me.ScheduleTransaction(*queuedTransaction,
8339 /* aFromQueuedTransactions */ true);
8340 });
8341
8342 mQueuedTransactions.RemoveElementsRange(mQueuedTransactions.begin(), foundIt);
8343
8344 AdjustIdleTimer();
8345}
8346
8347void ConnectionPool::NoteIdleDatabase(DatabaseInfo& aDatabaseInfo) {
8348 AssertIsOnOwningThread();
8349 MOZ_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8349)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { MOZ_CrashSequence(__null, 8349); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8350 MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8350)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8350); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8351 MOZ_ASSERT(!mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mIdleDatabases.Contains(&aDatabaseInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&aDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8351)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8351); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8352
8353 AUTO_PROFILER_LABEL("ConnectionPool::NoteIdleDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8353( "ConnectionPool::NoteIdleDatabase"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8354
8355 const bool otherDatabasesWaiting = !mQueuedTransactions.IsEmpty();
8356
8357 // We check mShutdownRequested because when it is true, mIdleTimer is null.
8358 if (mShutdownRequested || otherDatabasesWaiting ||
8359 aDatabaseInfo.mCloseOnIdle) {
8360 // Make sure we close the connection if we're shutting down or giving the
8361 // thread to another database.
8362 CloseDatabase(aDatabaseInfo);
8363
8364 if (otherDatabasesWaiting) {
8365 ScheduleQueuedTransactions();
8366 }
8367
8368 return;
8369 }
8370
8371 mIdleDatabases.InsertElementSorted(IdleDatabaseInfo{aDatabaseInfo});
8372
8373 AdjustIdleTimer();
8374}
8375
8376void ConnectionPool::NoteClosedDatabase(DatabaseInfo& aDatabaseInfo) {
8377 AssertIsOnOwningThread();
8378 MOZ_ASSERT(aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mClosing))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mClosing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8378)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mClosing"
")"); do { MOZ_CrashSequence(__null, 8378); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8379 MOZ_ASSERT(!mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mIdleDatabases.Contains(&aDatabaseInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mIdleDatabases.Contains(&aDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8379)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8379); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8380
8381 AUTO_PROFILER_LABEL("ConnectionPool::NoteClosedDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8381( "ConnectionPool::NoteClosedDatabase"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8382
8383 aDatabaseInfo.mClosing = false;
8384
8385 // Schedule any transactions that were started while we were closing the
8386 // connection.
8387 if (!mQueuedTransactions.IsEmpty()) {
8388 ScheduleQueuedTransactions();
8389 } else if (!aDatabaseInfo.TotalTransactionCount() && !mShutdownRequested) {
8390 AdjustIdleTimer();
8391 }
8392
8393 // Schedule any transactions that were started while we were closing the
8394 // connection.
8395 if (aDatabaseInfo.TotalTransactionCount()) {
8396 auto& scheduledTransactions =
8397 aDatabaseInfo.mTransactionsScheduledDuringClose;
8398
8399 MOZ_ASSERT(!scheduledTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!scheduledTransactions.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!scheduledTransactions.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!scheduledTransactions.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8399); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!scheduledTransactions.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8399); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8400
8401 for (const auto& scheduledTransaction : scheduledTransactions) {
8402 Unused << ScheduleTransaction(*scheduledTransaction,
8403 /* aFromQueuedTransactions */ false);
8404 }
8405
8406 scheduledTransactions.Clear();
8407
8408 return;
8409 }
8410
8411 // There are no more transactions and the connection has been closed. We're
8412 // done with this database.
8413 {
8414 MutexAutoLock lock(mDatabasesMutex);
8415
8416 mDatabases.Remove(aDatabaseInfo.mDatabaseId);
8417 }
8418
8419 // That just deleted |aDatabaseInfo|, we must not access that below.
8420
8421 // See if we need to fire any complete callbacks now that the database is
8422 // finished.
8423 mCompleteCallbacks.RemoveLastElements(
8424 mCompleteCallbacks.end() -
8425 std::remove_if(mCompleteCallbacks.begin(), mCompleteCallbacks.end(),
8426 [&me = *this](const auto& completeCallback) {
8427 return me.MaybeFireCallback(completeCallback.get());
8428 }));
8429
8430 // If that was the last database and we're supposed to be shutting down then
8431 // we are finished.
8432 if (mShutdownRequested && !mDatabases.Count()) {
8433 MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8433)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { MOZ_CrashSequence(__null, 8433); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8434 Cleanup();
8435 }
8436}
8437
8438bool ConnectionPool::MaybeFireCallback(DatabaseCompleteCallback* aCallback) {
8439 AssertIsOnOwningThread();
8440 MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8440); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { MOZ_CrashSequence(__null, 8440); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8441 MOZ_ASSERT(!aCallback->mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aCallback->mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aCallback->mDatabaseId.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!aCallback->mDatabaseId.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCallback->mDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8441); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8442 MOZ_ASSERT(aCallback->mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback->mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback->mCallback))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback->mCallback"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8442)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback->mCallback"
")"); do { MOZ_CrashSequence(__null, 8442); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8443
8444 AUTO_PROFILER_LABEL("ConnectionPool::MaybeFireCallback", DOM)mozilla::AutoProfilerLabel raiiObject8444( "ConnectionPool::MaybeFireCallback"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8445
8446 if (mDatabases.Get(aCallback->mDatabaseId)) {
8447 return false;
8448 }
8449
8450 Unused << aCallback->mCallback->Run();
8451 return true;
8452}
8453
8454void ConnectionPool::PerformIdleDatabaseMaintenance(
8455 DatabaseInfo& aDatabaseInfo) {
8456 AssertIsOnOwningThread();
8457 MOZ_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8457)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { MOZ_CrashSequence(__null, 8457); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8458 MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8458)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8458); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8459 MOZ_ASSERT(aDatabaseInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mIdle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mIdle))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mIdle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8459)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mIdle"
")"); do { MOZ_CrashSequence(__null, 8459); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8460 MOZ_ASSERT(!aDatabaseInfo.mCloseOnIdle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.mCloseOnIdle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mCloseOnIdle)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mCloseOnIdle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8460)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mCloseOnIdle"
")"); do { MOZ_CrashSequence(__null, 8460); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8461 MOZ_ASSERT(!aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mClosing))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mClosing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8461)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing"
")"); do { MOZ_CrashSequence(__null, 8461); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8462 MOZ_ASSERT(mIdleDatabases.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleDatabases.Contains(&aDatabaseInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mIdleDatabases.Contains(&aDatabaseInfo)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mIdleDatabases.Contains(&aDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8462)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8462); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8463 MOZ_ASSERT(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8463)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8463); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8464
8465 const bool neededCheckpoint = aDatabaseInfo.mNeedsCheckpoint;
8466
8467 aDatabaseInfo.mNeedsCheckpoint = false;
8468 aDatabaseInfo.mIdle = false;
8469
8470 auto idleConnectionRunnable =
8471 MakeRefPtr<IdleConnectionRunnable>(aDatabaseInfo, neededCheckpoint);
8472
8473 mDatabasesPerformingIdleMaintenance.AppendElement(
8474 PerformingIdleMaintenanceDatabaseInfo{aDatabaseInfo,
8475 idleConnectionRunnable});
8476
8477 MOZ_ALWAYS_SUCCEEDS(aDatabaseInfo.mEventTarget->Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable
.forget(), nsIEventTarget::DISPATCH_NORMAL))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8478)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 8478); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8478 idleConnectionRunnable.forget(), NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable
.forget(), nsIEventTarget::DISPATCH_NORMAL))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8478)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 8478); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8479}
8480
8481void ConnectionPool::CloseDatabase(DatabaseInfo& aDatabaseInfo) const {
8482 AssertIsOnOwningThread();
8483 MOZ_DIAGNOSTIC_ASSERT(!aDatabaseInfo.TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.TotalTransactionCount())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!aDatabaseInfo.TotalTransactionCount()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!aDatabaseInfo.TotalTransactionCount()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8483)
; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { MOZ_CrashSequence(__null, 8483); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8484 MOZ_ASSERT(aDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mEventTarget))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8484)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8484); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8485 MOZ_ASSERT(!aDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseInfo.mClosing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseInfo.mClosing))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseInfo.mClosing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8485)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing"
")"); do { MOZ_CrashSequence(__null, 8485); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8486
8487 aDatabaseInfo.mIdle = false;
8488 aDatabaseInfo.mNeedsCheckpoint = false;
8489 aDatabaseInfo.mClosing = true;
8490
8491 MOZ_ALWAYS_SUCCEEDS(aDatabaseInfo.Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable
>(aDatabaseInfo)))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8492)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
")"); do { MOZ_CrashSequence(__null, 8492); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8492 MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable
>(aDatabaseInfo)))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8492)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
")"); do { MOZ_CrashSequence(__null, 8492); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8493}
8494
8495bool ConnectionPool::CloseDatabaseWhenIdleInternal(
8496 const nsACString& aDatabaseId) {
8497 AssertIsOnOwningThread();
8498 MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8498)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8498); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8499
8500 AUTO_PROFILER_LABEL("ConnectionPool::CloseDatabaseWhenIdleInternal", DOM)mozilla::AutoProfilerLabel raiiObject8500( "ConnectionPool::CloseDatabaseWhenIdleInternal"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8501
8502 if (DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId)) {
8503 if (mIdleDatabases.RemoveElement(dbInfo) ||
8504 mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo)) {
8505 CloseDatabase(*dbInfo);
8506 AdjustIdleTimer();
8507 } else {
8508 dbInfo->mCloseOnIdle.EnsureFlipped();
8509 }
8510
8511 return true;
8512 }
8513
8514 return false;
8515}
8516
8517ConnectionPool::ConnectionRunnable::ConnectionRunnable(
8518 DatabaseInfo& aDatabaseInfo)
8519 : Runnable("dom::indexedDB::ConnectionPool::ConnectionRunnable"),
8520 mDatabaseInfo(aDatabaseInfo),
8521 mOwningEventTarget(GetCurrentSerialEventTarget()) {
8522 AssertIsOnBackgroundThread();
8523 MOZ_ASSERT(aDatabaseInfo.mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseInfo.mConnectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseInfo.mConnectionPool
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aDatabaseInfo.mConnectionPool", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8523); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mConnectionPool"
")"); do { MOZ_CrashSequence(__null, 8523); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8524 aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread();
8525 MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOwningEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8525)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { MOZ_CrashSequence(__null, 8525); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8526}
8527
8528NS_IMETHODIMPnsresult
8529ConnectionPool::IdleConnectionRunnable::Run() {
8530 MOZ_ASSERT(!mDatabaseInfo.mIdle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseInfo.mIdle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseInfo.mIdle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseInfo.mIdle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8530)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseInfo.mIdle"
")"); do { MOZ_CrashSequence(__null, 8530); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8531
8532 const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget);
8533
8534 if (owningThread) {
8535 mDatabaseInfo.AssertIsOnConnectionThread();
8536
8537 // The connection could be null if EnsureConnection() didn't run or was not
8538 // successful in TransactionDatabaseOperationBase::RunOnConnectionThread().
8539 if (mDatabaseInfo.mConnection) {
8540 mDatabaseInfo.mConnection->DoIdleProcessing(mNeedsCheckpoint,
8541 mInterrupted);
8542 }
8543
8544 MOZ_ALWAYS_SUCCEEDS(owningThread->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8544)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 8544); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8545 return NS_OK;
8546 }
8547
8548 AssertIsOnBackgroundThread();
8549
8550 RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool;
8551 MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("connectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8551)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")"
); do { MOZ_CrashSequence(__null, 8551); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8552
8553 if (mDatabaseInfo.mClosing || mDatabaseInfo.TotalTransactionCount()) {
8554 MOZ_ASSERT(!connectionPool->mDatabasesPerformingIdleMaintenance.Contains(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!connectionPool->mDatabasesPerformingIdleMaintenance
.Contains( &mDatabaseInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!connectionPool->mDatabasesPerformingIdleMaintenance
.Contains( &mDatabaseInfo)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8555)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8555); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8555 &mDatabaseInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!connectionPool->mDatabasesPerformingIdleMaintenance
.Contains( &mDatabaseInfo))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!connectionPool->mDatabasesPerformingIdleMaintenance
.Contains( &mDatabaseInfo)))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8555)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8555); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8556 } else {
8557 MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8559)
; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8559); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8558 connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8559)
; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8559); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8559 &mDatabaseInfo))do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8559)
; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { MOZ_CrashSequence(__null, 8559); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8560
8561 connectionPool->NoteIdleDatabase(mDatabaseInfo);
8562 }
8563
8564 return NS_OK;
8565}
8566
8567NS_IMETHODIMPnsresult
8568ConnectionPool::CloseConnectionRunnable::Run() {
8569 AUTO_PROFILER_LABEL("ConnectionPool::CloseConnectionRunnable::Run", DOM)mozilla::AutoProfilerLabel raiiObject8569( "ConnectionPool::CloseConnectionRunnable::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8570
8571 if (mOwningEventTarget) {
8572 MOZ_ASSERT(mDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseInfo.mClosing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseInfo.mClosing))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo.mClosing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8572)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mClosing"
")"); do { MOZ_CrashSequence(__null, 8572); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8573
8574 const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget);
8575
8576 // The connection could be null if EnsureConnection() didn't run or was not
8577 // successful in TransactionDatabaseOperationBase::RunOnConnectionThread().
8578 if (mDatabaseInfo.mConnection) {
8579 mDatabaseInfo.AssertIsOnConnectionThread();
8580
8581 mDatabaseInfo.mConnection->Close();
8582
8583 IDB_DEBUG_LOG(("ConnectionPool closed connection 0x%p",
8584 mDatabaseInfo.mConnection.get()));
8585
8586 mDatabaseInfo.mConnection = nullptr;
8587
8588#ifdef DEBUG1
8589 mDatabaseInfo.mDEBUGConnectionEventTarget = nullptr;
8590#endif
8591 }
8592
8593 MOZ_ALWAYS_SUCCEEDS(owningThread->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8593)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 8593); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8594 return NS_OK;
8595 }
8596
8597 RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool;
8598 MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("connectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8598)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")"
); do { MOZ_CrashSequence(__null, 8598); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8599
8600 connectionPool->NoteClosedDatabase(mDatabaseInfo);
8601 return NS_OK;
8602}
8603
8604ConnectionPool::DatabaseInfo::DatabaseInfo(ConnectionPool* aConnectionPool,
8605 const nsACString& aDatabaseId)
8606 : mConnectionPool(aConnectionPool),
8607 mDatabaseId(aDatabaseId),
8608 mReadTransactionCount(0),
8609 mWriteTransactionCount(0),
8610 mNeedsCheckpoint(false),
8611 mIdle(false),
8612 mClosing(false)
8613#ifdef DEBUG1
8614 ,
8615 mDEBUGConnectionEventTarget(nullptr)
8616#endif
8617{
8618 AssertIsOnBackgroundThread();
8619 MOZ_ASSERT(aConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aConnectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8619)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool" ")"
); do { MOZ_CrashSequence(__null, 8619); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8620 aConnectionPool->AssertIsOnOwningThread();
8621 MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8621)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8621); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8622
8623 MOZ_COUNT_CTOR(ConnectionPool::DatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::DatabaseInfo
>, "Token '" "ConnectionPool::DatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::DatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::DatabaseInfo"
, sizeof(*this)); } while (0)
;
8624}
8625
8626ConnectionPool::DatabaseInfo::~DatabaseInfo() {
8627 AssertIsOnBackgroundThread();
8628 MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { MOZ_CrashSequence(__null, 8628); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8629 MOZ_ASSERT(mScheduledWriteTransactions.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mScheduledWriteTransactions.IsEmpty())>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mScheduledWriteTransactions.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mScheduledWriteTransactions.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8629)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mScheduledWriteTransactions.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8629); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8630 MOZ_ASSERT(!mRunningWriteTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mRunningWriteTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mRunningWriteTransaction)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mRunningWriteTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8630)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunningWriteTransaction"
")"); do { MOZ_CrashSequence(__null, 8630); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8631 MOZ_ASSERT(!TotalTransactionCount())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!TotalTransactionCount())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!TotalTransactionCount()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!TotalTransactionCount()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8631)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!TotalTransactionCount()"
")"); do { MOZ_CrashSequence(__null, 8631); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8632
8633 MOZ_COUNT_DTOR(ConnectionPool::DatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::DatabaseInfo
>, "Token '" "ConnectionPool::DatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::DatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::DatabaseInfo"
, sizeof(*this)); } while (0)
;
8634}
8635
8636nsresult ConnectionPool::DatabaseInfo::Dispatch(
8637 already_AddRefed<nsIRunnable> aRunnable) {
8638 nsCOMPtr<nsIRunnable> runnable = aRunnable;
8639
8640#ifdef DEBUG1
8641 if (kDEBUGTransactionThreadSleepMS) {
8642 runnable = MakeRefPtr<TransactionRunnable>(std::move(runnable));
8643 }
8644#endif
8645
8646 return mEventTarget->Dispatch(runnable.forget(), NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
8647}
8648
8649ConnectionPool::DatabaseCompleteCallback::DatabaseCompleteCallback(
8650 const nsCString& aDatabaseId, nsIRunnable* aCallback)
8651 : mDatabaseId(aDatabaseId), mCallback(aCallback) {
8652 AssertIsOnBackgroundThread();
8653 MOZ_ASSERT(!mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8653)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8653); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8654 MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8654); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { MOZ_CrashSequence(__null, 8654); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8655
8656 MOZ_COUNT_CTOR(ConnectionPool::DatabaseCompleteCallback)do { static_assert(std::is_class_v<ConnectionPool::DatabaseCompleteCallback
>, "Token '" "ConnectionPool::DatabaseCompleteCallback" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::DatabaseCompleteCallback>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::DatabaseCompleteCallback"
, sizeof(*this)); } while (0)
;
8657}
8658
8659ConnectionPool::DatabaseCompleteCallback::~DatabaseCompleteCallback() {
8660 AssertIsOnBackgroundThread();
8661
8662 MOZ_COUNT_DTOR(ConnectionPool::DatabaseCompleteCallback)do { static_assert(std::is_class_v<ConnectionPool::DatabaseCompleteCallback
>, "Token '" "ConnectionPool::DatabaseCompleteCallback" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::DatabaseCompleteCallback>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::DatabaseCompleteCallback"
, sizeof(*this)); } while (0)
;
8663}
8664
8665ConnectionPool::FinishCallbackWrapper::FinishCallbackWrapper(
8666 ConnectionPool* aConnectionPool, uint64_t aTransactionId,
8667 FinishCallback* aCallback)
8668 : Runnable("dom::indexedDB::ConnectionPool::FinishCallbackWrapper"),
8669 mConnectionPool(aConnectionPool),
8670 mCallback(aCallback),
8671 mOwningEventTarget(GetCurrentSerialEventTarget()),
8672 mTransactionId(aTransactionId),
8673 mHasRunOnce(false) {
8674 AssertIsOnBackgroundThread();
8675 MOZ_ASSERT(aConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aConnectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8675)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool" ")"
); do { MOZ_CrashSequence(__null, 8675); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8676 MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8676); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { MOZ_CrashSequence(__null, 8676); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8677 MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOwningEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8677)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { MOZ_CrashSequence(__null, 8677); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8678}
8679
8680ConnectionPool::FinishCallbackWrapper::~FinishCallbackWrapper() {
8681 MOZ_ASSERT(!mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mConnectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mConnectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mConnectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8681)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnectionPool" ")"
); do { MOZ_CrashSequence(__null, 8681); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8682 MOZ_ASSERT(!mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mCallback))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8682); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback"
")"); do { MOZ_CrashSequence(__null, 8682); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8683}
8684
8685nsresult ConnectionPool::FinishCallbackWrapper::Run() {
8686 MOZ_ASSERT(mConnectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mConnectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8686)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnectionPool" ")"
); do { MOZ_CrashSequence(__null, 8686); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8687 MOZ_ASSERT(mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8687); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")"
); do { MOZ_CrashSequence(__null, 8687); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8688 MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOwningEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8688)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { MOZ_CrashSequence(__null, 8688); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8689
8690 AUTO_PROFILER_LABEL("ConnectionPool::FinishCallbackWrapper::Run", DOM)mozilla::AutoProfilerLabel raiiObject8690( "ConnectionPool::FinishCallbackWrapper::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8691
8692 if (!mHasRunOnce) {
8693 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8693)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 8693); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8694
8695 mHasRunOnce = true;
8696
8697 Unused << mCallback->Run();
8698
8699 MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8699)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 8699); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8700
8701 return NS_OK;
8702 }
8703
8704 mConnectionPool->AssertIsOnOwningThread();
8705 MOZ_ASSERT(mHasRunOnce)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mHasRunOnce)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mHasRunOnce))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mHasRunOnce", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mHasRunOnce"
")"); do { MOZ_CrashSequence(__null, 8705); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8706
8707 RefPtr<ConnectionPool> connectionPool = std::move(mConnectionPool);
8708
8709 connectionPool->FinishOp(mTransactionId);
8710
8711 RefPtr<FinishCallback> callback = std::move(mCallback);
8712
8713 callback->TransactionFinishedBeforeUnblock();
8714
8715 connectionPool->NoteFinishedTransaction(mTransactionId);
8716
8717 callback->TransactionFinishedAfterUnblock();
8718
8719 return NS_OK;
8720}
8721
8722uint32_t ConnectionPool::sSerialNumber = 0u;
8723
8724#ifdef DEBUG1
8725
8726ConnectionPool::TransactionRunnable::TransactionRunnable(
8727 nsCOMPtr<nsIRunnable> aRunnable)
8728 : Runnable("dom::indexedDB::ConnectionPool::TransactionRunnable"),
8729 mRunnable(std::move(aRunnable)) {
8730 AssertIsOnBackgroundThread();
8731 MOZ_ASSERT(kDEBUGTransactionThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(kDEBUGTransactionThreadSleepMS)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(kDEBUGTransactionThreadSleepMS
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"kDEBUGTransactionThreadSleepMS", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8731); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGTransactionThreadSleepMS"
")"); do { MOZ_CrashSequence(__null, 8731); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8732}
8733
8734nsresult ConnectionPool::TransactionRunnable::Run() {
8735 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8735)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 8735); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8736
8737 QM_TRY(MOZ_TO_RESULT(mRunnable->Run())){auto tryResult968 = (ToResult(mRunnable->Run())); static_assert
(std::is_empty_v<typename decltype(tryResult968)::ok_type>
); if ((__builtin_expect(!!(tryResult968.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(mRunnable->Run())", tryResult968
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8737, mozilla::dom::quota::Severity::Error); return tryResult968
.propagateErr(); }}
;
8738
8739 MOZ_ALWAYS_TRUE(PR_Sleep(PR_MillisecondsToInterval(do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8740)
; AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
")"); do { MOZ_CrashSequence(__null, 8740); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
8740 kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS)do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8740)
; AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
")"); do { MOZ_CrashSequence(__null, 8740); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8741
8742 return NS_OK;
8743}
8744
8745#endif
8746
8747ConnectionPool::IdleResource::IdleResource(const TimeStamp& aIdleTime)
8748 : mIdleTime(aIdleTime) {
8749 AssertIsOnBackgroundThread();
8750 MOZ_ASSERT(!aIdleTime.IsNull())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aIdleTime.IsNull())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aIdleTime.IsNull()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!aIdleTime.IsNull()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8750)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIdleTime.IsNull()"
")"); do { MOZ_CrashSequence(__null, 8750); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8751
8752 MOZ_COUNT_CTOR(ConnectionPool::IdleResource)do { static_assert(std::is_class_v<ConnectionPool::IdleResource
>, "Token '" "ConnectionPool::IdleResource" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::IdleResource>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleResource"
, sizeof(*this)); } while (0)
;
8753}
8754
8755ConnectionPool::IdleResource::~IdleResource() {
8756 AssertIsOnBackgroundThread();
8757
8758 MOZ_COUNT_DTOR(ConnectionPool::IdleResource)do { static_assert(std::is_class_v<ConnectionPool::IdleResource
>, "Token '" "ConnectionPool::IdleResource" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::IdleResource>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::IdleResource"
, sizeof(*this)); } while (0)
;
8759}
8760
8761ConnectionPool::IdleDatabaseInfo::IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo)
8762 : IdleResource(
8763 TimeStamp::NowLoRes() +
8764 (aDatabaseInfo.mIdle
8765 ? TimeDuration::FromMilliseconds(kConnectionIdleMaintenanceMS)
8766 : TimeDuration::FromMilliseconds(kConnectionIdleCloseMS))),
8767 mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)) {
8768 AssertIsOnBackgroundThread();
8769
8770 MOZ_COUNT_CTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo
>, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::IdleDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleDatabaseInfo"
, sizeof(*this)); } while (0)
;
8771}
8772
8773ConnectionPool::IdleDatabaseInfo::~IdleDatabaseInfo() {
8774 AssertIsOnBackgroundThread();
8775
8776 MOZ_COUNT_DTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo
>, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::IdleDatabaseInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::IdleDatabaseInfo"
, sizeof(*this)); } while (0)
;
8777}
8778
8779ConnectionPool::PerformingIdleMaintenanceDatabaseInfo::
8780 PerformingIdleMaintenanceDatabaseInfo(
8781 DatabaseInfo& aDatabaseInfo,
8782 RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable)
8783 : mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)),
8784 mIdleConnectionRunnable(std::move(aIdleConnectionRunnable)) {
8785 AssertIsOnBackgroundThread();
8786 MOZ_ASSERT(mIdleConnectionRunnable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mIdleConnectionRunnable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mIdleConnectionRunnable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mIdleConnectionRunnable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8786)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleConnectionRunnable"
")"); do { MOZ_CrashSequence(__null, 8786); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8787
8788 MOZ_COUNT_CTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
"' is not a class type."); static_assert(!std::is_base_of<
nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
, sizeof(*this)); } while (0)
;
8789}
8790
8791ConnectionPool::PerformingIdleMaintenanceDatabaseInfo::
8792 ~PerformingIdleMaintenanceDatabaseInfo() {
8793 AssertIsOnBackgroundThread();
8794
8795 MOZ_COUNT_DTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
"' is not a class type."); static_assert(!std::is_base_of<
nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo
>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo"
, sizeof(*this)); } while (0)
;
8796}
8797
8798ConnectionPool::TransactionInfo::TransactionInfo(
8799 DatabaseInfo& aDatabaseInfo, const nsID& aBackgroundChildLoggingId,
8800 const nsACString& aDatabaseId, uint64_t aTransactionId,
8801 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
8802 bool aIsWriteTransaction, TransactionDatabaseOperationBase* aTransactionOp)
8803 : mDatabaseInfo(aDatabaseInfo),
8804 mBackgroundChildLoggingId(aBackgroundChildLoggingId),
8805 mDatabaseId(aDatabaseId),
8806 mTransactionId(aTransactionId),
8807 mLoggingSerialNumber(aLoggingSerialNumber),
8808 mObjectStoreNames(aObjectStoreNames.Clone()),
8809 mIsWriteTransaction(aIsWriteTransaction),
8810 mRunning(false),
8811 mRunningOp(false) {
8812 AssertIsOnBackgroundThread();
8813 aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread();
8814
8815 MOZ_COUNT_CTOR(ConnectionPool::TransactionInfo)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfo
>, "Token '" "ConnectionPool::TransactionInfo" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::TransactionInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::TransactionInfo"
, sizeof(*this)); } while (0)
;
8816
8817 if (aTransactionOp) {
8818 mQueuedOps.Push(aTransactionOp);
8819 }
8820}
8821
8822ConnectionPool::TransactionInfo::~TransactionInfo() {
8823 AssertIsOnBackgroundThread();
8824 MOZ_ASSERT(!mBlockedOn.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mBlockedOn.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mBlockedOn.Count()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!mBlockedOn.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8824)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBlockedOn.Count()"
")"); do { MOZ_CrashSequence(__null, 8824); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8825 MOZ_ASSERT(mQueuedOps.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mQueuedOps.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mQueuedOps.IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mQueuedOps.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8825)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedOps.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 8825); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8826 MOZ_ASSERT(!mRunning)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mRunning)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mRunning))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunning" ")"
); do { MOZ_CrashSequence(__null, 8826); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8827 MOZ_ASSERT(!mRunningOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mRunningOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mRunningOp))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!mRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8827); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunningOp"
")"); do { MOZ_CrashSequence(__null, 8827); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8828 MOZ_ASSERT(mFinished)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFinished)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFinished))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFinished", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8828); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFinished" ")"
); do { MOZ_CrashSequence(__null, 8828); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8829
8830 MOZ_COUNT_DTOR(ConnectionPool::TransactionInfo)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfo
>, "Token '" "ConnectionPool::TransactionInfo" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::TransactionInfo>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::TransactionInfo"
, sizeof(*this)); } while (0)
;
8831}
8832
8833void ConnectionPool::TransactionInfo::AddBlockingTransaction(
8834 TransactionInfo& aTransactionInfo) {
8835 AssertIsOnBackgroundThread();
8836
8837 // XXX Does it really make sense to have both mBlocking and mBlockingOrdered,
8838 // just to reduce the algorithmic complexity of this Contains check? This was
8839 // mentioned in the context of Bug 1290853, but no real justification was
8840 // given. There was the suggestion of encapsulating this in an
8841 // insertion-ordered hashtable implementation, which seems like a good idea.
8842 // If we had that, this would be the appropriate data structure to use here.
8843 if (mBlocking.EnsureInserted(&aTransactionInfo)) {
8844 mBlockingOrdered.AppendElement(WrapNotNullUnchecked(&aTransactionInfo));
8845 }
8846}
8847
8848void ConnectionPool::TransactionInfo::RemoveBlockingTransactions() {
8849 AssertIsOnBackgroundThread();
8850
8851 for (const auto blockedInfo : mBlockingOrdered) {
8852 blockedInfo->MaybeUnblock(*this);
8853 }
8854
8855 mBlocking.Clear();
8856 mBlockingOrdered.Clear();
8857}
8858
8859void ConnectionPool::TransactionInfo::SetRunning() {
8860 AssertIsOnBackgroundThread();
8861 MOZ_ASSERT(!mRunning)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mRunning)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mRunning))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8861); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunning" ")"
); do { MOZ_CrashSequence(__null, 8861); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8862
8863 AUTO_PROFILER_LABEL("ConnectionPool::FinishOp", DOM)mozilla::AutoProfilerLabel raiiObject8863( "ConnectionPool::FinishOp"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8864
8865 mRunning = true;
8866
8867 if (!mQueuedOps.IsEmpty()) {
8868 mRunningOp = true;
8869
8870 nsCOMPtr<nsIRunnable> runnable = mQueuedOps.Pop();
8871
8872 MOZ_ALWAYS_SUCCEEDS(mDatabaseInfo.Dispatch(runnable.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mDatabaseInfo.Dispatch(runnable.forget()))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8872)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))"
")"); do { MOZ_CrashSequence(__null, 8872); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8873 }
8874}
8875
8876void ConnectionPool::TransactionInfo::StartOp(nsCOMPtr<nsIRunnable> aRunnable) {
8877 AssertIsOnBackgroundThread();
8878
8879 if (mRunning) {
8880 MOZ_ASSERT(mDatabaseInfo.mEventTarget)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseInfo.mEventTarget)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseInfo.mEventTarget))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo.mEventTarget"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8880)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mEventTarget"
")"); do { MOZ_CrashSequence(__null, 8880); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8881 MOZ_ASSERT(!mDatabaseInfo.mClosing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseInfo.mClosing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseInfo.mClosing))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseInfo.mClosing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8881)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseInfo.mClosing"
")"); do { MOZ_CrashSequence(__null, 8881); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8882 MOZ_ASSERT_IF(mIsWriteTransaction,do { if (mIsWriteTransaction) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mDatabaseInfo.mRunningWriteTransaction
&& mDatabaseInfo.mRunningWriteTransaction.refEquals(
*this))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo
.mRunningWriteTransaction.refEquals(*this)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8884)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
")"); do { MOZ_CrashSequence(__null, 8884); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8883 mDatabaseInfo.mRunningWriteTransaction &&do { if (mIsWriteTransaction) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mDatabaseInfo.mRunningWriteTransaction
&& mDatabaseInfo.mRunningWriteTransaction.refEquals(
*this))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo
.mRunningWriteTransaction.refEquals(*this)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8884)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
")"); do { MOZ_CrashSequence(__null, 8884); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8884 mDatabaseInfo.mRunningWriteTransaction.refEquals(*this))do { if (mIsWriteTransaction) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mDatabaseInfo.mRunningWriteTransaction
&& mDatabaseInfo.mRunningWriteTransaction.refEquals(
*this))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo
.mRunningWriteTransaction.refEquals(*this)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8884)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)"
")"); do { MOZ_CrashSequence(__null, 8884); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8885
8886 if (!mRunningOp) {
8887 mRunningOp = true;
8888
8889 MOZ_ALWAYS_SUCCEEDS(mDatabaseInfo.Dispatch(aRunnable.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mDatabaseInfo.Dispatch(aRunnable.forget()))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(aRunnable.forget()))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8889)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(aRunnable.forget()))"
")"); do { MOZ_CrashSequence(__null, 8889); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8890 } else {
8891 mQueuedOps.Push(std::move(aRunnable));
8892 }
8893 } else {
8894 mQueuedOps.Push(std::move(aRunnable));
8895 }
8896}
8897
8898void ConnectionPool::TransactionInfo::FinishOp() {
8899 AssertIsOnBackgroundThread();
8900 MOZ_ASSERT(mRunning)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRunning)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRunning))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mRunning", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8900); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRunning" ")"
); do { MOZ_CrashSequence(__null, 8900); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8901 MOZ_ASSERT(mRunningOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRunningOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRunningOp))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 8901); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRunningOp"
")"); do { MOZ_CrashSequence(__null, 8901); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8902
8903 if (mQueuedOps.IsEmpty()) {
8904 mRunningOp = false;
8905 } else {
8906 nsCOMPtr<nsIRunnable> runnable = mQueuedOps.Pop();
8907
8908 MOZ_ALWAYS_SUCCEEDS(mDatabaseInfo.Dispatch(runnable.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mDatabaseInfo.Dispatch(runnable.forget()))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8908)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))"
")"); do { MOZ_CrashSequence(__null, 8908); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
8909 }
8910}
8911
8912void ConnectionPool::TransactionInfo::MaybeUnblock(
8913 TransactionInfo& aTransactionInfo) {
8914 AssertIsOnBackgroundThread();
8915 MOZ_ASSERT(mBlockedOn.Contains(&aTransactionInfo))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mBlockedOn.Contains(&aTransactionInfo))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mBlockedOn.Contains(&aTransactionInfo)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mBlockedOn.Contains(&aTransactionInfo)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8915)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBlockedOn.Contains(&aTransactionInfo)"
")"); do { MOZ_CrashSequence(__null, 8915); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8916
8917 mBlockedOn.Remove(&aTransactionInfo);
8918 if (mBlockedOn.IsEmpty()) {
8919 ConnectionPool* connectionPool = mDatabaseInfo.mConnectionPool;
8920 MOZ_ASSERT(connectionPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connectionPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connectionPool))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("connectionPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8920)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")"
); do { MOZ_CrashSequence(__null, 8920); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8921 connectionPool->AssertIsOnOwningThread();
8922
8923 Unused << connectionPool->ScheduleTransaction(
8924 *this,
8925 /* aFromQueuedTransactions */ false);
8926 }
8927}
8928
8929#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
8930ConnectionPool::TransactionInfoPair::TransactionInfoPair() {
8931 AssertIsOnBackgroundThread();
8932
8933 MOZ_COUNT_CTOR(ConnectionPool::TransactionInfoPair)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfoPair
>, "Token '" "ConnectionPool::TransactionInfoPair" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::TransactionInfoPair>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::TransactionInfoPair"
, sizeof(*this)); } while (0)
;
8934}
8935
8936ConnectionPool::TransactionInfoPair::~TransactionInfoPair() {
8937 AssertIsOnBackgroundThread();
8938
8939 MOZ_COUNT_DTOR(ConnectionPool::TransactionInfoPair)do { static_assert(std::is_class_v<ConnectionPool::TransactionInfoPair
>, "Token '" "ConnectionPool::TransactionInfoPair" "' is not a class type."
); static_assert(!std::is_base_of<nsISupports, ConnectionPool
::TransactionInfoPair>::value, "nsISupports classes don't need to call MOZ_COUNT_CTOR or "
"MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "ConnectionPool::TransactionInfoPair"
, sizeof(*this)); } while (0)
;
8940}
8941#endif
8942
8943/*******************************************************************************
8944 * Metadata classes
8945 ******************************************************************************/
8946
8947bool FullObjectStoreMetadata::HasLiveIndexes() const {
8948 AssertIsOnBackgroundThread();
8949
8950 return std::any_of(mIndexes.Values().cbegin(), mIndexes.Values().cend(),
8951 [](const auto& entry) { return !entry->mDeleted; });
8952}
8953
8954SafeRefPtr<FullDatabaseMetadata> FullDatabaseMetadata::Duplicate() const {
8955 AssertIsOnBackgroundThread();
8956
8957 // FullDatabaseMetadata contains two hash tables of pointers that we need to
8958 // duplicate so we can't just use the copy constructor.
8959 auto newMetadata = MakeSafeRefPtr<FullDatabaseMetadata>(mCommonMetadata);
34
Calling 'MakeSafeRefPtr<mozilla::dom::indexedDB::(anonymous namespace)::FullDatabaseMetadata, const mozilla::dom::indexedDB::DatabaseMetadata &>'
38
Returned allocated memory
8960
8961 newMetadata->mDatabaseId = mDatabaseId;
8962 newMetadata->mFilePath = mFilePath;
8963 newMetadata->mNextObjectStoreId = mNextObjectStoreId;
8964 newMetadata->mNextIndexId = mNextIndexId;
8965
8966 for (const auto& objectStoreEntry : mObjectStores) {
8967 const auto& objectStoreValue = objectStoreEntry.GetData();
8968
8969 auto newOSMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>(
8970 objectStoreValue->mCommonMetadata, [&objectStoreValue] {
8971 const auto&& srcLocked = objectStoreValue->mAutoIncrementIds.Lock();
8972 return *srcLocked;
8973 }());
8974
8975 for (const auto& indexEntry : objectStoreValue->mIndexes) {
8976 const auto& value = indexEntry.GetData();
8977
8978 auto newIndexMetadata = MakeSafeRefPtr<FullIndexMetadata>();
8979
8980 newIndexMetadata->mCommonMetadata = value->mCommonMetadata;
8981
8982 if (NS_WARN_IF(!newOSMetadata->mIndexes.InsertOrUpdate(NS_warn_if_impl(!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry
.GetKey(), std::move(newIndexMetadata), fallible), "!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry.GetKey(), std::move(newIndexMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8983)
8983 indexEntry.GetKey(), std::move(newIndexMetadata), fallible))NS_warn_if_impl(!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry
.GetKey(), std::move(newIndexMetadata), fallible), "!newOSMetadata->mIndexes.InsertOrUpdate( indexEntry.GetKey(), std::move(newIndexMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8983)
) {
8984 return nullptr;
8985 }
8986 }
8987
8988 MOZ_ASSERT(objectStoreValue->mIndexes.Count() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreValue->mIndexes.Count() == newOSMetadata
->mIndexes.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(objectStoreValue->mIndexes
.Count() == newOSMetadata->mIndexes.Count()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8989)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
")"); do { MOZ_CrashSequence(__null, 8989); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
39
Assuming the condition is true
40
Taking false branch
41
Loop condition is false. Exiting loop
8989 newOSMetadata->mIndexes.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreValue->mIndexes.Count() == newOSMetadata
->mIndexes.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(objectStoreValue->mIndexes
.Count() == newOSMetadata->mIndexes.Count()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8989)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
")"); do { MOZ_CrashSequence(__null, 8989); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8990
8991 if (NS_WARN_IF(!newMetadata->mObjectStores.InsertOrUpdate(NS_warn_if_impl(!newMetadata->mObjectStores.InsertOrUpdate
( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible
), "!newMetadata->mObjectStores.InsertOrUpdate( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8992)
42
Assuming the condition is true
43
Taking true branch
8992 objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible))NS_warn_if_impl(!newMetadata->mObjectStores.InsertOrUpdate
( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible
), "!newMetadata->mObjectStores.InsertOrUpdate( objectStoreEntry.GetKey(), std::move(newOSMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8992)
) {
8993 return nullptr;
44
Calling '~SafeRefPtr'
8994 }
8995 }
8996
8997 MOZ_ASSERT(mObjectStores.Count() == newMetadata->mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mObjectStores.Count() == newMetadata->mObjectStores
.Count())>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(mObjectStores.Count() == newMetadata
->mObjectStores.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mObjectStores.Count() == newMetadata->mObjectStores.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 8997)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStores.Count() == newMetadata->mObjectStores.Count()"
")"); do { MOZ_CrashSequence(__null, 8997); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8998
8999 return newMetadata;
9000}
9001
9002DatabaseLoggingInfo::~DatabaseLoggingInfo() {
9003 AssertIsOnBackgroundThread();
9004
9005 if (gLoggingInfoHashtable) {
9006 const nsID& backgroundChildLoggingId =
9007 mLoggingInfo.backgroundChildLoggingId();
9008
9009 MOZ_ASSERT(gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gLoggingInfoHashtable->Get(backgroundChildLoggingId
) == this)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(gLoggingInfoHashtable->Get(backgroundChildLoggingId
) == this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9009)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this"
")"); do { MOZ_CrashSequence(__null, 9009); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9010
9011 gLoggingInfoHashtable->Remove(backgroundChildLoggingId);
9012 }
9013}
9014
9015/*******************************************************************************
9016 * Factory
9017 ******************************************************************************/
9018
9019Factory::Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo,
9020 const nsACString& aSystemLocale)
9021 : mSystemLocale(aSystemLocale),
9022 mLoggingInfo(std::move(aLoggingInfo))
9023#ifdef DEBUG1
9024 ,
9025 mActorDestroyed(false)
9026#endif
9027{
9028 AssertIsOnBackgroundThread();
9029 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9029)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 9029); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9030}
9031
9032Factory::~Factory() { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9032)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9032); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
9033
9034// static
9035SafeRefPtr<Factory> Factory::Create(const LoggingInfo& aLoggingInfo,
9036 const nsACString& aSystemLocale) {
9037 AssertIsOnBackgroundThread();
9038 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9038)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 9038); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9039
9040 // Balanced in ActoryDestroy().
9041 IncreaseBusyCount();
9042
9043 MOZ_ASSERT(gLoggingInfoHashtable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gLoggingInfoHashtable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gLoggingInfoHashtable))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("gLoggingInfoHashtable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9043)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable"
")"); do { MOZ_CrashSequence(__null, 9043); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9044 RefPtr<DatabaseLoggingInfo> loggingInfo =
9045 gLoggingInfoHashtable->WithEntryHandle(
9046 aLoggingInfo.backgroundChildLoggingId(), [&](auto&& entry) {
9047 if (entry) {
9048 [[maybe_unused]] const auto& loggingInfo = entry.Data();
9049 MOZ_ASSERT(aLoggingInfo.backgroundChildLoggingId() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLoggingInfo.backgroundChildLoggingId() == loggingInfo
->Id())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aLoggingInfo.backgroundChildLoggingId
() == loggingInfo->Id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9050)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
")"); do { MOZ_CrashSequence(__null, 9050); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9050 loggingInfo->Id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLoggingInfo.backgroundChildLoggingId() == loggingInfo
->Id())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aLoggingInfo.backgroundChildLoggingId
() == loggingInfo->Id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9050)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
")"); do { MOZ_CrashSequence(__null, 9050); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9051#if !FUZZING
9052 NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo
->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9055)
; } } while (false)
9053 aLoggingInfo.nextTransactionSerialNumber() ==do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo
->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9055)
; } } while (false)
9054 loggingInfo->mLoggingInfo.nextTransactionSerialNumber(),do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo
->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9055)
; } } while (false)
9055 "NextTransactionSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextTransactionSerialNumber() == loggingInfo
->mLoggingInfo.nextTransactionSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextTransactionSerialNumber() == loggingInfo->mLoggingInfo.nextTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9055)
; } } while (false)
;
9056 NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9060)
; } } while (false)
9057 aLoggingInfo.nextVersionChangeTransactionSerialNumber() ==do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9060)
; } } while (false)
9058 loggingInfo->mLoggingInfodo { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9060)
; } } while (false)
9059 .nextVersionChangeTransactionSerialNumber(),do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9060)
; } } while (false)
9060 "NextVersionChangeTransactionSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextVersionChangeTransactionSerialNumber
() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber
())) { NS_DebugBreak(NS_DEBUG_WARNING, "NextVersionChangeTransactionSerialNumber doesn't match!"
, "aLoggingInfo.nextVersionChangeTransactionSerialNumber() == loggingInfo->mLoggingInfo .nextVersionChangeTransactionSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9060)
; } } while (false)
;
9061 NS_WARNING_ASSERTION(do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo
->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9064)
; } } while (false)
9062 aLoggingInfo.nextRequestSerialNumber() ==do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo
->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9064)
; } } while (false)
9063 loggingInfo->mLoggingInfo.nextRequestSerialNumber(),do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo
->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9064)
; } } while (false)
9064 "NextRequestSerialNumber doesn't match!")do { if (!(aLoggingInfo.nextRequestSerialNumber() == loggingInfo
->mLoggingInfo.nextRequestSerialNumber())) { NS_DebugBreak
(NS_DEBUG_WARNING, "NextRequestSerialNumber doesn't match!", "aLoggingInfo.nextRequestSerialNumber() == loggingInfo->mLoggingInfo.nextRequestSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9064)
; } } while (false)
;
9065#endif // !FUZZING
9066 } else {
9067 entry.Insert(new DatabaseLoggingInfo(aLoggingInfo));
9068 }
9069
9070 return do_AddRef(entry.Data());
9071 });
9072
9073 return MakeSafeRefPtr<Factory>(std::move(loggingInfo), aSystemLocale);
9074}
9075
9076void Factory::ActorDestroy(ActorDestroyReason aWhy) {
9077 AssertIsOnBackgroundThread();
9078 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9078)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9078); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9079
9080#ifdef DEBUG1
9081 mActorDestroyed = true;
9082#endif
9083
9084 // Match the IncreaseBusyCount in Create().
9085 DecreaseBusyCount();
9086}
9087
9088mozilla::ipc::IPCResult Factory::RecvDeleteMe() {
9089 AssertIsOnBackgroundThread();
9090 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9090)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9090); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9091
9092 QM_WARNONLY_TRY(OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))){auto tryResult969 = (OkIf(PBackgroundIDBFactoryParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult969)::ok_type>); if ((__builtin_expect(!!(tryResult969
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))"
, tryResult969.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9092, mozilla::dom::quota::Severity::Warning); }}
;
9093
9094 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9095}
9096
9097PBackgroundIDBFactoryRequestParent*
9098Factory::AllocPBackgroundIDBFactoryRequestParent(
9099 const FactoryRequestParams& aParams) {
9100 AssertIsOnBackgroundThread();
9101 MOZ_ASSERT(aParams.type() != FactoryRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != FactoryRequestParams::T__None)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() != FactoryRequestParams::T__None))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != FactoryRequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9101)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 9101); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9102
9103 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9103)
) {
9104 return nullptr;
9105 }
9106
9107 const CommonFactoryRequestParams* commonParams;
9108
9109 switch (aParams.type()) {
9110 case FactoryRequestParams::TOpenDatabaseRequestParams: {
9111 const OpenDatabaseRequestParams& params =
9112 aParams.get_OpenDatabaseRequestParams();
9113 commonParams = &params.commonParams();
9114 break;
9115 }
9116
9117 case FactoryRequestParams::TDeleteDatabaseRequestParams: {
9118 const DeleteDatabaseRequestParams& params =
9119 aParams.get_DeleteDatabaseRequestParams();
9120 commonParams = &params.commonParams();
9121 break;
9122 }
9123
9124 default:
9125 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9125)
; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 9125); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
9126 }
9127
9128 MOZ_ASSERT(commonParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(commonParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(commonParams))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("commonParams", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9128); AnnotateMozCrashReason("MOZ_ASSERT" "(" "commonParams"
")"); do { MOZ_CrashSequence(__null, 9128); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9129
9130 const DatabaseMetadata& metadata = commonParams->metadata();
9131
9132 if (NS_AUUF_OR_WARN_IF(!IsValidPersistenceType(metadata.persistenceType()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!IsValidPersistenceType(metadata.persistenceType())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9132
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!IsValidPersistenceType(metadata.persistenceType())"
")"); do { MOZ_CrashSequence(__null, 9132); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!IsValidPersistenceType(metadata.persistenceType())))
) {
9133 return nullptr;
9134 }
9135
9136 const PrincipalInfo& principalInfo = commonParams->principalInfo();
9137
9138 if (NS_AUUF_OR_WARN_IF(!quota::IsPrincipalInfoValid(principalInfo))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!quota::IsPrincipalInfoValid(principalInfo)" ")"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9138)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!quota::IsPrincipalInfoValid(principalInfo)"
")"); do { MOZ_CrashSequence(__null, 9138); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!quota::IsPrincipalInfoValid(principalInfo)))
) {
9139 IPC_FAIL(this, "Invalid principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid principal!"
))
;
9140 return nullptr;
9141 }
9142
9143 MOZ_ASSERT(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9144)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { MOZ_CrashSequence(__null, 9144); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9144 principalInfo.type() == PrincipalInfo::TContentPrincipalInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9144)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { MOZ_CrashSequence(__null, 9144); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9145
9146 if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9148
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 9148); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
&& metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT
))
9147 principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9148
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 9148); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
&& metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT
))
9148 metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9148
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 9148); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
&& metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT
))
) {
9149 return nullptr;
9150 }
9151
9152 if (NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 9156); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9153 principalInfo.type() == PrincipalInfo::TContentPrincipalInfo &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 9156); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9154 QuotaManager::IsOriginInternal([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 9156); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9155 principalInfo.get_ContentPrincipalInfo().originNoSuffix()) &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 9156); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9156 metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 9156); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
) {
9157 return nullptr;
9158 }
9159
9160 Maybe<ContentParentId> contentParentId = GetContentParentId();
9161
9162 auto actor = [&]() -> RefPtr<FactoryRequestOp> {
9163 if (aParams.type() == FactoryRequestParams::TOpenDatabaseRequestParams) {
9164 return MakeRefPtr<OpenDatabaseOp>(SafeRefPtrFromThis(), contentParentId,
9165 *commonParams);
9166 } else {
9167 return MakeRefPtr<DeleteDatabaseOp>(SafeRefPtrFromThis(), contentParentId,
9168 *commonParams);
9169 }
9170 }();
9171
9172 gFactoryOps->insertBack(actor);
9173
9174 // Balanced in CleanupMetadata() which is/must always called by SendResults().
9175 IncreaseBusyCount();
9176
9177 // Transfer ownership to IPDL.
9178 return actor.forget().take();
9179}
9180
9181mozilla::ipc::IPCResult Factory::RecvPBackgroundIDBFactoryRequestConstructor(
9182 PBackgroundIDBFactoryRequestParent* aActor,
9183 const FactoryRequestParams& aParams) {
9184 AssertIsOnBackgroundThread();
9185 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9185); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 9185); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9186 MOZ_ASSERT(aParams.type() != FactoryRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != FactoryRequestParams::T__None)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() != FactoryRequestParams::T__None))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != FactoryRequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9186)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 9186); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9187 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9187)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 9187); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9188
9189 auto* op = static_cast<FactoryRequestOp*>(aActor);
9190
9191 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(op))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(op))), 1)))), 1))) { } else { do {
do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9191)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))"
")"); do { MOZ_CrashSequence(__null, 9191); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9192 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9193}
9194
9195bool Factory::DeallocPBackgroundIDBFactoryRequestParent(
9196 PBackgroundIDBFactoryRequestParent* aActor) {
9197 AssertIsOnBackgroundThread();
9198 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9198); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 9198); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9199
9200 // Transfer ownership back from IPDL.
9201 RefPtr<FactoryRequestOp> op =
9202 dont_AddRef(static_cast<FactoryRequestOp*>(aActor));
9203 return true;
9204}
9205
9206mozilla::ipc::IPCResult Factory::RecvGetDatabases(
9207 const PersistenceType& aPersistenceType,
9208 const PrincipalInfo& aPrincipalInfo, GetDatabasesResolver&& aResolve) {
9209 AssertIsOnBackgroundThread();
9210
9211 auto ResolveGetDatabasesAndReturn = [&aResolve](const nsresult rv) {
9212 aResolve(rv);
9213 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9214 };
9215
9216 QM_TRY(MOZ_TO_RESULT(!QuotaClient::IsShuttingDownOnBackgroundThread()),{auto tryResult970 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult970
)::ok_type>); if ((__builtin_expect(!!(tryResult970.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult970
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9217, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, ResolveGetDatabasesAndReturn); }}
9217 ResolveGetDatabasesAndReturn){auto tryResult970 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult970
)::ok_type>); if ((__builtin_expect(!!(tryResult970.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult970
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9217, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, ResolveGetDatabasesAndReturn); }}
;
9218
9219 QM_TRY(MOZ_TO_RESULT(IsValidPersistenceType(aPersistenceType)),{auto tryResult971 = (ToResult(IsValidPersistenceType(aPersistenceType
))); static_assert(std::is_empty_v<typename decltype(tryResult971
)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult971
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9220, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
9220 QM_IPC_FAIL(this)){auto tryResult971 = (ToResult(IsValidPersistenceType(aPersistenceType
))); static_assert(std::is_empty_v<typename decltype(tryResult971
)::ok_type>); if ((__builtin_expect(!!(tryResult971.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult971
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9220, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(IsValidPersistenceType(aPersistenceType))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
9221
9222 QM_TRY(MOZ_TO_RESULT(quota::IsPrincipalInfoValid(aPrincipalInfo)),{auto tryResult972 = (ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo
))); static_assert(std::is_empty_v<typename decltype(tryResult972
)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult972
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9223, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
9223 QM_IPC_FAIL(this)){auto tryResult972 = (ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo
))); static_assert(std::is_empty_v<typename decltype(tryResult972
)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult972
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9223, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
9224
9225 MOZ_ASSERT(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9226)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { MOZ_CrashSequence(__null, 9226); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9226 aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
|| aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9226)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { MOZ_CrashSequence(__null, 9226); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9227
9228 PersistenceType persistenceType =
9229 IDBFactory::GetPersistenceType(aPrincipalInfo);
9230
9231 QM_TRY(MOZ_TO_RESULT(aPersistenceType == persistenceType), QM_IPC_FAIL(this)){auto tryResult973 = (ToResult(aPersistenceType == persistenceType
)); static_assert(std::is_empty_v<typename decltype(tryResult973
)::ok_type>); if ((__builtin_expect(!!(tryResult973.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult973
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(aPersistenceType == persistenceType)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9231, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(aPersistenceType == persistenceType)"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
9232
9233 Maybe<ContentParentId> contentParentId = GetContentParentId();
9234
9235 auto op = MakeRefPtr<GetDatabasesOp>(SafeRefPtrFromThis(), contentParentId,
9236 aPersistenceType, aPrincipalInfo,
9237 std::move(aResolve));
9238
9239 gFactoryOps->insertBack(op);
9240
9241 // Balanced in CleanupMetadata() which is/must always called by SendResults().
9242 IncreaseBusyCount();
9243
9244 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(op))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(op))), 1)))), 1))) { } else { do {
do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9244)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))"
")"); do { MOZ_CrashSequence(__null, 9244); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9245
9246 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9247}
9248
9249Maybe<ContentParentId> Factory::GetContentParentId() const {
9250 uint64_t childID = BackgroundParent::GetChildID(Manager());
9251 if (childID) {
9252 // If childID is not zero we are dealing with an other-process actor. We
9253 // want to initialize OpenDatabaseOp/DeleteDatabaseOp here with the ID
9254 // (and later also Database) in that case, so Database::IsOwnedByProcess
9255 // can find Databases belonging to a particular content process when
9256 // QuotaClient::AbortOperationsForProcess is called which is currently used
9257 // to abort operations for content processes only.
9258 return Some(ContentParentId(childID));
9259 }
9260
9261 return Nothing();
9262}
9263
9264/*******************************************************************************
9265 * WaitForTransactionsHelper
9266 ******************************************************************************/
9267
9268void WaitForTransactionsHelper::WaitForTransactions() {
9269 MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9269)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { MOZ_CrashSequence(__null, 9269); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9270
9271 Unused << this->Run();
9272}
9273
9274void WaitForTransactionsHelper::MaybeWaitForTransactions() {
9275 AssertIsOnBackgroundThread();
9276 MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9276)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { MOZ_CrashSequence(__null, 9276); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9277
9278 RefPtr<ConnectionPool> connectionPool = gConnectionPool.get();
9279 if (connectionPool) {
9280 mState = State::WaitingForTransactions;
9281
9282 connectionPool->WaitForDatabaseToComplete(mDatabaseId, this);
9283
9284 return;
9285 }
9286
9287 CallCallback();
9288}
9289
9290void WaitForTransactionsHelper::CallCallback() {
9291 AssertIsOnBackgroundThread();
9292 MOZ_ASSERT(mState == State::Initial ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial || mState == State::WaitingForTransactions
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::Initial || mState == State::WaitingForTransactions
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::Initial || mState == State::WaitingForTransactions"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9293)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions"
")"); do { MOZ_CrashSequence(__null, 9293); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9293 mState == State::WaitingForTransactions)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial || mState == State::WaitingForTransactions
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::Initial || mState == State::WaitingForTransactions
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::Initial || mState == State::WaitingForTransactions"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9293)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions"
")"); do { MOZ_CrashSequence(__null, 9293); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9294
9295 const nsCOMPtr<nsIRunnable> callback = std::move(mCallback);
9296
9297 callback->Run();
9298
9299 mState = State::Complete;
9300}
9301
9302NS_IMETHODIMPnsresult
9303WaitForTransactionsHelper::Run() {
9304 MOZ_ASSERT(mState != State::Complete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState != State::Complete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState != State::Complete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState != State::Complete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9304)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete"
")"); do { MOZ_CrashSequence(__null, 9304); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9305 MOZ_ASSERT(mCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCallback)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9305); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")"
); do { MOZ_CrashSequence(__null, 9305); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9306
9307 switch (mState) {
9308 case State::Initial:
9309 MaybeWaitForTransactions();
9310 break;
9311
9312 case State::WaitingForTransactions:
9313 CallCallback();
9314 break;
9315
9316 default:
9317 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9317)
; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 9317); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
9318 }
9319
9320 return NS_OK;
9321}
9322
9323/*******************************************************************************
9324 * Database
9325 ******************************************************************************/
9326
9327Database::Database(SafeRefPtr<Factory> aFactory,
9328 const PrincipalInfo& aPrincipalInfo,
9329 const Maybe<ContentParentId>& aOptionalContentParentId,
9330 const quota::OriginMetadata& aOriginMetadata,
9331 uint32_t aTelemetryId,
9332 SafeRefPtr<FullDatabaseMetadata> aMetadata,
9333 SafeRefPtr<DatabaseFileManager> aFileManager,
9334 ClientDirectoryLockHandle aDirectoryLockHandle,
9335 bool aInPrivateBrowsing,
9336 const Maybe<const CipherKey>& aMaybeKey)
9337 : mFactory(std::move(aFactory)),
9338 mMetadata(std::move(aMetadata)),
9339 mFileManager(std::move(aFileManager)),
9340 mDirectoryLockHandle(std::move(aDirectoryLockHandle)),
9341 mPrincipalInfo(aPrincipalInfo),
9342 mOptionalContentParentId(aOptionalContentParentId),
9343 mOriginMetadata(aOriginMetadata),
9344 mId(mMetadata->mDatabaseId),
9345 mFilePath(mMetadata->mFilePath),
9346 mKey(aMaybeKey),
9347 mTelemetryId(aTelemetryId),
9348 mPersistenceType(mMetadata->mCommonMetadata.persistenceType()),
9349 mInPrivateBrowsing(aInPrivateBrowsing),
9350 mBackgroundThread(GetCurrentSerialEventTarget())
9351#ifdef DEBUG1
9352 ,
9353 mAllBlobsUnmapped(false)
9354#endif
9355{
9356 AssertIsOnBackgroundThread();
9357 MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFactory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { MOZ_CrashSequence(__null, 9357); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9358 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9358); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { MOZ_CrashSequence(__null, 9358); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9359 MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9359); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { MOZ_CrashSequence(__null, 9359); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9360
9361 MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9361)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 9361); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9362 MOZ_ASSERT(mDirectoryLockHandle->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle->Id() >= 0)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mDirectoryLockHandle->Id() >= 0))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDirectoryLockHandle->Id() >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9362)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle->Id() >= 0"
")"); do { MOZ_CrashSequence(__null, 9362); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9363 mDirectoryLockId = mDirectoryLockHandle->Id();
9364}
9365
9366template <typename T>
9367bool Database::InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable) {
9368 AssertIsOnBackgroundThread();
9369
9370 const uint32_t count = aTable.Count();
9371 if (!count) {
9372 return true;
9373 }
9374
9375 // XXX Does this really need to be fallible?
9376 QM_TRY_INSPECT(const auto& elementsToInvalidate,auto tryResult974 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult974.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult974.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9379, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult974.inspect();
9377 TransformIntoNewArray(auto tryResult974 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult974.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult974.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9379, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult974.inspect();
9378 aTable, [](const auto& entry) { return entry; }, fallible),auto tryResult974 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult974.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult974.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9379, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult974.inspect();
9379 false)auto tryResult974 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult974.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult974.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9379, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)"
, tryTempError, false); } const auto& elementsToInvalidate
= tryResult974.inspect();
;
9380
9381 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9381, "UnknownErr")
;
9382
9383 for (const auto& elementToInvalidate : elementsToInvalidate) {
9384 MOZ_ASSERT(elementToInvalidate)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(elementToInvalidate)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(elementToInvalidate))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("elementToInvalidate"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9384)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "elementToInvalidate"
")"); do { MOZ_CrashSequence(__null, 9384); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9385
9386 elementToInvalidate->Invalidate();
9387 }
9388
9389 return true;
9390}
9391
9392void Database::Invalidate() {
9393 AssertIsOnBackgroundThread();
9394
9395 if (mInvalidated) {
9396 return;
9397 }
9398
9399 mInvalidated.Flip();
9400
9401 if (mActorWasAlive && !mActorDestroyed) {
9402 Unused << SendInvalidate();
9403 }
9404
9405 QM_WARNONLY_TRY(OkIf(InvalidateAll(mTransactions))){auto tryResult975 = (OkIf(InvalidateAll(mTransactions))); static_assert
(std::is_empty_v<typename decltype(tryResult975)::ok_type>
); if ((__builtin_expect(!!(tryResult975.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(InvalidateAll(mTransactions))"
, tryResult975.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9405, mozilla::dom::quota::Severity::Warning); }}
;
9406
9407 MOZ_ALWAYS_TRUE(CloseInternal())do { if ((__builtin_expect(!!(CloseInternal()), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "CloseInternal()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9407)
; AnnotateMozCrashReason("MOZ_CRASH(" "CloseInternal()" ")");
do { MOZ_CrashSequence(__null, 9407); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9408}
9409
9410nsresult Database::EnsureConnection() {
9411 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9411)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 9411); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9412 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9412)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 9412); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9413
9414 AUTO_PROFILER_LABEL("Database::EnsureConnection", DOM)mozilla::AutoProfilerLabel raiiObject9414( "Database::EnsureConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
9415
9416 if (!mConnection || !mConnection->HasStorageConnection()) {
9417 QM_TRY_UNWRAP(mConnection, gConnectionPool->GetOrCreateConnection(*this))auto tryResult976 = (gConnectionPool->GetOrCreateConnection
(*this)); if ((__builtin_expect(!!(tryResult976.isErr()), 0))
) { mozilla::dom::quota::HandleError("gConnectionPool->GetOrCreateConnection(*this)"
, tryResult976.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9417, mozilla::dom::quota::Severity::Error); return tryResult976
.propagateErr(); } mConnection = tryResult976.unwrap();
;
9418 }
9419
9420 AssertIsOnConnectionThread();
9421
9422 return NS_OK;
9423}
9424
9425bool Database::RegisterTransaction(TransactionBase& aTransaction) {
9426 AssertIsOnBackgroundThread();
9427 MOZ_ASSERT(!mTransactions.Contains(&aTransaction))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Contains(&aTransaction))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mTransactions.Contains(&aTransaction)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mTransactions.Contains(&aTransaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9427)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(&aTransaction)"
")"); do { MOZ_CrashSequence(__null, 9427); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9428 MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9428)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 9428); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9429 MOZ_ASSERT(!mInvalidated)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mInvalidated)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mInvalidated))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mInvalidated",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9429);
AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInvalidated" ")")
; do { MOZ_CrashSequence(__null, 9429); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9430 MOZ_ASSERT(!mClosed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mClosed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mClosed))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9430); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")"
); do { MOZ_CrashSequence(__null, 9430); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9431
9432 if (NS_WARN_IF(!mTransactions.Insert(&aTransaction, fallible))NS_warn_if_impl(!mTransactions.Insert(&aTransaction, fallible
), "!mTransactions.Insert(&aTransaction, fallible)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9432)
) {
9433 return false;
9434 }
9435
9436 return true;
9437}
9438
9439void Database::UnregisterTransaction(TransactionBase& aTransaction) {
9440 AssertIsOnBackgroundThread();
9441 MOZ_ASSERT(mTransactions.Contains(&aTransaction))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransactions.Contains(&aTransaction))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mTransactions.Contains(&aTransaction)))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mTransactions.Contains(&aTransaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9441)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransactions.Contains(&aTransaction)"
")"); do { MOZ_CrashSequence(__null, 9441); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9442
9443 mTransactions.Remove(&aTransaction);
9444
9445 MaybeCloseConnection();
9446}
9447
9448void Database::SetActorAlive() {
9449 AssertIsOnBackgroundThread();
9450 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9450)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9450); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9451
9452 mActorWasAlive.Flip();
9453}
9454
9455void Database::MapBlob(const IPCBlob& aIPCBlob,
9456 SafeRefPtr<DatabaseFileInfo> aFileInfo) {
9457 AssertIsOnBackgroundThread();
9458
9459 const RemoteLazyStream& stream = aIPCBlob.inputStream();
9460 MOZ_ASSERT(stream.type() == RemoteLazyStream::TRemoteLazyInputStream)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(stream.type() == RemoteLazyStream::TRemoteLazyInputStream
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(stream.type() == RemoteLazyStream::TRemoteLazyInputStream
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"stream.type() == RemoteLazyStream::TRemoteLazyInputStream", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "stream.type() == RemoteLazyStream::TRemoteLazyInputStream"
")"); do { MOZ_CrashSequence(__null, 9460); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9461
9462 nsID id{};
9463 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9464)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
")"); do { MOZ_CrashSequence(__null, 9464); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
9464 stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9464)
; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
")"); do { MOZ_CrashSequence(__null, 9464); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9465
9466 MOZ_ASSERT(!mMappedBlobs.Contains(id))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mMappedBlobs.Contains(id))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mMappedBlobs.Contains(id)))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mMappedBlobs.Contains(id)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9466)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMappedBlobs.Contains(id)"
")"); do { MOZ_CrashSequence(__null, 9466); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9467 mMappedBlobs.InsertOrUpdate(id, std::move(aFileInfo));
9468
9469 RefPtr<UnmapBlobCallback> callback =
9470 new UnmapBlobCallback(SafeRefPtrFromThis());
9471
9472 auto storage = RemoteLazyInputStreamStorage::Get();
9473 MOZ_ASSERT(storage.isOk())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(storage.isOk())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(storage.isOk()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("storage.isOk()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9473)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "storage.isOk()" ")"
); do { MOZ_CrashSequence(__null, 9473); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9474 storage.inspect()->StoreCallback(id, callback);
9475}
9476
9477void Database::Stringify(nsACString& aResult) const {
9478 AssertIsOnBackgroundThread();
9479
9480 constexpr auto kQuotaGenericDelimiterString = "|"_ns;
9481
9482 aResult.Append(
9483 "DirectoryLock:"_ns + IntToCString(!!mDirectoryLockHandle) +
9484 kQuotaGenericDelimiterString +
9485 //
9486 "Transactions:"_ns + IntToCString(mTransactions.Count()) +
9487 kQuotaGenericDelimiterString +
9488 //
9489 "OtherProcessActor:"_ns +
9490 IntToCString(
9491 BackgroundParent::IsOtherProcessActor(GetBackgroundParent())) +
9492 kQuotaGenericDelimiterString +
9493 //
9494 "Origin:"_ns + AnonymizedOriginString(mOriginMetadata.mOrigin) +
9495 kQuotaGenericDelimiterString +
9496 //
9497 "PersistenceType:"_ns + PersistenceTypeToString(mPersistenceType) +
9498 kQuotaGenericDelimiterString +
9499 //
9500 "Closed:"_ns + IntToCString(static_cast<bool>(mClosed)) +
9501 kQuotaGenericDelimiterString +
9502 //
9503 "Invalidated:"_ns + IntToCString(static_cast<bool>(mInvalidated)) +
9504 kQuotaGenericDelimiterString +
9505 //
9506 "ActorWasAlive:"_ns + IntToCString(static_cast<bool>(mActorWasAlive)) +
9507 kQuotaGenericDelimiterString +
9508 //
9509 "ActorDestroyed:"_ns + IntToCString(static_cast<bool>(mActorDestroyed)));
9510}
9511
9512SafeRefPtr<DatabaseFileInfo> Database::GetBlob(const IPCBlob& aIPCBlob) {
9513 AssertIsOnBackgroundThread();
9514
9515 RefPtr<RemoteLazyInputStream> lazyStream;
9516 switch (aIPCBlob.inputStream().type()) {
9517 case RemoteLazyStream::TIPCStream: {
9518 const InputStreamParams& inputStreamParams =
9519 aIPCBlob.inputStream().get_IPCStream().stream();
9520 if (inputStreamParams.type() !=
9521 InputStreamParams::TRemoteLazyInputStreamParams) {
9522 return nullptr;
9523 }
9524 lazyStream = inputStreamParams.get_RemoteLazyInputStreamParams().stream();
9525 break;
9526 }
9527 case RemoteLazyStream::TRemoteLazyInputStream:
9528 lazyStream = aIPCBlob.inputStream().get_RemoteLazyInputStream();
9529 break;
9530 default:
9531 MOZ_ASSERT_UNREACHABLE("Unknown RemoteLazyStream type")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: "
"Unknown RemoteLazyStream type" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9531); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Unknown RemoteLazyStream type" ")"
); do { MOZ_CrashSequence(__null, 9531); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9532 return nullptr;
9533 }
9534
9535 if (!lazyStream) {
9536 MOZ_ASSERT_UNREACHABLE("Unexpected null stream")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: "
"Unexpected null stream" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9536); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Unexpected null stream" ")"); do
{ MOZ_CrashSequence(__null, 9536); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
9537 return nullptr;
9538 }
9539
9540 nsID id{};
9541 nsresult rv = lazyStream->GetInternalStreamID(id);
9542 if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) {
9543 MOZ_ASSERT_UNREACHABLE(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: "
"Received RemoteLazyInputStream doesn't have an actor connection"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9544
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: "
"Received RemoteLazyInputStream doesn't have an actor connection"
")"); do { MOZ_CrashSequence(__null, 9544); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9544 "Received RemoteLazyInputStream doesn't have an actor connection")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "MOZ_ASSERT_UNREACHABLE: "
"Received RemoteLazyInputStream doesn't have an actor connection"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9544
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: "
"Received RemoteLazyInputStream doesn't have an actor connection"
")"); do { MOZ_CrashSequence(__null, 9544); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9545 return nullptr;
9546 }
9547
9548 const auto fileInfo = mMappedBlobs.Lookup(id);
9549 return fileInfo ? fileInfo->clonePtr() : nullptr;
9550}
9551
9552void Database::UnmapBlob(const nsID& aID) {
9553 AssertIsOnBackgroundThread();
9554
9555 MOZ_ASSERT_IF(!mAllBlobsUnmapped, mMappedBlobs.Contains(aID))do { if (!mAllBlobsUnmapped) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mMappedBlobs.Contains(aID
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mMappedBlobs.Contains(aID)))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("mMappedBlobs.Contains(aID)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9555)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMappedBlobs.Contains(aID)"
")"); do { MOZ_CrashSequence(__null, 9555); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9556 mMappedBlobs.Remove(aID);
9557}
9558
9559void Database::UnmapAllBlobs() {
9560 AssertIsOnBackgroundThread();
9561
9562#ifdef DEBUG1
9563 mAllBlobsUnmapped = true;
9564#endif
9565
9566 mMappedBlobs.Clear();
9567}
9568
9569bool Database::CloseInternal() {
9570 AssertIsOnBackgroundThread();
9571
9572 if (mClosed) {
9573 if (NS_WARN_IF(!IsInvalidated())NS_warn_if_impl(!IsInvalidated(), "!IsInvalidated()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9573)
) {
9574 // Signal misbehaving child for sending the close message twice.
9575 return false;
9576 }
9577
9578 // Ignore harmless race when we just invalidated the database.
9579 return true;
9580 }
9581
9582 mClosed.Flip();
9583
9584 if (gConnectionPool) {
9585 gConnectionPool->CloseDatabaseWhenIdle(Id());
9586 }
9587
9588 DatabaseActorInfo* info;
9589 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
Id(), &info)), 1))) { } else { do { do { } while (false);
MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(Id(), &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9589)
; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)"
")"); do { MOZ_CrashSequence(__null, 9589); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9590
9591 MOZ_ASSERT(info->mLiveDatabases.contains(this))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mLiveDatabases.contains(this))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(info->mLiveDatabases.contains(this)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("info->mLiveDatabases.contains(this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9591)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(this)"
")"); do { MOZ_CrashSequence(__null, 9591); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9592
9593 if (info->mWaitingFactoryOp) {
9594 info->mWaitingFactoryOp->NoteDatabaseClosed(this);
9595 }
9596
9597 MaybeCloseConnection();
9598
9599 return true;
9600}
9601
9602void Database::MaybeCloseConnection() {
9603 AssertIsOnBackgroundThread();
9604
9605 if (!mTransactions.Count() && IsClosed() && mDirectoryLockHandle) {
9606 nsCOMPtr<nsIRunnable> callback =
9607 NewRunnableMethod("dom::indexedDB::Database::ConnectionClosedCallback",
9608 this, &Database::ConnectionClosedCallback);
9609
9610 RefPtr<WaitForTransactionsHelper> helper =
9611 new WaitForTransactionsHelper(Id(), callback);
9612 helper->WaitForTransactions();
9613 }
9614}
9615
9616void Database::ConnectionClosedCallback() {
9617 AssertIsOnBackgroundThread();
9618 MOZ_ASSERT(mClosed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mClosed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mClosed))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")"
); do { MOZ_CrashSequence(__null, 9618); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9619 MOZ_ASSERT(!mTransactions.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransactions.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransactions.Count()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mTransactions.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9619)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { MOZ_CrashSequence(__null, 9619); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9620
9621 {
9622 auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle);
9623 }
9624
9625 CleanupMetadata();
9626
9627 UnmapAllBlobs();
9628
9629 if (IsInvalidated() && IsActorAlive()) {
9630 // Step 3 and 4 of "5.2 Closing a Database":
9631 // 1. Wait for all transactions to complete.
9632 // 2. Fire a close event if forced flag is set, i.e., IsInvalidated() in our
9633 // implementation.
9634 Unused << SendCloseAfterInvalidationComplete();
9635 }
9636}
9637
9638void Database::CleanupMetadata() {
9639 AssertIsOnBackgroundThread();
9640
9641 DatabaseActorInfo* info;
9642 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
Id(), &info)), 1))) { } else { do { do { } while (false);
MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(Id(), &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9642)
; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)"
")"); do { MOZ_CrashSequence(__null, 9642); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9643 removeFrom(info->mLiveDatabases);
9644
9645 QuotaManager::MaybeRecordQuotaClientShutdownStep(
9646 quota::Client::IDB, "Live database entry removed"_ns);
9647
9648 if (info->mLiveDatabases.isEmpty()) {
9649 MOZ_ASSERT(!info->mWaitingFactoryOp ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp
->HasBlockedDatabases())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp ||
!info->mWaitingFactoryOp->HasBlockedDatabases()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9650)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { MOZ_CrashSequence(__null, 9650); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9650 !info->mWaitingFactoryOp->HasBlockedDatabases())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mWaitingFactoryOp || !info->mWaitingFactoryOp
->HasBlockedDatabases())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp ||
!info->mWaitingFactoryOp->HasBlockedDatabases()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9650)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { MOZ_CrashSequence(__null, 9650); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9651 gLiveDatabaseHashtable->Remove(Id());
9652
9653 QuotaManager::MaybeRecordQuotaClientShutdownStep(
9654 quota::Client::IDB, "gLiveDatabaseHashtable entry removed"_ns);
9655 }
9656
9657 // Match the IncreaseBusyCount in OpenDatabaseOp::EnsureDatabaseActor().
9658 DecreaseBusyCount();
9659}
9660
9661void Database::ActorDestroy(ActorDestroyReason aWhy) {
9662 AssertIsOnBackgroundThread();
9663
9664 mActorDestroyed.Flip();
9665
9666 if (!IsInvalidated()) {
9667 Invalidate();
9668 }
9669}
9670
9671PBackgroundIDBDatabaseFileParent*
9672Database::AllocPBackgroundIDBDatabaseFileParent(const IPCBlob& aIPCBlob) {
9673 AssertIsOnBackgroundThread();
9674
9675 SafeRefPtr<DatabaseFileInfo> fileInfo = GetBlob(aIPCBlob);
9676 RefPtr<DatabaseFile> actor;
9677
9678 if (fileInfo) {
9679 actor = new DatabaseFile(std::move(fileInfo));
9680 } else {
9681 // This is a blob we haven't seen before.
9682 fileInfo = mFileManager->CreateFileInfo();
9683 if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9683)
) {
9684 return nullptr;
9685 }
9686
9687 actor = new DatabaseFile(IPCBlobUtils::Deserialize(aIPCBlob),
9688 std::move(fileInfo));
9689 }
9690
9691 MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(actor)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9691); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")")
; do { MOZ_CrashSequence(__null, 9691); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9692
9693 return actor.forget().take();
9694}
9695
9696bool Database::DeallocPBackgroundIDBDatabaseFileParent(
9697 PBackgroundIDBDatabaseFileParent* aActor) {
9698 AssertIsOnBackgroundThread();
9699 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 9699); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9700
9701 RefPtr<DatabaseFile> actor = dont_AddRef(static_cast<DatabaseFile*>(aActor));
9702 return true;
9703}
9704
9705already_AddRefed<PBackgroundIDBTransactionParent>
9706Database::AllocPBackgroundIDBTransactionParent(
9707 const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode,
9708 const Durability& aDurability) {
9709 AssertIsOnBackgroundThread();
9710
9711 // Once a database is closed it must not try to open new transactions.
9712 if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9712)
) {
9713 MOZ_ASSERT_UNLESS_FUZZING(mInvalidated)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInvalidated)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mInvalidated))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mInvalidated", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated"
")"); do { MOZ_CrashSequence(__null, 9713); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9714 return nullptr;
9715 }
9716
9717 if (NS_AUUF_OR_WARN_IF(aObjectStoreNames.IsEmpty())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aObjectStoreNames.IsEmpty()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aObjectStoreNames.IsEmpty()" ")"); do { MOZ_CrashSequence(__null
, 9717); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); } return aCond; }((aObjectStoreNames.IsEmpty
()))
) {
9718 return nullptr;
9719 }
9720
9721 if (NS_AUUF_OR_WARN_IF(aMode != IDBTransaction::Mode::ReadOnly &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9724
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9724); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aMode != IDBTransaction::Mode::ReadOnly && aMode
!= IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction
::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode
::Cleanup))
9722 aMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9724
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9724); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aMode != IDBTransaction::Mode::ReadOnly && aMode
!= IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction
::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode
::Cleanup))
9723 aMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9724
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9724); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aMode != IDBTransaction::Mode::ReadOnly && aMode
!= IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction
::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode
::Cleanup))
9724 aMode != IDBTransaction::Mode::Cleanup)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9724
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9724); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aMode != IDBTransaction::Mode::ReadOnly && aMode
!= IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction
::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode
::Cleanup))
) {
9725 return nullptr;
9726 }
9727
9728 if (NS_AUUF_OR_WARN_IF(aDurability != IDBTransaction::Durability::Default &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9730
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9730); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
9729 aDurability != IDBTransaction::Durability::Strict &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9730
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9730); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
9730 aDurability != IDBTransaction::Durability::Relaxed)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9730
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9730); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
) {
9731 return nullptr;
9732 }
9733
9734 const ObjectStoreTable& objectStores = mMetadata->mObjectStores;
9735 const uint32_t nameCount = aObjectStoreNames.Length();
9736
9737 if (NS_AUUF_OR_WARN_IF(nameCount > objectStores.Count())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "nameCount > objectStores.Count()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9737); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"nameCount > objectStores.Count()" ")"); do { MOZ_CrashSequence
(__null, 9737); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((nameCount > objectStores
.Count()))
) {
9738 return nullptr;
9739 }
9740
9741 QM_TRY_UNWRAP(auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9742 auto objectStoreMetadatas,auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9743 TransformIntoNewArrayAbortOnErr(auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9744 aObjectStoreNames,auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9745 [lastName = Maybe<const nsString&>{},auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9746 &objectStores](const nsString& name) mutableauto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9747 -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>,auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9748 nsresult> {auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9749 if (lastName) {auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9750 // Make sure that this name is sorted properly and not aauto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9751 // duplicate.auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9752 if (NS_AUUF_OR_WARN_IF(name <= lastName.ref())) {auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9753 return Err(NS_ERROR_FAILURE);auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9754 }auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9755 }auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9756 lastName = SomeRef(name);auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9757
9758 const auto foundIt =auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9759 std::find_if(objectStores.cbegin(), objectStores.cend(),auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9760 [&name](const auto& entry) {auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9761 const auto& value = entry.GetData();auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9762 MOZ_ASSERT(entry.GetKey());auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9763 return name == value->mCommonMetadata.name() &&auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9764 !value->mDeleted;auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9765 });auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9766 if (foundIt == objectStores.cend()) {auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9767 MOZ_ASSERT_UNLESS_FUZZING(false, "ObjectStore not found.");auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9768 return Err(NS_ERROR_FAILURE);auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9769 }auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9770
9771 return foundIt->GetData().clonePtr();auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9772 },auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9773 fallible),auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
9774 nullptr)auto tryResult977 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames
, [lastName = Maybe<const nsString&>{}, &objectStores
](const nsString& name) mutable -> mozilla::Result<
SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (
lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond
), 0))) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "name <= lastName.ref()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9752
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()"
")"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE
); } } lastName = SomeRef(name); const auto foundIt = std::find_if
(objectStores.cbegin(), objectStores.cend(), [&name](const
auto& entry) { const auto& value = entry.GetData(); do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(entry.GetKey())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("entry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9762)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")"
); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return name
== value->mCommonMetadata.name() && !value->mDeleted
; }); if (foundIt == objectStores.cend()) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "ObjectStore not found." ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { MOZ_CrashSequence(__null
, 9767); __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult977.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult977.unwrapErr(); mozilla::dom::quota
::HandleError("TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArrayAbortOnErr( aObjectStoreNames, [lastName = Maybe<const nsString&>{}, &objectStores](const nsString& name) mutable -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if (lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"name <= lastName.ref()\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9752); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9752); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(entry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(entry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"entry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9762); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9762); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(false)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"false\" \" (\" \"ObjectStore not found.\" \")\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 9767); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9767); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult977
.unwrap();
;
9775
9776 return MakeSafeRefPtr<NormalTransaction>(SafeRefPtrFromThis(), aMode,
9777 aDurability,
9778 std::move(objectStoreMetadatas))
9779 .forget();
9780}
9781
9782mozilla::ipc::IPCResult Database::RecvPBackgroundIDBTransactionConstructor(
9783 PBackgroundIDBTransactionParent* aActor,
9784 nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode,
9785 const Durability& aDurability) {
9786 AssertIsOnBackgroundThread();
9787 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9787); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 9787); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9788 MOZ_ASSERT(!aObjectStoreNames.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aObjectStoreNames.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aObjectStoreNames.IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!aObjectStoreNames.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9788); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreNames.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 9788); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9789 MOZ_ASSERT(aMode == IDBTransaction::Mode::ReadOnly ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction
::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush
|| aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode
::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode
== IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction
::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9792)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9792); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9790 aMode == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction
::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush
|| aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode
::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode
== IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction
::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9792)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9792); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9791 aMode == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction
::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush
|| aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode
::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode
== IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction
::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9792)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9792); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9792 aMode == IDBTransaction::Mode::Cleanup)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction
::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush
|| aMode == IDBTransaction::Mode::Cleanup)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMode == IDBTransaction::Mode
::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode
== IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction
::Mode::Cleanup))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9792)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { MOZ_CrashSequence(__null, 9792); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9793 MOZ_ASSERT(aDurability == IDBTransaction::Durability::Default ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDurability == IDBTransaction::Durability::Default ||
aDurability == IDBTransaction::Durability::Strict || aDurability
== IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction
::Durability::Default || aDurability == IDBTransaction::Durability
::Strict || aDurability == IDBTransaction::Durability::Relaxed
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9795)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9795); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9794 aDurability == IDBTransaction::Durability::Strict ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDurability == IDBTransaction::Durability::Default ||
aDurability == IDBTransaction::Durability::Strict || aDurability
== IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction
::Durability::Default || aDurability == IDBTransaction::Durability
::Strict || aDurability == IDBTransaction::Durability::Relaxed
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9795)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9795); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9795 aDurability == IDBTransaction::Durability::Relaxed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDurability == IDBTransaction::Durability::Default ||
aDurability == IDBTransaction::Durability::Strict || aDurability
== IDBTransaction::Durability::Relaxed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDurability == IDBTransaction
::Durability::Default || aDurability == IDBTransaction::Durability
::Strict || aDurability == IDBTransaction::Durability::Relaxed
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9795)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { MOZ_CrashSequence(__null, 9795); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9796 MOZ_ASSERT(!mClosed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mClosed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mClosed))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")"
); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9797
9798 if (IsInvalidated()) {
9799 // This is an expected race. We don't want the child to die here, just don't
9800 // actually do any work.
9801 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9802 }
9803
9804 if (!gConnectionPool) {
9805 gConnectionPool = new ConnectionPool();
9806 }
9807
9808 auto* transaction = static_cast<NormalTransaction*>(aActor);
9809
9810 RefPtr<StartTransactionOp> startOp = new StartTransactionOp(
9811 SafeRefPtr{transaction, AcquireStrongRefFromRawPtr{}});
9812
9813 uint64_t transactionId = startOp->StartOnConnectionPool(
9814 GetLoggingInfo()->Id(), mMetadata->mDatabaseId,
9815 transaction->LoggingSerialNumber(), aObjectStoreNames,
9816 aMode != IDBTransaction::Mode::ReadOnly);
9817
9818 transaction->Init(transactionId);
9819
9820 if (NS_WARN_IF(!RegisterTransaction(*transaction))NS_warn_if_impl(!RegisterTransaction(*transaction), "!RegisterTransaction(*transaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9820)
) {
9821 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9821, "UnknownErr")
;
9822 transaction->Abort(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, /* aForce */ false);
9823 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9824 }
9825
9826 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9827}
9828
9829mozilla::ipc::IPCResult Database::RecvDeleteMe() {
9830 AssertIsOnBackgroundThread();
9831 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9831)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9831); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9832
9833 QM_WARNONLY_TRY(OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))){auto tryResult978 = (OkIf(PBackgroundIDBDatabaseParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult978)::ok_type>); if ((__builtin_expect(!!(tryResult978
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))"
, tryResult978.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9833, mozilla::dom::quota::Severity::Warning); }}
;
9834
9835 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9836}
9837
9838mozilla::ipc::IPCResult Database::RecvBlocked() {
9839 AssertIsOnBackgroundThread();
9840
9841 if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9841)
) {
9842 // Even though the sender checks the DB for not being closed, too,
9843 // there is a potential race with an ongoing origin clearing which
9844 // might have invalidated the DB in the meantime. Just ignore.
9845 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9846 }
9847
9848 DatabaseActorInfo* info;
9849 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
Id(), &info)), 1))) { } else { do { do { } while (false);
MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(Id(), &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9849)
; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)"
")"); do { MOZ_CrashSequence(__null, 9849); __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } } while (false
)
;
9850 MOZ_ASSERT(info->mLiveDatabases.contains(this))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mLiveDatabases.contains(this))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(info->mLiveDatabases.contains(this)))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("info->mLiveDatabases.contains(this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9850)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(this)"
")"); do { MOZ_CrashSequence(__null, 9850); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9851
9852 if (NS_WARN_IF(!info->mWaitingFactoryOp)NS_warn_if_impl(!info->mWaitingFactoryOp, "!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9852)
) {
9853 return IPC_FAIL(this, "Database info has no mWaitingFactoryOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Database info has no mWaitingFactoryOp!"
))
;
9854 }
9855
9856 info->mWaitingFactoryOp->NoteDatabaseBlocked(this);
9857
9858 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9859}
9860
9861mozilla::ipc::IPCResult Database::RecvClose() {
9862 AssertIsOnBackgroundThread();
9863
9864 if (NS_WARN_IF(!CloseInternal())NS_warn_if_impl(!CloseInternal(), "!CloseInternal()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9864)
) {
9865 return IPC_FAIL(this, "CloseInternal failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("CloseInternal failed!"
))
;
9866 }
9867
9868 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9869}
9870
9871void Database::StartTransactionOp::RunOnConnectionThread() {
9872 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9872)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 9872); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9873 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9873); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 9873); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9874
9875 IDB_LOG_MARK_PARENT_TRANSACTION("Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
9876 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
9877 mTransactionLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
;
9878
9879 TransactionDatabaseOperationBase::RunOnConnectionThread();
9880}
9881
9882nsresult Database::StartTransactionOp::DoDatabaseWork(
9883 DatabaseConnection* aConnection) {
9884 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9884); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 9884); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9885 aConnection->AssertIsOnConnectionThread();
9886
9887 Transaction().SetActiveOnConnectionThread();
9888
9889 if (Transaction().GetMode() == IDBTransaction::Mode::Cleanup) {
9890 DebugOnly<nsresult> rv = aConnection->DisableQuotaChecks();
9891 NS_WARNING_ASSERTION(NS_SUCCEEDED(rv),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1
))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue "
"cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9893)
; } } while (false)
9892 "DisableQuotaChecks failed, trying to continue "do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1
))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue "
"cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9893)
; } } while (false)
9893 "cleanup transaction with quota checks enabled")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1
))))) { NS_DebugBreak(NS_DEBUG_WARNING, "DisableQuotaChecks failed, trying to continue "
"cleanup transaction with quota checks enabled", "NS_SUCCEEDED(rv)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9893)
; } } while (false)
;
9894 }
9895
9896 if (Transaction().GetMode() != IDBTransaction::Mode::ReadOnly) {
9897 QM_TRY(MOZ_TO_RESULT({auto tryResult979 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult979)::ok_type>); if ((__builtin_expect
(!!(tryResult979.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9898, mozilla::dom::quota::Severity::Error); return tryResult979
.propagateErr(); }}
9898 aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult979 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult979)::ok_type>); if ((__builtin_expect
(!!(tryResult979.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9898, mozilla::dom::quota::Severity::Error); return tryResult979
.propagateErr(); }}
;
9899 }
9900
9901 return NS_OK;
9902}
9903
9904nsresult Database::StartTransactionOp::SendSuccessResult() {
9905 // We don't need to do anything here.
9906 return NS_OK;
9907}
9908
9909bool Database::StartTransactionOp::SendFailureResult(
9910 nsresult /* aResultCode */) {
9911 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9911, "UnknownErr")
;
9912
9913 // Abort the transaction.
9914 return false;
9915}
9916
9917void Database::StartTransactionOp::Cleanup() {
9918#ifdef DEBUG1
9919 // StartTransactionOp is not a normal database operation that is tied to an
9920 // actor. Do this to make our assertions happy.
9921 NoteActorDestroyed();
9922#endif
9923
9924 TransactionDatabaseOperationBase::Cleanup();
9925}
9926
9927/*******************************************************************************
9928 * TransactionBase
9929 ******************************************************************************/
9930
9931TransactionBase::TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode,
9932 Durability aDurability)
9933 : mDatabase(std::move(aDatabase)),
9934 mDatabaseId(mDatabase->Id()),
9935 mLoggingSerialNumber(
9936 mDatabase->GetLoggingInfo()->NextTransactionSN(aMode)),
9937 mActiveRequestCount(0),
9938 mInvalidatedOnAnyThread(false),
9939 mMode(aMode),
9940 mDurability(aDurability),
9941 mResultCode(NS_OK) {
9942 AssertIsOnBackgroundThread();
9943 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9943); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { MOZ_CrashSequence(__null, 9943); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9944 MOZ_ASSERT(mLoggingSerialNumber)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mLoggingSerialNumber)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLoggingSerialNumber))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mLoggingSerialNumber"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9944)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingSerialNumber"
")"); do { MOZ_CrashSequence(__null, 9944); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9945}
9946
9947TransactionBase::~TransactionBase() {
9948 MOZ_ASSERT(!mActiveRequestCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActiveRequestCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActiveRequestCount))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mActiveRequestCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9948)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActiveRequestCount"
")"); do { MOZ_CrashSequence(__null, 9948); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9949 MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9949)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 9949); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9950 MOZ_ASSERT_IF(mInitialized, mCommittedOrAborted)do { if (mInitialized) { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(mCommittedOrAborted)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mCommittedOrAborted))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("mCommittedOrAborted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9950); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommittedOrAborted"
")"); do { MOZ_CrashSequence(__null, 9950); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9951}
9952
9953void TransactionBase::Abort(nsresult aResultCode, bool aForce) {
9954 AssertIsOnBackgroundThread();
9955 MOZ_ASSERT(NS_FAILED(aResultCode))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode
)), 0))))>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aResultCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9955)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
")"); do { MOZ_CrashSequence(__null, 9955); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9956
9957 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
9958 mResultCode = aResultCode;
9959 }
9960
9961 if (aForce) {
9962 mForceAborted.EnsureFlipped();
9963 }
9964
9965 MaybeCommitOrAbort();
9966}
9967
9968mozilla::ipc::IPCResult TransactionBase::RecvCommit(
9969 IProtocol* aActor, const Maybe<int64_t> aLastRequest) {
9970 AssertIsOnBackgroundThread();
9971
9972 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9972)
) {
9973 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to commit an already comitted/aborted transaction!")
)
9974 aActor, "Attempt to commit an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to commit an already comitted/aborted transaction!")
)
;
9975 }
9976
9977 mCommitOrAbortReceived.Flip();
9978 mLastRequestBeforeCommit.init(aLastRequest);
9979 MaybeCommitOrAbort();
9980
9981 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9982}
9983
9984mozilla::ipc::IPCResult TransactionBase::RecvAbort(IProtocol* aActor,
9985 nsresult aResultCode) {
9986 AssertIsOnBackgroundThread();
9987
9988 if (NS_WARN_IF(NS_SUCCEEDED(aResultCode))NS_warn_if_impl(((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResultCode
)), 1))), "NS_SUCCEEDED(aResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 9988)
) {
9989 return IPC_FAIL(aActor, "aResultCode must not be a success code!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"aResultCode must not be a success code!"))
;
9990 }
9991
9992 if (NS_WARN_IF(NS_ERROR_GET_MODULE(aResultCode) !=NS_warn_if_impl(NS_ERROR_GET_MODULE(aResultCode) != 33, "NS_ERROR_GET_MODULE(aResultCode) != NS_ERROR_MODULE_DOM_INDEXEDDB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9993)
9993 NS_ERROR_MODULE_DOM_INDEXEDDB)NS_warn_if_impl(NS_ERROR_GET_MODULE(aResultCode) != 33, "NS_ERROR_GET_MODULE(aResultCode) != NS_ERROR_MODULE_DOM_INDEXEDDB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9993)
) {
9994 return IPC_FAIL(aActor, "aResultCode does not refer to IndexedDB!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"aResultCode does not refer to IndexedDB!"))
;
9995 }
9996
9997 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9997)
) {
9998 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to abort an already comitted/aborted transaction!"))
9999 aActor, "Attempt to abort an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to abort an already comitted/aborted transaction!"))
;
10000 }
10001
10002 mCommitOrAbortReceived.Flip();
10003 Abort(aResultCode, /* aForce */ false);
10004
10005 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10006}
10007
10008void TransactionBase::CommitOrAbort() {
10009 AssertIsOnBackgroundThread();
10010
10011 mCommittedOrAborted.Flip();
10012
10013 if (!mInitialized) {
10014 return;
10015 }
10016
10017 // In case of a failed request and explicitly committed transaction, abort
10018 // (cf. https://w3c.github.io/IndexedDB/#async-execute-request step 5.3
10019 // vs. 5.4). It's worth emphasizing this can only happen here when we are
10020 // committing explicitly, otherwise the decision is made by the child.
10021 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&& mLastFailedRequest &&
10022 *mLastRequestBeforeCommit &&
10023 *mLastFailedRequest == **mLastRequestBeforeCommit) {
10024 mResultCode = NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
10025 }
10026
10027 RefPtr<CommitOp> commitOp =
10028 new CommitOp(SafeRefPtrFromThis(), ClampResultCode(mResultCode));
10029
10030 gConnectionPool->Finish(TransactionId(), commitOp);
10031}
10032
10033SafeRefPtr<FullObjectStoreMetadata>
10034TransactionBase::GetMetadataForObjectStoreId(
10035 IndexOrObjectStoreId aObjectStoreId) const {
10036 AssertIsOnBackgroundThread();
10037 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10037
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 10037); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10038
10039 if (!aObjectStoreId) {
10040 return nullptr;
10041 }
10042
10043 auto metadata = mDatabase->Metadata().mObjectStores.Lookup(aObjectStoreId);
10044 if (!metadata || (*metadata)->mDeleted) {
10045 return nullptr;
10046 }
10047
10048 MOZ_ASSERT((*metadata)->mCommonMetadata.id() == aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype((*metadata)->mCommonMetadata.id() == aObjectStoreId
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!((*metadata)->mCommonMetadata.id() == aObjectStoreId
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"(*metadata)->mCommonMetadata.id() == aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 10048); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10049
10050 return metadata->clonePtr();
10051}
10052
10053SafeRefPtr<FullIndexMetadata> TransactionBase::GetMetadataForIndexId(
10054 FullObjectStoreMetadata& aObjectStoreMetadata,
10055 IndexOrObjectStoreId aIndexId) const {
10056 AssertIsOnBackgroundThread();
10057 MOZ_ASSERT(aIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aIndexId))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10057); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")"
); do { MOZ_CrashSequence(__null, 10057); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10058
10059 if (!aIndexId) {
10060 return nullptr;
10061 }
10062
10063 auto metadata = aObjectStoreMetadata.mIndexes.Lookup(aIndexId);
10064 if (!metadata || (*metadata)->mDeleted) {
10065 return nullptr;
10066 }
10067
10068 MOZ_ASSERT((*metadata)->mCommonMetadata.id() == aIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype((*metadata)->mCommonMetadata.id() == aIndexId)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!((*metadata)->mCommonMetadata.id() == aIndexId))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("(*metadata)->mCommonMetadata.id() == aIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10068
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aIndexId"
")"); do { MOZ_CrashSequence(__null, 10068); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10069
10070 return metadata->clonePtr();
10071}
10072
10073void TransactionBase::NoteModifiedAutoIncrementObjectStore(
10074 const SafeRefPtr<FullObjectStoreMetadata>& aMetadata) {
10075 AssertIsOnConnectionThread();
10076
10077 if (!mModifiedAutoIncrementObjectStoreMetadataArray.Contains(aMetadata)) {
10078 mModifiedAutoIncrementObjectStoreMetadataArray.AppendElement(
10079 aMetadata.clonePtr());
10080 }
10081}
10082
10083void TransactionBase::ForgetModifiedAutoIncrementObjectStore(
10084 FullObjectStoreMetadata& aMetadata) {
10085 AssertIsOnConnectionThread();
10086
10087 mModifiedAutoIncrementObjectStoreMetadataArray.RemoveElement(&aMetadata);
10088}
10089
10090bool TransactionBase::VerifyRequestParams(const RequestParams& aParams) const {
10091 AssertIsOnBackgroundThread();
10092 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10092
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10092); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10093
10094 switch (aParams.type()) {
10095 case RequestParams::TObjectStoreAddParams: {
10096 const ObjectStoreAddPutParams& params =
10097 aParams.get_ObjectStoreAddParams().commonParams();
10098 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10098); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params)" ")"); do { MOZ_CrashSequence(
__null, 10098); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params)))
) {
10099 return false;
10100 }
10101 break;
10102 }
10103
10104 case RequestParams::TObjectStorePutParams: {
10105 const ObjectStoreAddPutParams& params =
10106 aParams.get_ObjectStorePutParams().commonParams();
10107 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params)" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10107); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params)" ")"); do { MOZ_CrashSequence(
__null, 10107); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params)))
) {
10108 return false;
10109 }
10110 break;
10111 }
10112
10113 case RequestParams::TObjectStoreGetParams: {
10114 const ObjectStoreGetParams& params = aParams.get_ObjectStoreGetParams();
10115 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10116 GetMetadataForObjectStoreId(params.objectStoreId());
10117 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10117); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10117
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10118 return false;
10119 }
10120 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10120); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence
(__null, 10120); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10121 return false;
10122 }
10123 break;
10124 }
10125
10126 case RequestParams::TObjectStoreGetKeyParams: {
10127 const ObjectStoreGetKeyParams& params =
10128 aParams.get_ObjectStoreGetKeyParams();
10129 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10130 GetMetadataForObjectStoreId(params.objectStoreId());
10131 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10131
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10132 return false;
10133 }
10134 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10134); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence
(__null, 10134); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10135 return false;
10136 }
10137 break;
10138 }
10139
10140 case RequestParams::TObjectStoreGetAllParams: {
10141 const ObjectStoreGetAllParams& params =
10142 aParams.get_ObjectStoreGetAllParams();
10143 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10144 GetMetadataForObjectStoreId(params.objectStoreId());
10145 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10145
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10146 return false;
10147 }
10148 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10148
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10148); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.optionalKeyRange())))
) {
10149 return false;
10150 }
10151 break;
10152 }
10153
10154 case RequestParams::TObjectStoreGetAllKeysParams: {
10155 const ObjectStoreGetAllKeysParams& params =
10156 aParams.get_ObjectStoreGetAllKeysParams();
10157 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10158 GetMetadataForObjectStoreId(params.objectStoreId());
10159 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10159); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10159
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10160 return false;
10161 }
10162 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10162
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10162); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.optionalKeyRange())))
) {
10163 return false;
10164 }
10165 break;
10166 }
10167
10168 case RequestParams::TObjectStoreDeleteParams: {
10169 if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10172
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10172); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10170 mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10172
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10172); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10171 mMode != IDBTransaction::Mode::Cleanup &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10172
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10172); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10172 mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10172
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10172); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
) {
10173 return false;
10174 }
10175
10176 const ObjectStoreDeleteParams& params =
10177 aParams.get_ObjectStoreDeleteParams();
10178 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10179 GetMetadataForObjectStoreId(params.objectStoreId());
10180 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10180); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10180
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10181 return false;
10182 }
10183 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10183); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence
(__null, 10183); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10184 return false;
10185 }
10186 break;
10187 }
10188
10189 case RequestParams::TObjectStoreClearParams: {
10190 if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10193
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10193); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10191 mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10193
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10193); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10192 mMode != IDBTransaction::Mode::Cleanup &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10193
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10193); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
10193 mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10193
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10193); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::Cleanup && mMode != IDBTransaction
::Mode::VersionChange))
) {
10194 return false;
10195 }
10196
10197 const ObjectStoreClearParams& params =
10198 aParams.get_ObjectStoreClearParams();
10199 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10200 GetMetadataForObjectStoreId(params.objectStoreId());
10201 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10201); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10201
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10202 return false;
10203 }
10204 break;
10205 }
10206
10207 case RequestParams::TObjectStoreCountParams: {
10208 const ObjectStoreCountParams& params =
10209 aParams.get_ObjectStoreCountParams();
10210 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10211 GetMetadataForObjectStoreId(params.objectStoreId());
10212 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10212
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10213 return false;
10214 }
10215 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10215
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10215); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.optionalKeyRange())))
) {
10216 return false;
10217 }
10218 break;
10219 }
10220
10221 case RequestParams::TIndexGetParams: {
10222 const IndexGetParams& params = aParams.get_IndexGetParams();
10223 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10224 GetMetadataForObjectStoreId(params.objectStoreId());
10225 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10225); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10225
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10226 return false;
10227 }
10228 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10229 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10230 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10230)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10231 return false;
10232 }
10233 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10233); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence
(__null, 10233); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10234 return false;
10235 }
10236 break;
10237 }
10238
10239 case RequestParams::TIndexGetKeyParams: {
10240 const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams();
10241 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10242 GetMetadataForObjectStoreId(params.objectStoreId());
10243 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10243); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10243
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10244 return false;
10245 }
10246 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10247 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10248 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10248); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10248)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10249 return false;
10250 }
10251 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.keyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.keyRange())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10251); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence
(__null, 10251); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10252 return false;
10253 }
10254 break;
10255 }
10256
10257 case RequestParams::TIndexGetAllParams: {
10258 const IndexGetAllParams& params = aParams.get_IndexGetAllParams();
10259 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10260 GetMetadataForObjectStoreId(params.objectStoreId());
10261 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10261); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10261
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10262 return false;
10263 }
10264 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10265 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10266 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10266); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10266)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10267 return false;
10268 }
10269 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10269
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10269); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.optionalKeyRange())))
) {
10270 return false;
10271 }
10272 break;
10273 }
10274
10275 case RequestParams::TIndexGetAllKeysParams: {
10276 const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams();
10277 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10278 GetMetadataForObjectStoreId(params.objectStoreId());
10279 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10279); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10279
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10280 return false;
10281 }
10282 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10283 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10284 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10284); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10284)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10285 return false;
10286 }
10287 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10287
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10287); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.optionalKeyRange())))
) {
10288 return false;
10289 }
10290 break;
10291 }
10292
10293 case RequestParams::TIndexCountParams: {
10294 const IndexCountParams& params = aParams.get_IndexCountParams();
10295 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10296 GetMetadataForObjectStoreId(params.objectStoreId());
10297 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10297); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10297
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10298 return false;
10299 }
10300 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10301 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10302 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10302)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10303 return false;
10304 }
10305 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(params.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(params.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10305
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10305); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams(params.optionalKeyRange())))
) {
10306 return false;
10307 }
10308 break;
10309 }
10310
10311 default:
10312 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10312
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 10312); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10313 }
10314
10315 return true;
10316}
10317
10318bool TransactionBase::VerifyRequestParams(
10319 const SerializedKeyRange& aParams) const {
10320 AssertIsOnBackgroundThread();
10321
10322 // XXX Check more here?
10323
10324 if (aParams.isOnly()) {
10325 if (NS_AUUF_OR_WARN_IF(aParams.lower().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.lower().IsUnset()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10325); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lower().IsUnset()" ")"); do { MOZ_CrashSequence(__null
, 10325); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((aParams.lower().IsUnset
()))
) {
10326 return false;
10327 }
10328 if (NS_AUUF_OR_WARN_IF(!aParams.upper().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aParams.upper().IsUnset()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10328); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.upper().IsUnset()" ")"); do { MOZ_CrashSequence(__null
, 10328); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((!aParams.upper().IsUnset
()))
) {
10329 return false;
10330 }
10331 if (NS_AUUF_OR_WARN_IF(aParams.lowerOpen())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.lowerOpen()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10331); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lowerOpen()" ")"); do { MOZ_CrashSequence(__null, 10331
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((aParams.lowerOpen()))
) {
10332 return false;
10333 }
10334 if (NS_AUUF_OR_WARN_IF(aParams.upperOpen())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.upperOpen()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10334); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.upperOpen()" ")"); do { MOZ_CrashSequence(__null, 10334
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((aParams.upperOpen()))
) {
10335 return false;
10336 }
10337 } else if (NS_AUUF_OR_WARN_IF(aParams.lower().IsUnset() &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10338
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")"); do { MOZ_CrashSequence(__null, 10338); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((aParams.lower().IsUnset() && aParams.upper
().IsUnset()))
10338 aParams.upper().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10338
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")"); do { MOZ_CrashSequence(__null, 10338); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((aParams.lower().IsUnset() && aParams.upper
().IsUnset()))
) {
10339 return false;
10340 }
10341
10342 return true;
10343}
10344
10345bool TransactionBase::VerifyRequestParams(
10346 const ObjectStoreAddPutParams& aParams) const {
10347 AssertIsOnBackgroundThread();
10348
10349 if (NS_AUUF_OR_WARN_IF(mMode != IDBTransaction::Mode::ReadWrite &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10351
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10351); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
10350 mMode != IDBTransaction::Mode::ReadWriteFlush &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10351
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10351); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
10351 mMode != IDBTransaction::Mode::VersionChange)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10351
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 10351); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
) {
10352 return false;
10353 }
10354
10355 SafeRefPtr<FullObjectStoreMetadata> objMetadata =
10356 GetMetadataForObjectStoreId(aParams.objectStoreId());
10357 if (NS_AUUF_OR_WARN_IF(!objMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objMetadata" ")"); do { MOZ_CrashSequence(__null, 10357); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!objMetadata))
) {
10358 return false;
10359 }
10360
10361 if (NS_AUUF_OR_WARN_IF(!aParams.cloneInfo().data().data.Size())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aParams.cloneInfo().data().data.Size()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10361); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.cloneInfo().data().data.Size()" ")"); do { MOZ_CrashSequence
(__null, 10361); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!aParams.cloneInfo
().data().data.Size()))
) {
10362 return false;
10363 }
10364
10365 if (objMetadata->mCommonMetadata.autoIncrement() &&
10366 objMetadata->mCommonMetadata.keyPath().IsValid() &&
10367 aParams.key().IsUnset()) {
10368 const SerializedStructuredCloneWriteInfo& cloneInfo = aParams.cloneInfo();
10369
10370 if (NS_AUUF_OR_WARN_IF(!cloneInfo.offsetToKeyProp())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!cloneInfo.offsetToKeyProp()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!cloneInfo.offsetToKeyProp()" ")"); do { MOZ_CrashSequence(
__null, 10370); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!cloneInfo.offsetToKeyProp
()))
) {
10371 return false;
10372 }
10373
10374 if (NS_AUUF_OR_WARN_IF(cloneInfo.data().data.Size() < sizeof(uint64_t))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cloneInfo.data().data.Size() < sizeof(uint64_t)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10374
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.data().data.Size() < sizeof(uint64_t)"
")"); do { MOZ_CrashSequence(__null, 10374); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cloneInfo.data().data.Size() < sizeof(uint64_t)
))
) {
10375 return false;
10376 }
10377
10378 if (NS_AUUF_OR_WARN_IF(cloneInfo.offsetToKeyProp() >[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10379
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")"); do { MOZ_CrashSequence(__null, 10379); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data()
.data.Size() - sizeof(uint64_t))))
10379 (cloneInfo.data().data.Size() - sizeof(uint64_t)))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10379
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")"); do { MOZ_CrashSequence(__null, 10379); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data()
.data.Size() - sizeof(uint64_t))))
) {
10380 return false;
10381 }
10382 } else if (NS_AUUF_OR_WARN_IF(aParams.cloneInfo().offsetToKeyProp())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "aParams.cloneInfo().offsetToKeyProp()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10382); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.cloneInfo().offsetToKeyProp()" ")"); do { MOZ_CrashSequence
(__null, 10382); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((aParams.cloneInfo
().offsetToKeyProp()))
) {
10383 return false;
10384 }
10385
10386 for (const auto& updateInfo : aParams.indexUpdateInfos()) {
10387 SafeRefPtr<FullIndexMetadata> indexMetadata =
10388 GetMetadataForIndexId(*objMetadata, updateInfo.indexId());
10389 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10389); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10389)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10390 return false;
10391 }
10392
10393 if (NS_AUUF_OR_WARN_IF(updateInfo.value().IsUnset())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "updateInfo.value().IsUnset()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10393); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"updateInfo.value().IsUnset()" ")"); do { MOZ_CrashSequence(
__null, 10393); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((updateInfo.value
().IsUnset()))
) {
10394 return false;
10395 }
10396
10397 MOZ_ASSERT(!updateInfo.value().GetBuffer().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!updateInfo.value().GetBuffer().IsEmpty())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!updateInfo.value().GetBuffer().IsEmpty()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!updateInfo.value().GetBuffer().IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10397
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!updateInfo.value().GetBuffer().IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 10397); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10398 }
10399
10400 for (const FileAddInfo& fileAddInfo : aParams.fileAddInfos()) {
10401 const PBackgroundIDBDatabaseFileParent* file =
10402 fileAddInfo.file().AsParent();
10403
10404 switch (fileAddInfo.type()) {
10405 case StructuredCloneFileBase::eBlob:
10406 if (NS_AUUF_OR_WARN_IF(!file)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!file" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10406); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!file" ")"); do { MOZ_CrashSequence(__null, 10406); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!file))
) {
10407 return false;
10408 }
10409 break;
10410
10411 case StructuredCloneFileBase::eMutableFile: {
10412 return false;
10413 }
10414
10415 case StructuredCloneFileBase::eStructuredClone:
10416 case StructuredCloneFileBase::eWasmBytecode:
10417 case StructuredCloneFileBase::eWasmCompiled:
10418 case StructuredCloneFileBase::eEndGuard:
10419 MOZ_ASSERT_UNLESS_FUZZING(false, "Unsupported.")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "Unsupported."
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10419
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Unsupported."
")"); do { MOZ_CrashSequence(__null, 10419); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10420 return false;
10421
10422 default:
10423 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10423
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 10423); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10424 }
10425 }
10426
10427 return true;
10428}
10429
10430bool TransactionBase::VerifyRequestParams(
10431 const Maybe<SerializedKeyRange>& aParams) const {
10432 AssertIsOnBackgroundThread();
10433
10434 if (aParams.isSome()) {
10435 if (NS_AUUF_OR_WARN_IF(!VerifyRequestParams(aParams.ref()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams(aParams.ref())" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10435); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(aParams.ref())" ")"); do { MOZ_CrashSequence
(__null, 10435); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!VerifyRequestParams
(aParams.ref())))
) {
10436 return false;
10437 }
10438 }
10439
10440 return true;
10441}
10442
10443void TransactionBase::NoteActiveRequest() {
10444 AssertIsOnBackgroundThread();
10445 MOZ_ASSERT(mActiveRequestCount < UINT64_MAX)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActiveRequestCount < (18446744073709551615UL))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mActiveRequestCount < (18446744073709551615UL))))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActiveRequestCount < (18446744073709551615UL)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10445
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount < (18446744073709551615UL)"
")"); do { MOZ_CrashSequence(__null, 10445); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10446
10447 mActiveRequestCount++;
10448}
10449
10450void TransactionBase::NoteFinishedRequest(const int64_t aRequestId,
10451 const nsresult aResultCode) {
10452 AssertIsOnBackgroundThread();
10453 MOZ_ASSERT(mActiveRequestCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActiveRequestCount)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mActiveRequestCount))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mActiveRequestCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10453
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount"
")"); do { MOZ_CrashSequence(__null, 10453); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10454
10455 mActiveRequestCount--;
10456
10457 if (NS_FAILED(aResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0))
)
) {
10458 mLastFailedRequest = Some(aRequestId);
10459 }
10460
10461 MaybeCommitOrAbort();
10462}
10463
10464void TransactionBase::Invalidate() {
10465 AssertIsOnBackgroundThread();
10466 MOZ_ASSERT(mInvalidated == mInvalidatedOnAnyThread)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInvalidated == mInvalidatedOnAnyThread)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInvalidated == mInvalidatedOnAnyThread))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mInvalidated == mInvalidatedOnAnyThread"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10466
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated == mInvalidatedOnAnyThread"
")"); do { MOZ_CrashSequence(__null, 10466); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10467
10468 if (!mInvalidated) {
10469 mInvalidated.Flip();
10470 mInvalidatedOnAnyThread = true;
10471
10472 Abort(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR, /* aForce */ false);
10473 }
10474}
10475
10476PBackgroundIDBRequestParent* TransactionBase::AllocRequest(
10477 const int64_t aRequestId, RequestParams&& aParams, bool aTrustParams) {
10478 AssertIsOnBackgroundThread();
10479 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10479
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10479); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10480
10481#ifdef DEBUG1
10482 // Always verify parameters in DEBUG builds!
10483 aTrustParams = false;
10484#endif
10485
10486 if (NS_AUUF_OR_WARN_IF(!aTrustParams && !VerifyRequestParams(aParams))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aTrustParams && !VerifyRequestParams(aParams)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10486
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aTrustParams && !VerifyRequestParams(aParams)"
")"); do { MOZ_CrashSequence(__null, 10486); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!aTrustParams && !VerifyRequestParams(aParams
)))
) {
10487 return nullptr;
10488 }
10489
10490 if (NS_AUUF_OR_WARN_IF(mCommitOrAbortReceived)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mCommitOrAbortReceived" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10490); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCommitOrAbortReceived" ")"); do { MOZ_CrashSequence(__null
, 10490); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((mCommitOrAbortReceived
))
) {
10491 return nullptr;
10492 }
10493
10494 RefPtr<NormalTransactionOp> actor;
10495
10496 switch (aParams.type()) {
10497 case RequestParams::TObjectStoreAddParams:
10498 case RequestParams::TObjectStorePutParams:
10499 actor = new ObjectStoreAddOrPutRequestOp(SafeRefPtrFromThis(), aRequestId,
10500 std::move(aParams));
10501 break;
10502
10503 case RequestParams::TObjectStoreGetParams:
10504 actor =
10505 new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10506 /* aGetAll */ false);
10507 break;
10508
10509 case RequestParams::TObjectStoreGetAllParams:
10510 actor =
10511 new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10512 /* aGetAll */ true);
10513 break;
10514
10515 case RequestParams::TObjectStoreGetKeyParams:
10516 actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId,
10517 aParams,
10518 /* aGetAll */ false);
10519 break;
10520
10521 case RequestParams::TObjectStoreGetAllKeysParams:
10522 actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId,
10523 aParams,
10524 /* aGetAll */ true);
10525 break;
10526
10527 case RequestParams::TObjectStoreDeleteParams:
10528 actor =
10529 new ObjectStoreDeleteRequestOp(SafeRefPtrFromThis(), aRequestId,
10530 aParams.get_ObjectStoreDeleteParams());
10531 break;
10532
10533 case RequestParams::TObjectStoreClearParams:
10534 actor =
10535 new ObjectStoreClearRequestOp(SafeRefPtrFromThis(), aRequestId,
10536 aParams.get_ObjectStoreClearParams());
10537 break;
10538
10539 case RequestParams::TObjectStoreCountParams:
10540 actor =
10541 new ObjectStoreCountRequestOp(SafeRefPtrFromThis(), aRequestId,
10542 aParams.get_ObjectStoreCountParams());
10543 break;
10544
10545 case RequestParams::TIndexGetParams:
10546 actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10547 /* aGetAll */ false);
10548 break;
10549
10550 case RequestParams::TIndexGetKeyParams:
10551 actor =
10552 new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10553 /* aGetAll */ false);
10554 break;
10555
10556 case RequestParams::TIndexGetAllParams:
10557 actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10558 /* aGetAll */ true);
10559 break;
10560
10561 case RequestParams::TIndexGetAllKeysParams:
10562 actor =
10563 new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10564 /* aGetAll */ true);
10565 break;
10566
10567 case RequestParams::TIndexCountParams:
10568 actor =
10569 new IndexCountRequestOp(SafeRefPtrFromThis(), aRequestId, aParams);
10570 break;
10571
10572 default:
10573 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10573
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 10573); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10574 }
10575
10576 MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(actor)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10576); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { MOZ_CrashSequence(__null, 10576); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10577
10578 // Transfer ownership to IPDL.
10579 return actor.forget().take();
10580}
10581
10582bool TransactionBase::StartRequest(PBackgroundIDBRequestParent* aActor) {
10583 AssertIsOnBackgroundThread();
10584 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10584); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10584); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10585
10586 auto* op = static_cast<NormalTransactionOp*>(aActor);
10587
10588 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10588)
) {
10589 op->Cleanup();
10590 return false;
10591 }
10592
10593 op->DispatchToConnectionPool();
10594 return true;
10595}
10596
10597bool TransactionBase::DeallocRequest(
10598 PBackgroundIDBRequestParent* const aActor) {
10599 AssertIsOnBackgroundThread();
10600 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10600); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10600); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10601
10602 // Transfer ownership back from IPDL.
10603 const RefPtr<NormalTransactionOp> actor =
10604 dont_AddRef(static_cast<NormalTransactionOp*>(aActor));
10605 return true;
10606}
10607
10608already_AddRefed<PBackgroundIDBCursorParent> TransactionBase::AllocCursor(
10609 const OpenCursorParams& aParams, bool aTrustParams) {
10610 AssertIsOnBackgroundThread();
10611 MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != OpenCursorParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != OpenCursorParams::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10611
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10611); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10612
10613#ifdef DEBUG1
10614 // Always verify parameters in DEBUG builds!
10615 aTrustParams = false;
10616#endif
10617
10618 const OpenCursorParams::Type type = aParams.type();
10619 SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata;
10620 SafeRefPtr<FullIndexMetadata> indexMetadata;
10621 CursorBase::Direction direction;
10622
10623 // First extract the parameters common to all open cursor variants.
10624 const auto& commonParams = GetCommonOpenCursorParams(aParams);
10625 objectStoreMetadata =
10626 GetMetadataForObjectStoreId(commonParams.objectStoreId());
10627 if (NS_AUUF_OR_WARN_IF(!objectStoreMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!objectStoreMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10627); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10627
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!objectStoreMetadata))
) {
10628 return nullptr;
10629 }
10630 if (aTrustParams && NS_AUUF_OR_WARN_IF(!VerifyRequestParams([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams( commonParams.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10631
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams( commonParams.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10631); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams( commonParams.optionalKeyRange
())))
10631 commonParams.optionalKeyRange()))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!VerifyRequestParams( commonParams.optionalKeyRange())"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10631
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams( commonParams.optionalKeyRange())"
")"); do { MOZ_CrashSequence(__null, 10631); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!VerifyRequestParams( commonParams.optionalKeyRange
())))
) {
10632 return nullptr;
10633 }
10634 direction = commonParams.direction();
10635
10636 // Now, for the index open cursor variants, extract the additional parameter.
10637 if (type == OpenCursorParams::TIndexOpenCursorParams ||
10638 type == OpenCursorParams::TIndexOpenKeyCursorParams) {
10639 const auto& commonIndexParams = GetCommonIndexOpenCursorParams(aParams);
10640 indexMetadata = GetMetadataForIndexId(*objectStoreMetadata,
10641 commonIndexParams.indexId());
10642 if (NS_AUUF_OR_WARN_IF(!indexMetadata)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!indexMetadata" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10642)
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10643 return nullptr;
10644 }
10645 }
10646
10647 if (NS_AUUF_OR_WARN_IF(mCommitOrAbortReceived)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mCommitOrAbortReceived" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10647); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCommitOrAbortReceived" ")"); do { MOZ_CrashSequence(__null
, 10647); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((mCommitOrAbortReceived
))
) {
10648 return nullptr;
10649 }
10650
10651 // Create Cursor and transfer ownership to IPDL.
10652 switch (type) {
10653 case OpenCursorParams::TObjectStoreOpenCursorParams:
10654 MOZ_ASSERT(!indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!indexMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!indexMetadata))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!indexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10654
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata" ")"
); do { MOZ_CrashSequence(__null, 10654); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10655 return MakeAndAddRef<Cursor<IDBCursorType::ObjectStore>>(
10656 SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction,
10657 CursorBase::ConstructFromTransactionBase{});
10658 case OpenCursorParams::TObjectStoreOpenKeyCursorParams:
10659 MOZ_ASSERT(!indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!indexMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!indexMetadata))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!indexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10659
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata" ")"
); do { MOZ_CrashSequence(__null, 10659); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10660 return MakeAndAddRef<Cursor<IDBCursorType::ObjectStoreKey>>(
10661 SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction,
10662 CursorBase::ConstructFromTransactionBase{});
10663 case OpenCursorParams::TIndexOpenCursorParams:
10664 return MakeAndAddRef<Cursor<IDBCursorType::Index>>(
10665 SafeRefPtrFromThis(), std::move(objectStoreMetadata),
10666 std::move(indexMetadata), direction,
10667 CursorBase::ConstructFromTransactionBase{});
10668 case OpenCursorParams::TIndexOpenKeyCursorParams:
10669 return MakeAndAddRef<Cursor<IDBCursorType::IndexKey>>(
10670 SafeRefPtrFromThis(), std::move(objectStoreMetadata),
10671 std::move(indexMetadata), direction,
10672 CursorBase::ConstructFromTransactionBase{});
10673 default:
10674 MOZ_CRASH("Cannot get here.")do { do { } while (false); MOZ_ReportCrash("" "Cannot get here."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10674
); AnnotateMozCrashReason("MOZ_CRASH(" "Cannot get here." ")"
); do { MOZ_CrashSequence(__null, 10674); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
10675 }
10676}
10677
10678bool TransactionBase::StartCursor(PBackgroundIDBCursorParent* const aActor,
10679 const int64_t aRequestId,
10680 const OpenCursorParams& aParams) {
10681 AssertIsOnBackgroundThread();
10682 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10682); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10682); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10683 MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != OpenCursorParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != OpenCursorParams::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10683
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10683); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10684
10685 auto* const op = static_cast<CursorBase*>(aActor);
10686
10687 if (NS_WARN_IF(!op->Start(aRequestId, aParams))NS_warn_if_impl(!op->Start(aRequestId, aParams), "!op->Start(aRequestId, aParams)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10687
)
) {
10688 return false;
10689 }
10690
10691 return true;
10692}
10693
10694/*******************************************************************************
10695 * NormalTransaction
10696 ******************************************************************************/
10697
10698NormalTransaction::NormalTransaction(
10699 SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode,
10700 TransactionBase::Durability aDurability,
10701 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores)
10702 : TransactionBase(std::move(aDatabase), aMode, aDurability),
10703 mObjectStores{std::move(aObjectStores)} {
10704 AssertIsOnBackgroundThread();
10705 MOZ_ASSERT(!mObjectStores.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mObjectStores.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mObjectStores.IsEmpty()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!mObjectStores.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10705
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStores.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 10705); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10706}
10707
10708bool NormalTransaction::IsSameProcessActor() {
10709 AssertIsOnBackgroundThread();
10710
10711 PBackgroundParent* const actor = Manager()->Manager()->Manager();
10712 MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(actor)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10712); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { MOZ_CrashSequence(__null, 10712); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10713
10714 return !BackgroundParent::IsOtherProcessActor(actor);
10715}
10716
10717void NormalTransaction::SendCompleteNotification(nsresult aResult) {
10718 AssertIsOnBackgroundThread();
10719
10720 if (!IsActorDestroyed()) {
10721 Unused << SendComplete(aResult);
10722 }
10723}
10724
10725void NormalTransaction::ActorDestroy(ActorDestroyReason aWhy) {
10726 AssertIsOnBackgroundThread();
10727
10728 NoteActorDestroyed();
10729
10730 if (!mCommittedOrAborted) {
10731 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
10732 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10732, "UnknownErr")
;
10733 mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
10734 }
10735
10736 mForceAborted.EnsureFlipped();
10737
10738 MaybeCommitOrAbort();
10739 }
10740}
10741
10742mozilla::ipc::IPCResult NormalTransaction::RecvDeleteMe() {
10743 AssertIsOnBackgroundThread();
10744 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10744
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 10744); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10745
10746 QM_WARNONLY_TRY(OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))){auto tryResult980 = (OkIf(PBackgroundIDBTransactionParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult980)::ok_type>); if ((__builtin_expect(!!(tryResult980
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))"
, tryResult980.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10746, mozilla::dom::quota::Severity::Warning); }}
;
10747
10748 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10749}
10750
10751mozilla::ipc::IPCResult NormalTransaction::RecvCommit(
10752 const Maybe<int64_t>& aLastRequest) {
10753 AssertIsOnBackgroundThread();
10754
10755 return TransactionBase::RecvCommit(this, aLastRequest);
10756}
10757
10758mozilla::ipc::IPCResult NormalTransaction::RecvAbort(
10759 const nsresult& aResultCode) {
10760 AssertIsOnBackgroundThread();
10761
10762 return TransactionBase::RecvAbort(this, aResultCode);
10763}
10764
10765PBackgroundIDBRequestParent*
10766NormalTransaction::AllocPBackgroundIDBRequestParent(
10767 const int64_t& aRequestId, const RequestParams& aParams) {
10768 AssertIsOnBackgroundThread();
10769 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10769
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10769); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10770
10771 return AllocRequest(aRequestId,
10772 std::move(const_cast<RequestParams&>(aParams)),
10773 IsSameProcessActor());
10774}
10775
10776mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBRequestConstructor(
10777 PBackgroundIDBRequestParent* const aActor, const int64_t& aRequestId,
10778 const RequestParams& aParams) {
10779 AssertIsOnBackgroundThread();
10780 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10780); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10780); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10781 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10781
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10781); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10782
10783 if (!StartRequest(aActor)) {
10784 return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!"
))
;
10785 }
10786 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10787}
10788
10789bool NormalTransaction::DeallocPBackgroundIDBRequestParent(
10790 PBackgroundIDBRequestParent* const aActor) {
10791 AssertIsOnBackgroundThread();
10792 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10792); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10792); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10793
10794 return DeallocRequest(aActor);
10795}
10796
10797already_AddRefed<PBackgroundIDBCursorParent>
10798NormalTransaction::AllocPBackgroundIDBCursorParent(
10799 const int64_t& aRequestId, const OpenCursorParams& aParams) {
10800 AssertIsOnBackgroundThread();
10801
10802 return AllocCursor(aParams, IsSameProcessActor());
10803}
10804
10805mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBCursorConstructor(
10806 PBackgroundIDBCursorParent* const aActor, const int64_t& aRequestId,
10807 const OpenCursorParams& aParams) {
10808 AssertIsOnBackgroundThread();
10809 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10809); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 10809); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10810 MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != OpenCursorParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != OpenCursorParams::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10810
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { MOZ_CrashSequence(__null, 10810); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10811
10812 if (!StartCursor(aActor, aRequestId, aParams)) {
10813 return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!"
))
;
10814 }
10815 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10816}
10817
10818/*******************************************************************************
10819 * VersionChangeTransaction
10820 ******************************************************************************/
10821
10822VersionChangeTransaction::VersionChangeTransaction(
10823 OpenDatabaseOp* aOpenDatabaseOp)
10824 : TransactionBase(aOpenDatabaseOp->mDatabase.clonePtr(),
10825 IDBTransaction::Mode::VersionChange,
10826 // VersionChange must not change durability.
10827 IDBTransaction::Durability::Default), // Not used.
10828 mOpenDatabaseOp(aOpenDatabaseOp) {
10829 AssertIsOnBackgroundThread();
10830 MOZ_ASSERT(aOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10830
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 10830); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10831}
10832
10833VersionChangeTransaction::~VersionChangeTransaction() {
10834#ifdef DEBUG1
10835 // Silence the base class' destructor assertion if we never made this actor
10836 // live.
10837 FakeActorDestroyed();
10838#endif
10839}
10840
10841bool VersionChangeTransaction::IsSameProcessActor() {
10842 AssertIsOnBackgroundThread();
10843
10844 PBackgroundParent* actor = Manager()->Manager()->Manager();
10845 MOZ_ASSERT(actor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(actor)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(actor))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("actor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10845); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { MOZ_CrashSequence(__null, 10845); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10846
10847 return !BackgroundParent::IsOtherProcessActor(actor);
10848}
10849
10850void VersionChangeTransaction::SetActorAlive() {
10851 AssertIsOnBackgroundThread();
10852 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10852
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 10852); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10853
10854 mActorWasAlive.Flip();
10855}
10856
10857bool VersionChangeTransaction::CopyDatabaseMetadata() {
10858 AssertIsOnBackgroundThread();
10859 MOZ_ASSERT(!mOldMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOldMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mOldMetadata))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mOldMetadata",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10859)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOldMetadata" ")"
); do { MOZ_CrashSequence(__null, 10859); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
31
Taking false branch
32
Loop condition is false. Exiting loop
10860
10861 const auto& origMetadata = GetDatabase().Metadata();
10862
10863 SafeRefPtr<FullDatabaseMetadata> newMetadata = origMetadata.Duplicate();
33
Calling 'FullDatabaseMetadata::Duplicate'
10864 if (NS_WARN_IF(!newMetadata)NS_warn_if_impl(!newMetadata, "!newMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10864)
) {
10865 return false;
10866 }
10867
10868 // Replace the live metadata with the new mutable copy.
10869 DatabaseActorInfo* info;
10870 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
origMetadata.mDatabaseId, &info)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10870
); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)"
")"); do { MOZ_CrashSequence(__null, 10870); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
10871 MOZ_ASSERT(!info->mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.isEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!info->mLiveDatabases.isEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10871); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()"
")"); do { MOZ_CrashSequence(__null, 10871); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10872 MOZ_ASSERT(info->mMetadata == &origMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mMetadata == &origMetadata)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(info->mMetadata == &origMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("info->mMetadata == &origMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10872
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == &origMetadata"
")"); do { MOZ_CrashSequence(__null, 10872); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10873
10874 mOldMetadata = std::move(info->mMetadata);
10875 info->mMetadata = std::move(newMetadata);
10876
10877 // Replace metadata pointers for all live databases.
10878 for (Database* const liveDatabase : info->mLiveDatabases) {
10879 liveDatabase->mMetadata = info->mMetadata.clonePtr();
10880 }
10881
10882 return true;
10883}
10884
10885void VersionChangeTransaction::UpdateMetadata(nsresult aResult) {
10886 AssertIsOnBackgroundThread();
10887 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10887
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 10887); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10888 MOZ_ASSERT(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10888
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase"
")"); do { MOZ_CrashSequence(__null, 10888); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10889 MOZ_ASSERT_IF(mActorWasAlive, !mOpenDatabaseOp->mDatabaseId.ref().IsEmpty())do { if (mActorWasAlive) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!mOpenDatabaseOp->mDatabaseId
.ref().IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mOpenDatabaseOp->mDatabaseId
.ref().IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mOpenDatabaseOp->mDatabaseId.ref().IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10889); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mDatabaseId.ref().IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 10889); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10890
10891 if (IsActorDestroyed() || !mActorWasAlive) {
10892 return;
10893 }
10894
10895 SafeRefPtr<FullDatabaseMetadata> oldMetadata = std::move(mOldMetadata);
10896
10897 DatabaseActorInfo* info;
10898 if (!gLiveDatabaseHashtable->Get(oldMetadata->mDatabaseId, &info)) {
10899 return;
10900 }
10901
10902 MOZ_ASSERT(!info->mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.isEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!info->mLiveDatabases.isEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10902); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()"
")"); do { MOZ_CrashSequence(__null, 10902); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10903
10904 if (NS_SUCCEEDED(aResult)((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResult)), 1)))) {
10905 // Remove all deleted objectStores and indexes, then mark immutable.
10906 info->mMetadata->mObjectStores.RemoveIf([](const auto& objectStoreIter) {
10907 MOZ_ASSERT(objectStoreIter.Key())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreIter.Key())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(objectStoreIter.Key()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("objectStoreIter.Key()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10907
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreIter.Key()"
")"); do { MOZ_CrashSequence(__null, 10907); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10908 const SafeRefPtr<FullObjectStoreMetadata>& metadata =
10909 objectStoreIter.Data();
10910 MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(metadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10910); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 10910); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10911
10912 if (metadata->mDeleted) {
10913 return true;
10914 }
10915
10916 metadata->mIndexes.RemoveIf([](const auto& indexIter) -> bool {
10917 MOZ_ASSERT(indexIter.Key())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(indexIter.Key())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(indexIter.Key()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("indexIter.Key()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10917
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexIter.Key()" ")"
); do { MOZ_CrashSequence(__null, 10917); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10918 const SafeRefPtr<FullIndexMetadata>& index = indexIter.Data();
10919 MOZ_ASSERT(index)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(index)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(index))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("index", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10919); AnnotateMozCrashReason("MOZ_ASSERT" "(" "index" ")"
); do { MOZ_CrashSequence(__null, 10919); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10920
10921 return index->mDeleted;
10922 });
10923 metadata->mIndexes.MarkImmutable();
10924
10925 return false;
10926 });
10927
10928 info->mMetadata->mObjectStores.MarkImmutable();
10929 } else {
10930 // Replace metadata pointers for all live databases.
10931 info->mMetadata = std::move(oldMetadata);
10932
10933 for (Database* const liveDatabase : info->mLiveDatabases) {
10934 liveDatabase->mMetadata = info->mMetadata.clonePtr();
10935 }
10936 }
10937}
10938
10939void VersionChangeTransaction::SendCompleteNotification(nsresult aResult) {
10940 AssertIsOnBackgroundThread();
10941 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10941
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 10941); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10942 MOZ_ASSERT(!mOpenDatabaseOp->mCompleteCallback)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOpenDatabaseOp->mCompleteCallback)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mOpenDatabaseOp->mCompleteCallback))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mOpenDatabaseOp->mCompleteCallback"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10942
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mCompleteCallback"
")"); do { MOZ_CrashSequence(__null, 10942); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10943 MOZ_ASSERT_IF(!mActorWasAlive, mOpenDatabaseOp->HasFailed())do { if (!mActorWasAlive) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mOpenDatabaseOp->HasFailed
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mOpenDatabaseOp->HasFailed()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->HasFailed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10943
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->HasFailed()"
")"); do { MOZ_CrashSequence(__null, 10943); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10944 MOZ_ASSERT_IF(!mActorWasAlive, mOpenDatabaseOp->mState >do { if (!mActorWasAlive) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mOpenDatabaseOp->mState
> OpenDatabaseOp::State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp->mState >
OpenDatabaseOp::State::SendingResults))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10945
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 10945); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
10945 OpenDatabaseOp::State::SendingResults)do { if (!mActorWasAlive) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(mOpenDatabaseOp->mState
> OpenDatabaseOp::State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp->mState >
OpenDatabaseOp::State::SendingResults))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10945
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 10945); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10946
10947 const RefPtr<OpenDatabaseOp> openDatabaseOp = std::move(mOpenDatabaseOp);
10948
10949 if (!mActorWasAlive) {
10950 return;
10951 }
10952
10953 openDatabaseOp->mCompleteCallback =
10954 [self = SafeRefPtr{this, AcquireStrongRefFromRawPtr{}}, aResult]() {
10955 if (!self->IsActorDestroyed()) {
10956 Unused << self->SendComplete(aResult);
10957 }
10958 };
10959
10960 auto handleError = [openDatabaseOp](const nsresult rv) {
10961 openDatabaseOp->SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
10962
10963 openDatabaseOp->mState = OpenDatabaseOp::State::SendingResults;
10964
10965 MOZ_ALWAYS_SUCCEEDS(openDatabaseOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(openDatabaseOp->Run())), 1)))), 1))) { } else { do { do {
} while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(openDatabaseOp->Run())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10965
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(openDatabaseOp->Run())"
")"); do { MOZ_CrashSequence(__null, 10965); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
10966 };
10967
10968 if (NS_FAILED(aResult)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult)), 0)))) {
10969 // 3.3.1 Opening a database:
10970 // "If the upgrade transaction was aborted, run the steps for closing a
10971 // database connection with connection, create and return a new AbortError
10972 // exception and abort these steps."
10973 handleError(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
10974 return;
10975 }
10976
10977 openDatabaseOp->mState = OpenDatabaseOp::State::DatabaseWorkVersionUpdate;
10978
10979 QuotaManager* const quotaManager = QuotaManager::Get();
10980 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10980); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 10980); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10981
10982 QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch(openDatabaseOp,{auto tryResult981 = (ToResult(quotaManager->IOThread()->
Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr
( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
})); static_assert(std::is_empty_v<typename decltype(tryResult981
)::ok_type>); if ((__builtin_expect(!!(tryResult981.isErr(
)), 0))) { auto tryTempError = tryResult981.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10986, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
10983 NS_DISPATCH_NORMAL)){auto tryResult981 = (ToResult(quotaManager->IOThread()->
Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr
( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
})); static_assert(std::is_empty_v<typename decltype(tryResult981
)::ok_type>); if ((__builtin_expect(!!(tryResult981.isErr(
)), 0))) { auto tryTempError = tryResult981.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10986, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
10984 .mapErr({auto tryResult981 = (ToResult(quotaManager->IOThread()->
Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr
( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
})); static_assert(std::is_empty_v<typename decltype(tryResult981
)::ok_type>); if ((__builtin_expect(!!(tryResult981.isErr(
)), 0))) { auto tryTempError = tryResult981.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10986, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
10985 [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; }),{auto tryResult981 = (ToResult(quotaManager->IOThread()->
Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr
( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
})); static_assert(std::is_empty_v<typename decltype(tryResult981
)::ok_type>); if ((__builtin_expect(!!(tryResult981.isErr(
)), 0))) { auto tryTempError = tryResult981.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10986, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
10986 QM_VOID, handleError){auto tryResult981 = (ToResult(quotaManager->IOThread()->
Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr
( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
})); static_assert(std::is_empty_v<typename decltype(tryResult981
)::ok_type>); if ((__builtin_expect(!!(tryResult981.isErr(
)), 0))) { auto tryTempError = tryResult981.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(openDatabaseOp, nsIEventTarget::DISPATCH_NORMAL)) .mapErr( [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10986, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
;
10987}
10988
10989void VersionChangeTransaction::ActorDestroy(ActorDestroyReason aWhy) {
10990 AssertIsOnBackgroundThread();
10991
10992 NoteActorDestroyed();
10993
10994 if (!mCommittedOrAborted) {
10995 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
10996 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 10996, "UnknownErr")
;
10997 mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
10998 }
10999
11000 mForceAborted.EnsureFlipped();
11001
11002 MaybeCommitOrAbort();
11003 }
11004}
11005
11006mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteMe() {
11007 AssertIsOnBackgroundThread();
11008 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11008
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 11008); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11009
11010 QM_WARNONLY_TRY({auto tryResult982 = (OkIf(PBackgroundIDBVersionChangeTransactionParent
::Send__delete__(this))); static_assert(std::is_empty_v<typename
decltype(tryResult982)::ok_type>); if ((__builtin_expect(
!!(tryResult982.isErr()), 0))) { mozilla::dom::quota::HandleError
("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))"
, tryResult982.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11011, mozilla::dom::quota::Severity::Warning); }}
11011 OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))){auto tryResult982 = (OkIf(PBackgroundIDBVersionChangeTransactionParent
::Send__delete__(this))); static_assert(std::is_empty_v<typename
decltype(tryResult982)::ok_type>); if ((__builtin_expect(
!!(tryResult982.isErr()), 0))) { mozilla::dom::quota::HandleError
("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))"
, tryResult982.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11011, mozilla::dom::quota::Severity::Warning); }}
;
11012
11013 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11014}
11015
11016mozilla::ipc::IPCResult VersionChangeTransaction::RecvCommit(
11017 const Maybe<int64_t>& aLastRequest) {
11018 AssertIsOnBackgroundThread();
11019
11020 return TransactionBase::RecvCommit(this, aLastRequest);
11021}
11022
11023mozilla::ipc::IPCResult VersionChangeTransaction::RecvAbort(
11024 const nsresult& aResultCode) {
11025 AssertIsOnBackgroundThread();
11026
11027 return TransactionBase::RecvAbort(this, aResultCode);
11028}
11029
11030mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateObjectStore(
11031 const ObjectStoreMetadata& aMetadata) {
11032 AssertIsOnBackgroundThread();
11033
11034 if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11034)
) {
11035 return IPC_FAIL(this, "No metadata ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata ID!"
))
;
11036 }
11037
11038 const SafeRefPtr<FullDatabaseMetadata> dbMetadata =
11039 GetDatabase().MetadataPtr();
11040
11041 if (NS_WARN_IF(aMetadata.id() != dbMetadata->mNextObjectStoreId)NS_warn_if_impl(aMetadata.id() != dbMetadata->mNextObjectStoreId
, "aMetadata.id() != dbMetadata->mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11041)
) {
11042 return IPC_FAIL(this, "Requested metadata ID does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested metadata ID does not match next ID!"
))
;
11043 }
11044
11045 if (NS_WARN_IF(NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores
, aMetadata.id(), SomeRef<const nsAString&>(aMetadata
.name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11048
)
11046 MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(),NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores
, aMetadata.id(), SomeRef<const nsAString&>(aMetadata
.name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11048
)
11047 SomeRef<const nsAString&>(aMetadata.name()))NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores
, aMetadata.id(), SomeRef<const nsAString&>(aMetadata
.name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11048
)
11048 .isSome())NS_warn_if_impl(MatchMetadataNameOrId(dbMetadata->mObjectStores
, aMetadata.id(), SomeRef<const nsAString&>(aMetadata
.name())) .isSome(), "MatchMetadataNameOrId(dbMetadata->mObjectStores, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11048
)
) {
11049 return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!"
))
;
11050 }
11051
11052 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11052
)
) {
11053 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11054 }
11055
11056 const int64_t initialAutoIncrementId = aMetadata.autoIncrement() ? 1 : 0;
11057 auto newMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>(
11058 aMetadata, FullObjectStoreMetadata::AutoIncrementIds{
11059 initialAutoIncrementId, initialAutoIncrementId});
11060
11061 if (NS_WARN_IF(!dbMetadata->mObjectStores.InsertOrUpdate(NS_warn_if_impl(!dbMetadata->mObjectStores.InsertOrUpdate(
aMetadata.id(), std::move(newMetadata), fallible), "!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11062
)
11062 aMetadata.id(), std::move(newMetadata), fallible))NS_warn_if_impl(!dbMetadata->mObjectStores.InsertOrUpdate(
aMetadata.id(), std::move(newMetadata), fallible), "!dbMetadata->mObjectStores.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11062
)
) {
11063 return IPC_FAIL(this, "mObjectStores.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mObjectStores.InsertOrUpdate failed!"
))
;
11064 }
11065
11066 dbMetadata->mNextObjectStoreId++;
11067
11068 RefPtr<CreateObjectStoreOp> op = new CreateObjectStoreOp(
11069 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aMetadata);
11070
11071 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11071)
) {
11072 op->Cleanup();
11073 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11074 }
11075
11076 op->DispatchToConnectionPool();
11077
11078 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11079}
11080
11081mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteObjectStore(
11082 const IndexOrObjectStoreId& aObjectStoreId) {
11083 AssertIsOnBackgroundThread();
11084
11085 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11085)
) {
11086 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11087 }
11088
11089 const auto& dbMetadata = GetDatabase().Metadata();
11090 MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId
> 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbMetadata.mNextObjectStoreId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11090); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { MOZ_CrashSequence(__null, 11090); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11091
11092 if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId
, "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11092)
) {
11093 return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!"
))
;
11094 }
11095
11096 SafeRefPtr<FullObjectStoreMetadata> foundMetadata =
11097 GetMetadataForObjectStoreId(aObjectStoreId);
11098
11099 if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11099)
) {
11100 return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!"
))
;
11101 }
11102
11103 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11103
)
) {
11104 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11105 }
11106
11107 foundMetadata->mDeleted.Flip();
11108
11109 DebugOnly<bool> foundTargetId = false;
11110 const bool isLastObjectStore = std::all_of(
11111 dbMetadata.mObjectStores.begin(), dbMetadata.mObjectStores.end(),
11112 [&foundTargetId, aObjectStoreId](const auto& objectStoreEntry) -> bool {
11113 if (uint64_t(aObjectStoreId) == objectStoreEntry.GetKey()) {
11114 foundTargetId = true;
11115 return true;
11116 }
11117
11118 return objectStoreEntry.GetData()->mDeleted;
11119 });
11120 MOZ_ASSERT_IF(isLastObjectStore, foundTargetId)do { if (isLastObjectStore) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(foundTargetId)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(foundTargetId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundTargetId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11120); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId"
")"); do { MOZ_CrashSequence(__null, 11120); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11121
11122 RefPtr<DeleteObjectStoreOp> op = new DeleteObjectStoreOp(
11123 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
11124 std::move(foundMetadata), isLastObjectStore);
11125
11126 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11126)
) {
11127 op->Cleanup();
11128 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11129 }
11130
11131 op->DispatchToConnectionPool();
11132
11133 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11134}
11135
11136mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameObjectStore(
11137 const IndexOrObjectStoreId& aObjectStoreId, const nsAString& aName) {
11138 AssertIsOnBackgroundThread();
11139
11140 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11140)
) {
11141 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11142 }
11143
11144 {
11145 const auto& dbMetadata = GetDatabase().Metadata();
11146 MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId
> 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbMetadata.mNextObjectStoreId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11146); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { MOZ_CrashSequence(__null, 11146); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11147
11148 if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId
, "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11148)
) {
11149 return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!"
))
;
11150 }
11151 }
11152
11153 SafeRefPtr<FullObjectStoreMetadata> foundMetadata =
11154 GetMetadataForObjectStoreId(aObjectStoreId);
11155
11156 if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11156)
) {
11157 return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!"
))
;
11158 }
11159
11160 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11160
)
) {
11161 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11162 }
11163
11164 foundMetadata->mCommonMetadata.name() = aName;
11165
11166 RefPtr<RenameObjectStoreOp> renameOp = new RenameObjectStoreOp(
11167 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
11168 *foundMetadata);
11169
11170 if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11170
)
) {
11171 renameOp->Cleanup();
11172 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11173 }
11174
11175 renameOp->DispatchToConnectionPool();
11176
11177 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11178}
11179
11180mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateIndex(
11181 const IndexOrObjectStoreId& aObjectStoreId,
11182 const IndexMetadata& aMetadata) {
11183 AssertIsOnBackgroundThread();
11184
11185 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11185)
) {
11186 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11187 }
11188
11189 if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11189)
) {
11190 return IPC_FAIL(this, "No Metadata id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Metadata id!"
))
;
11191 }
11192
11193 const auto dbMetadata = GetDatabase().MetadataPtr();
11194
11195 if (NS_WARN_IF(aMetadata.id() != dbMetadata->mNextIndexId)NS_warn_if_impl(aMetadata.id() != dbMetadata->mNextIndexId
, "aMetadata.id() != dbMetadata->mNextIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11195)
) {
11196 return IPC_FAIL(this, "Requested metadata ID does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested metadata ID does not match next ID!"
))
;
11197 }
11198
11199 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11200 GetMetadataForObjectStoreId(aObjectStoreId);
11201
11202 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11202
)
) {
11203 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11204 }
11205
11206 if (NS_WARN_IF(MatchMetadataNameOrId(NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata
->mIndexes, aMetadata.id(), SomeRef<const nsAString&
>(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11209
)
11207 foundObjectStoreMetadata->mIndexes, aMetadata.id(),NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata
->mIndexes, aMetadata.id(), SomeRef<const nsAString&
>(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11209
)
11208 SomeRef<const nsAString&>(aMetadata.name()))NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata
->mIndexes, aMetadata.id(), SomeRef<const nsAString&
>(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11209
)
11209 .isSome())NS_warn_if_impl(MatchMetadataNameOrId( foundObjectStoreMetadata
->mIndexes, aMetadata.id(), SomeRef<const nsAString&
>(aMetadata.name())) .isSome(), "MatchMetadataNameOrId( foundObjectStoreMetadata->mIndexes, aMetadata.id(), SomeRef<const nsAString&>(aMetadata.name())) .isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11209
)
) {
11210 return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!"
))
;
11211 }
11212
11213 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11213
)
) {
11214 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11215 }
11216
11217 auto newMetadata = MakeSafeRefPtr<FullIndexMetadata>();
11218 newMetadata->mCommonMetadata = aMetadata;
11219
11220 if (NS_WARN_IF(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate(NS_warn_if_impl(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate
( aMetadata.id(), std::move(newMetadata), fallible), "!foundObjectStoreMetadata->mIndexes.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11221
)
11221 aMetadata.id(), std::move(newMetadata), fallible))NS_warn_if_impl(!foundObjectStoreMetadata->mIndexes.InsertOrUpdate
( aMetadata.id(), std::move(newMetadata), fallible), "!foundObjectStoreMetadata->mIndexes.InsertOrUpdate( aMetadata.id(), std::move(newMetadata), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11221
)
) {
11222 return IPC_FAIL(this, "mIndexes.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mIndexes.InsertOrUpdate failed!"
))
;
11223 }
11224
11225 dbMetadata->mNextIndexId++;
11226
11227 RefPtr<CreateIndexOp> op = new CreateIndexOp(
11228 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId,
11229 aMetadata);
11230
11231 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11231)
) {
11232 op->Cleanup();
11233 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11234 }
11235
11236 op->DispatchToConnectionPool();
11237
11238 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11239}
11240
11241mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteIndex(
11242 const IndexOrObjectStoreId& aObjectStoreId,
11243 const IndexOrObjectStoreId& aIndexId) {
11244 AssertIsOnBackgroundThread();
11245
11246 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11246)
) {
11247 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11248 }
11249
11250 if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11250)
) {
11251 return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!"
))
;
11252 }
11253 {
11254 const auto& dbMetadata = GetDatabase().Metadata();
11255 MOZ_ASSERT(dbMetadata.mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata.mNextObjectStoreId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextObjectStoreId
> 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbMetadata.mNextObjectStoreId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { MOZ_CrashSequence(__null, 11255); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11256 MOZ_ASSERT(dbMetadata.mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata.mNextIndexId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata.mNextIndexId >
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbMetadata.mNextIndexId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextIndexId > 0"
")"); do { MOZ_CrashSequence(__null, 11256); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11257
11258 if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId
, "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11258)
) {
11259 return IPC_FAIL(this, "Requested ObjectStoreId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested ObjectStoreId does not match next ID!"
))
;
11260 }
11261
11262 if (NS_WARN_IF(aIndexId >= dbMetadata.mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata.mNextIndexId, "aIndexId >= dbMetadata.mNextIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11262
)
) {
11263 return IPC_FAIL(this, "Requested IndexId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested IndexId does not match next ID!"
))
;
11264 }
11265 }
11266
11267 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11268 GetMetadataForObjectStoreId(aObjectStoreId);
11269
11270 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11270
)
) {
11271 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11272 }
11273
11274 SafeRefPtr<FullIndexMetadata> foundIndexMetadata =
11275 GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId);
11276
11277 if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11277)
) {
11278 return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!"
))
;
11279 }
11280
11281 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11281
)
) {
11282 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11283 }
11284
11285 foundIndexMetadata->mDeleted.Flip();
11286
11287 DebugOnly<bool> foundTargetId = false;
11288 const bool isLastIndex =
11289 std::all_of(foundObjectStoreMetadata->mIndexes.cbegin(),
11290 foundObjectStoreMetadata->mIndexes.cend(),
11291 [&foundTargetId, aIndexId](const auto& indexEntry) -> bool {
11292 if (uint64_t(aIndexId) == indexEntry.GetKey()) {
11293 foundTargetId = true;
11294 return true;
11295 }
11296
11297 return indexEntry.GetData()->mDeleted;
11298 });
11299 MOZ_ASSERT_IF(isLastIndex, foundTargetId)do { if (isLastIndex) { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(foundTargetId)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(foundTargetId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundTargetId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11299); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId"
")"); do { MOZ_CrashSequence(__null, 11299); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11300
11301 RefPtr<DeleteIndexOp> op = new DeleteIndexOp(
11302 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId,
11303 aIndexId, foundIndexMetadata->mCommonMetadata.unique(), isLastIndex);
11304
11305 if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11305)
) {
11306 op->Cleanup();
11307 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11308 }
11309
11310 op->DispatchToConnectionPool();
11311
11312 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11313}
11314
11315mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameIndex(
11316 const IndexOrObjectStoreId& aObjectStoreId,
11317 const IndexOrObjectStoreId& aIndexId, const nsAString& aName) {
11318 AssertIsOnBackgroundThread();
11319
11320 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11320)
) {
11321 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11322 }
11323
11324 if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11324)
) {
11325 return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!"
))
;
11326 }
11327
11328 const SafeRefPtr<FullDatabaseMetadata> dbMetadata =
11329 GetDatabase().MetadataPtr();
11330 MOZ_ASSERT(dbMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("dbMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11330); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata"
")"); do { MOZ_CrashSequence(__null, 11330); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11331 MOZ_ASSERT(dbMetadata->mNextObjectStoreId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata->mNextObjectStoreId > 0)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(dbMetadata->mNextObjectStoreId > 0))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("dbMetadata->mNextObjectStoreId > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11331
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextObjectStoreId > 0"
")"); do { MOZ_CrashSequence(__null, 11331); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11332 MOZ_ASSERT(dbMetadata->mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(dbMetadata->mNextIndexId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbMetadata->mNextIndexId >
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("dbMetadata->mNextIndexId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11332); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextIndexId > 0"
")"); do { MOZ_CrashSequence(__null, 11332); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11333
11334 if (NS_WARN_IF(aObjectStoreId >= dbMetadata->mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata->mNextObjectStoreId
, "aObjectStoreId >= dbMetadata->mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11334)
) {
11335 return IPC_FAIL(this, "Requested ObjectStoreId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested ObjectStoreId does not match next ID!"
))
;
11336 }
11337
11338 if (NS_WARN_IF(aIndexId >= dbMetadata->mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata->mNextIndexId, "aIndexId >= dbMetadata->mNextIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11338
)
) {
11339 return IPC_FAIL(this, "Requested IndexId does not match next ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Requested IndexId does not match next ID!"
))
;
11340 }
11341
11342 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11343 GetMetadataForObjectStoreId(aObjectStoreId);
11344
11345 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11345
)
) {
11346 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11347 }
11348
11349 SafeRefPtr<FullIndexMetadata> foundIndexMetadata =
11350 GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId);
11351
11352 if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11352)
) {
11353 return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!"
))
;
11354 }
11355
11356 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11356
)
) {
11357 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11358 }
11359
11360 foundIndexMetadata->mCommonMetadata.name() = aName;
11361
11362 RefPtr<RenameIndexOp> renameOp = new RenameIndexOp(
11363 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
11364 *foundIndexMetadata, aObjectStoreId);
11365
11366 if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11366
)
) {
11367 renameOp->Cleanup();
11368 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11369 }
11370
11371 renameOp->DispatchToConnectionPool();
11372
11373 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11374}
11375
11376PBackgroundIDBRequestParent*
11377VersionChangeTransaction::AllocPBackgroundIDBRequestParent(
11378 const int64_t& aRequestId, const RequestParams& aParams) {
11379 AssertIsOnBackgroundThread();
11380 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11380
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 11380); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11381
11382 return AllocRequest(aRequestId,
11383 std::move(const_cast<RequestParams&>(aParams)),
11384 IsSameProcessActor());
11385}
11386
11387mozilla::ipc::IPCResult
11388VersionChangeTransaction::RecvPBackgroundIDBRequestConstructor(
11389 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
11390 const RequestParams& aParams) {
11391 AssertIsOnBackgroundThread();
11392 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11392); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 11392); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11393 MOZ_ASSERT(aParams.type() != RequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != RequestParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != RequestParams::T__None))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aParams.type() != RequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11393
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 11393); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11394
11395 if (!StartRequest(aActor)) {
11396 return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!"
))
;
11397 }
11398 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11399}
11400
11401bool VersionChangeTransaction::DeallocPBackgroundIDBRequestParent(
11402 PBackgroundIDBRequestParent* aActor) {
11403 AssertIsOnBackgroundThread();
11404 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11404); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 11404); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11405
11406 return DeallocRequest(aActor);
11407}
11408
11409already_AddRefed<PBackgroundIDBCursorParent>
11410VersionChangeTransaction::AllocPBackgroundIDBCursorParent(
11411 const int64_t& aRequestId, const OpenCursorParams& aParams) {
11412 AssertIsOnBackgroundThread();
11413
11414 return AllocCursor(aParams, IsSameProcessActor());
11415}
11416
11417mozilla::ipc::IPCResult
11418VersionChangeTransaction::RecvPBackgroundIDBCursorConstructor(
11419 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
11420 const OpenCursorParams& aParams) {
11421 AssertIsOnBackgroundThread();
11422 MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aActor)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11422); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { MOZ_CrashSequence(__null, 11422); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11423 MOZ_ASSERT(aParams.type() != OpenCursorParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != OpenCursorParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aParams.type() != OpenCursorParams::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aParams.type() != OpenCursorParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11423
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { MOZ_CrashSequence(__null, 11423); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11424
11425 if (!StartCursor(aActor, aRequestId, aParams)) {
11426 return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!"
))
;
11427 }
11428 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11429}
11430
11431/*******************************************************************************
11432 * CursorBase
11433 ******************************************************************************/
11434
11435CursorBase::CursorBase(SafeRefPtr<TransactionBase> aTransaction,
11436 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
11437 const Direction aDirection,
11438 const ConstructFromTransactionBase /*aConstructionTag*/)
11439 : mTransaction(std::move(aTransaction)),
11440 mObjectStoreMetadata(WrapNotNull(std::move(aObjectStoreMetadata))),
11441 mObjectStoreId((*mObjectStoreMetadata)->mCommonMetadata.id()),
11442 mDirection(aDirection),
11443 mMaxExtraCount(IndexedDatabaseManager::MaxPreloadExtraRecords()),
11444 mIsSameProcessActor(!BackgroundParent::IsOtherProcessActor(
11445 mTransaction->GetBackgroundParent())) {
11446 AssertIsOnBackgroundThread();
11447 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11447); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 11447); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11448
11449 static_assert(
11450 OpenCursorParams::T__None == 0 && OpenCursorParams::T__Last == 4,
11451 "Lots of code here assumes only four types of cursors!");
11452}
11453
11454template <IDBCursorType CursorType>
11455bool Cursor<CursorType>::VerifyRequestParams(
11456 const CursorRequestParams& aParams,
11457 const CursorPosition<CursorType>& aPosition) const {
11458 AssertIsOnBackgroundThread();
11459 MOZ_ASSERT(aParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != CursorRequestParams::T__None)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() != CursorRequestParams::T__None))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != CursorRequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11459
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 11459); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11460 MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 11460); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11461 if constexpr (IsIndexCursor) {
11462 MOZ_ASSERT(this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mIndexMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mIndexMetadata))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("this->mIndexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11462
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata"
")"); do { MOZ_CrashSequence(__null, 11462); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11463 }
11464
11465#ifdef DEBUG1
11466 {
11467 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
11468 mTransaction->GetMetadataForObjectStoreId(mObjectStoreId);
11469 if (objectStoreMetadata) {
11470 MOZ_ASSERT(objectStoreMetadata == (*this->mObjectStoreMetadata))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreMetadata == (*this->mObjectStoreMetadata
))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(objectStoreMetadata == (*this->mObjectStoreMetadata
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("objectStoreMetadata == (*this->mObjectStoreMetadata)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata == (*this->mObjectStoreMetadata)"
")"); do { MOZ_CrashSequence(__null, 11470); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11471 } else {
11472 MOZ_ASSERT((*this->mObjectStoreMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype((*this->mObjectStoreMetadata)->mDeleted)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!((*this->mObjectStoreMetadata)->mDeleted))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("(*this->mObjectStoreMetadata)->mDeleted"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11472
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mObjectStoreMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 11472); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11473 }
11474
11475 if constexpr (IsIndexCursor) {
11476 if (objectStoreMetadata) {
11477 const SafeRefPtr<FullIndexMetadata> indexMetadata =
11478 mTransaction->GetMetadataForIndexId(*objectStoreMetadata,
11479 this->mIndexId);
11480 if (indexMetadata) {
11481 MOZ_ASSERT(indexMetadata == *this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(indexMetadata == *this->mIndexMetadata)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(indexMetadata == *this->mIndexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata == *this->mIndexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11481
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata == *this->mIndexMetadata"
")"); do { MOZ_CrashSequence(__null, 11481); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11482 } else {
11483 MOZ_ASSERT((*this->mIndexMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype((*this->mIndexMetadata)->mDeleted)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!((*this->mIndexMetadata)->mDeleted))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("(*this->mIndexMetadata)->mDeleted"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11483
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mIndexMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 11483); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11484 }
11485 }
11486 }
11487 }
11488#endif
11489
11490 if (NS_AUUF_OR_WARN_IF((*this->mObjectStoreMetadata)->mDeleted)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "(*this->mObjectStoreMetadata)->mDeleted"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11490
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "(*this->mObjectStoreMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 11490); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }(((*this->mObjectStoreMetadata)->mDeleted))
) {
11491 return false;
11492 }
11493
11494 if constexpr (IsIndexCursor) {
11495 if (NS_AUUF_OR_WARN_IF(this->mIndexMetadata &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11496
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 11496); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((this->mIndexMetadata && (*this->mIndexMetadata
)->mDeleted))
11496 (*this->mIndexMetadata)->mDeleted)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11496
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 11496); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((this->mIndexMetadata && (*this->mIndexMetadata
)->mDeleted))
) {
11497 return false;
11498 }
11499 }
11500
11501 const Key& sortKey = aPosition.GetSortKey(this->IsLocaleAware());
11502
11503 switch (aParams.type()) {
11504 case CursorRequestParams::TContinueParams: {
11505 const Key& key = aParams.get_ContinueParams().key();
11506 if (!key.IsUnset()) {
11507 switch (mDirection) {
11508 case IDBCursorDirection::Next:
11509 case IDBCursorDirection::Nextunique:
11510 if (NS_AUUF_OR_WARN_IF(key <= sortKey)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key <= sortKey" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11510); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key <= sortKey" ")"); do { MOZ_CrashSequence(__null, 11510
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((key <= sortKey))
) {
11511 return false;
11512 }
11513 break;
11514
11515 case IDBCursorDirection::Prev:
11516 case IDBCursorDirection::Prevunique:
11517 if (NS_AUUF_OR_WARN_IF(key >= sortKey)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key >= sortKey" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11517); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key >= sortKey" ")"); do { MOZ_CrashSequence(__null, 11517
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((key >= sortKey))
) {
11518 return false;
11519 }
11520 break;
11521
11522 default:
11523 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11523
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 11523); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11524 }
11525 }
11526 break;
11527 }
11528
11529 case CursorRequestParams::TContinuePrimaryKeyParams: {
11530 if constexpr (IsIndexCursor) {
11531 const Key& key = aParams.get_ContinuePrimaryKeyParams().key();
11532 const Key& primaryKey =
11533 aParams.get_ContinuePrimaryKeyParams().primaryKey();
11534 MOZ_ASSERT(!key.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!key.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!key.IsUnset()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!key.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11534
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!key.IsUnset()" ")"
); do { MOZ_CrashSequence(__null, 11534); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11535 MOZ_ASSERT(!primaryKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!primaryKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!primaryKey.IsUnset()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!primaryKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11535
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!primaryKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 11535); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11536 switch (mDirection) {
11537 case IDBCursorDirection::Next:
11538 if (NS_AUUF_OR_WARN_IF(key < sortKey ||[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
11539 (key == sortKey &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
11540 primaryKey <= aPosition.mObjectStoreKey))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11540
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
) {
11541 return false;
11542 }
11543 break;
11544
11545 case IDBCursorDirection::Prev:
11546 if (NS_AUUF_OR_WARN_IF(key > sortKey ||[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11548
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11548); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
11547 (key == sortKey &&[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11548
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11548); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
11548 primaryKey >= aPosition.mObjectStoreKey))[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11548
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { MOZ_CrashSequence(__null, 11548); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
) {
11549 return false;
11550 }
11551 break;
11552
11553 default:
11554 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11554
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 11554); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11555 }
11556 }
11557 break;
11558 }
11559
11560 case CursorRequestParams::TAdvanceParams:
11561 if (NS_AUUF_OR_WARN_IF(!aParams.get_AdvanceParams().count())[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "!aParams.get_AdvanceParams().count()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.get_AdvanceParams().count()" ")"); do { MOZ_CrashSequence
(__null, 11561); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); } return aCond; }((!aParams.get_AdvanceParams
().count()))
) {
11562 return false;
11563 }
11564 break;
11565
11566 default:
11567 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11567
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 11567); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11568 }
11569
11570 return true;
11571}
11572
11573template <IDBCursorType CursorType>
11574bool Cursor<CursorType>::Start(const int64_t aRequestId,
11575 const OpenCursorParams& aParams) {
11576 AssertIsOnBackgroundThread();
11577 MOZ_ASSERT(aParams.type() == ToOpenCursorParamsType(CursorType))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == ToOpenCursorParamsType(CursorType)
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == ToOpenCursorParamsType(CursorType)
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == ToOpenCursorParamsType(CursorType)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == ToOpenCursorParamsType(CursorType)"
")"); do { MOZ_CrashSequence(__null, 11577); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11578 MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11578); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 11578); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11579
11580 if (NS_AUUF_OR_WARN_IF(mCurrentlyRunningOp)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "mCurrentlyRunningOp" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11580); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCurrentlyRunningOp" ")"); do { MOZ_CrashSequence(__null, 11580
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((mCurrentlyRunningOp))
) {
11581 return false;
11582 }
11583
11584 const Maybe<SerializedKeyRange>& optionalKeyRange =
11585 GetCommonOpenCursorParams(aParams).optionalKeyRange();
11586
11587 const RefPtr<OpenOp> openOp = new OpenOp(this, aRequestId, optionalKeyRange);
11588
11589 if (NS_WARN_IF(!openOp->Init(*mTransaction))NS_warn_if_impl(!openOp->Init(*mTransaction), "!openOp->Init(*mTransaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11589
)
) {
11590 openOp->Cleanup();
11591 return false;
11592 }
11593
11594 openOp->DispatchToConnectionPool();
11595 mCurrentlyRunningOp = openOp;
11596
11597 return true;
11598}
11599
11600void ValueCursorBase::ProcessFiles(CursorResponse& aResponse,
11601 const FilesArray& aFiles) {
11602 MOZ_ASSERT_IF(do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11608); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11608); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11603 aResponse.type() == CursorResponse::Tnsresult ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11608); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11608); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11604 aResponse.type() == CursorResponse::Tvoid_t ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11608); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11608); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11605 aResponse.type() ==do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11608); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11608); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11606 CursorResponse::TArrayOfObjectStoreKeyCursorResponse ||do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11608); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11608); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11607 aResponse.type() == CursorResponse::TArrayOfIndexKeyCursorResponse,do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11608); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11608); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11608 aFiles.IsEmpty())do { if (aResponse.type() == CursorResponse::Tnsresult || aResponse
.type() == CursorResponse::Tvoid_t || aResponse.type() == CursorResponse
::TArrayOfObjectStoreKeyCursorResponse || aResponse.type() ==
CursorResponse::TArrayOfIndexKeyCursorResponse) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(aFiles.
IsEmpty())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(aFiles.IsEmpty()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aFiles.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11608); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11608); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11609
11610 for (size_t i = 0; i < aFiles.Length(); ++i) {
11611 const auto& files = aFiles[i];
11612 if (!files.IsEmpty()) {
11613 // TODO: Replace this assertion by one that checks if the response type
11614 // matches the cursor type, at a more generic location.
11615 MOZ_ASSERT(aResponse.type() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11618
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { MOZ_CrashSequence(__null, 11618); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11616 CursorResponse::TArrayOfObjectStoreCursorResponse ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11618
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { MOZ_CrashSequence(__null, 11618); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11617 aResponse.type() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11618
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { MOZ_CrashSequence(__null, 11618); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11618 CursorResponse::TArrayOfIndexCursorResponse)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse
|| aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11618
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { MOZ_CrashSequence(__null, 11618); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11619
11620 SerializedStructuredCloneReadInfo* serializedInfo = nullptr;
11621 switch (aResponse.type()) {
11622 case CursorResponse::TArrayOfObjectStoreCursorResponse: {
11623 auto& responses = aResponse.get_ArrayOfObjectStoreCursorResponse();
11624 MOZ_ASSERT(i < responses.Length())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(i < responses.Length())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(i < responses.Length())))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("i < responses.Length()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11624
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()"
")"); do { MOZ_CrashSequence(__null, 11624); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11625 serializedInfo = &responses[i].cloneInfo();
11626 break;
11627 }
11628
11629 case CursorResponse::TArrayOfIndexCursorResponse: {
11630 auto& responses = aResponse.get_ArrayOfIndexCursorResponse();
11631 MOZ_ASSERT(i < responses.Length())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(i < responses.Length())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(i < responses.Length())))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("i < responses.Length()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11631
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()"
")"); do { MOZ_CrashSequence(__null, 11631); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11632 serializedInfo = &responses[i].cloneInfo();
11633 break;
11634 }
11635
11636 default:
11637 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11637
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 11637); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11638 }
11639
11640 MOZ_ASSERT(serializedInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(serializedInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(serializedInfo))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("serializedInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11640
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo" ")"
); do { MOZ_CrashSequence(__null, 11640); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11641 MOZ_ASSERT(serializedInfo->files().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(serializedInfo->files().IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(serializedInfo->files().IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("serializedInfo->files().IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11641); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo->files().IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 11641); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11642 MOZ_ASSERT(this->mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mDatabase))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("this->mDatabase"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11642
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mDatabase"
")"); do { MOZ_CrashSequence(__null, 11642); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11643
11644 QM_TRY_UNWRAP(serializedInfo->files(),auto tryResult983 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult983.isErr
()), 0))) { auto tryTempError = tryResult983.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11649, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult983.unwrap();
11645 SerializeStructuredCloneFiles(this->mDatabase, files,auto tryResult983 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult983.isErr
()), 0))) { auto tryTempError = tryResult983.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11649, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult983.unwrap();
11646 /* aForPreprocess */ false),auto tryResult983 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult983.isErr
()), 0))) { auto tryTempError = tryResult983.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11649, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult983.unwrap();
11647 QM_VOID, [&aResponse](const nsresult result) {auto tryResult983 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult983.isErr
()), 0))) { auto tryTempError = tryResult983.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11649, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult983.unwrap();
11648 aResponse = ClampResultCode(result);auto tryResult983 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult983.isErr
()), 0))) { auto tryTempError = tryResult983.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11649, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult983.unwrap();
11649 })auto tryResult983 = (SerializeStructuredCloneFiles(this->mDatabase
, files, false)); if ((__builtin_expect(!!(tryResult983.isErr
()), 0))) { auto tryTempError = tryResult983.unwrapErr(); mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11649, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = ClampResultCode(result
); }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return ; } serializedInfo->files
() = tryResult983.unwrap();
;
11650 }
11651 }
11652}
11653
11654template <IDBCursorType CursorType>
11655void Cursor<CursorType>::SendResponseInternal(
11656 CursorResponse& aResponse, const FilesArrayT<CursorType>& aFiles) {
11657 AssertIsOnBackgroundThread();
11658 MOZ_ASSERT(aResponse.type() != CursorResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResponse.type() != CursorResponse::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aResponse.type() != CursorResponse::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aResponse.type() != CursorResponse::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11658
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() != CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 11658); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11659 MOZ_ASSERT_IF(aResponse.type() == CursorResponse::Tnsresult,do { if (aResponse.type() == CursorResponse::Tnsresult) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult
())), 0))))>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aResponse.get_nsresult())), 0)))))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11660
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
")"); do { MOZ_CrashSequence(__null, 11660); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11660 NS_FAILED(aResponse.get_nsresult()))do { if (aResponse.type() == CursorResponse::Tnsresult) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult
())), 0))))>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aResponse.get_nsresult())), 0)))))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11660
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
")"); do { MOZ_CrashSequence(__null, 11660); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11661 MOZ_ASSERT_IF(aResponse.type() == CursorResponse::Tnsresult,do { if (aResponse.type() == CursorResponse::Tnsresult) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11663
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { MOZ_CrashSequence(__null, 11663); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11662 NS_ERROR_GET_MODULE(aResponse.get_nsresult()) ==do { if (aResponse.type() == CursorResponse::Tnsresult) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11663
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { MOZ_CrashSequence(__null, 11663); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11663 NS_ERROR_MODULE_DOM_INDEXEDDB)do { if (aResponse.type() == CursorResponse::Tnsresult) { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11663
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { MOZ_CrashSequence(__null, 11663); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11664 MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 11664); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11665 MOZ_ASSERT(mCurrentlyRunningOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCurrentlyRunningOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCurrentlyRunningOp))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mCurrentlyRunningOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11665
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentlyRunningOp"
")"); do { MOZ_CrashSequence(__null, 11665); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11666
11667 KeyValueBase::ProcessFiles(aResponse, aFiles);
11668
11669 // Work around the deleted function by casting to the base class.
11670 QM_WARNONLY_TRY(OkIf({auto tryResult984 = (OkIf( static_cast<PBackgroundIDBCursorParent
*>(this)->SendResponse(aResponse))); static_assert(std::
is_empty_v<typename decltype(tryResult984)::ok_type>); if
((__builtin_expect(!!(tryResult984.isErr()), 0))) { mozilla::
dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))"
, tryResult984.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11671, mozilla::dom::quota::Severity::Warning); }}
11671 static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))){auto tryResult984 = (OkIf( static_cast<PBackgroundIDBCursorParent
*>(this)->SendResponse(aResponse))); static_assert(std::
is_empty_v<typename decltype(tryResult984)::ok_type>); if
((__builtin_expect(!!(tryResult984.isErr()), 0))) { mozilla::
dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))"
, tryResult984.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11671, mozilla::dom::quota::Severity::Warning); }}
;
11672
11673 mCurrentlyRunningOp = nullptr;
11674}
11675
11676template <IDBCursorType CursorType>
11677void Cursor<CursorType>::ActorDestroy(ActorDestroyReason aWhy) {
11678 AssertIsOnBackgroundThread();
11679
11680 if (mCurrentlyRunningOp) {
11681 mCurrentlyRunningOp->NoteActorDestroyed();
11682 }
11683
11684 if constexpr (IsValueCursor) {
11685 this->mBackgroundParent.destroy();
11686 }
11687 this->mObjectStoreMetadata.destroy();
11688 if constexpr (IsIndexCursor) {
11689 this->mIndexMetadata.destroy();
11690 }
11691}
11692
11693template <IDBCursorType CursorType>
11694mozilla::ipc::IPCResult Cursor<CursorType>::RecvDeleteMe() {
11695 AssertIsOnBackgroundThread();
11696 MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11696); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 11696); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11697
11698 if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11698)
) {
11699 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!"
))
11700 this,mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!"
))
11701 "Attempt to delete a cursor with a non-null mCurrentlyRunningOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!"
))
;
11702 }
11703
11704 QM_WARNONLY_TRY(OkIf(PBackgroundIDBCursorParent::Send__delete__(this))){auto tryResult985 = (OkIf(PBackgroundIDBCursorParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult985)::ok_type>); if ((__builtin_expect(!!(tryResult985
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBCursorParent::Send__delete__(this))"
, tryResult985.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11704, mozilla::dom::quota::Severity::Warning); }}
;
11705
11706 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11707}
11708
11709template <IDBCursorType CursorType>
11710mozilla::ipc::IPCResult Cursor<CursorType>::RecvContinue(
11711 const int64_t& aRequestId, const CursorRequestParams& aParams,
11712 const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) {
11713 AssertIsOnBackgroundThread();
11714 MOZ_ASSERT(aParams.type() != CursorRequestParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() != CursorRequestParams::T__None)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() != CursorRequestParams::T__None))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() != CursorRequestParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11714
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None"
")"); do { MOZ_CrashSequence(__null, 11714); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11715 MOZ_ASSERT(this->mObjectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mObjectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mObjectStoreMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"this->mObjectStoreMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11715); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 11715); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11716 if constexpr (IsIndexCursor) {
11717 MOZ_ASSERT(this->mIndexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(this->mIndexMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(this->mIndexMetadata))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("this->mIndexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11717
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata"
")"); do { MOZ_CrashSequence(__null, 11717); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11718 }
11719
11720 const bool trustParams =
11721#ifdef DEBUG1
11722 // Always verify parameters in DEBUG builds!
11723 false
11724#else
11725 this->mIsSameProcessActor
11726#endif
11727 ;
11728
11729 MOZ_ASSERT(!aCurrentKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aCurrentKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aCurrentKey.IsUnset()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!aCurrentKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11729
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCurrentKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 11729); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11730
11731 QM_TRY_UNWRAP(auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11732 auto position,auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11733 ([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> {auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11734 if constexpr (IsIndexCursor) {auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11735 auto localeAwarePosition = Key{};auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11736 if (this->IsLocaleAware()) {auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11737 QM_TRY_UNWRAP(auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11738 localeAwarePosition,auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11739 aCurrentKey.ToLocaleAwareKey(this->mLocale),auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11740 Err(IPC_FAIL(this, "aCurrentKey.ToLocaleAwareKey failed!")));auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11741 }auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11742 return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition,auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11743 aCurrentObjectStoreKey};auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11744 } else {auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11745 return CursorPosition<CursorType>{aCurrentKey};auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11746 }auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
11747 }()))auto tryResult987 = (([&]() -> Result<CursorPosition
<CursorType>, mozilla::ipc::IPCResult> { if constexpr
(IsIndexCursor) { auto localeAwarePosition = Key{}; if (this
->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey
(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986
.unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11740, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aCurrentKey.ToLocaleAwareKey(this->mLocale)"
, tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull
(this), __func__, ("aCurrentKey.ToLocaleAwareKey failed!"))))
; } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition
<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey
}; } else { return CursorPosition<CursorType>{aCurrentKey
}; } }())); if ((__builtin_expect(!!(tryResult987.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult986 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult986.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11740, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, Err(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, (\"aCurrentKey.ToLocaleAwareKey failed!\")))); } localeAwarePosition = tryResult986.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())"
, tryResult987.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11747, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); } auto position = tryResult987.unwrap();
;
11748
11749 if (!trustParams && !VerifyRequestParams(aParams, position)) {
11750 return IPC_FAIL(this, "VerifyRequestParams failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("VerifyRequestParams failed!"
))
;
11751 }
11752
11753 if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11753)
) {
11754 return IPC_FAIL(this, "Cursor is CurrentlyRunningOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Cursor is CurrentlyRunningOp!"
))
;
11755 }
11756
11757 if (NS_WARN_IF(mTransaction->mCommitOrAbortReceived)NS_warn_if_impl(mTransaction->mCommitOrAbortReceived, "mTransaction->mCommitOrAbortReceived"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11757
)
) {
11758 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11759 }
11760
11761 const RefPtr<ContinueOp> continueOp =
11762 new ContinueOp(this, aRequestId, aParams, std::move(position));
11763 if (NS_WARN_IF(!continueOp->Init(*mTransaction))NS_warn_if_impl(!continueOp->Init(*mTransaction), "!continueOp->Init(*mTransaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11763
)
) {
11764 continueOp->Cleanup();
11765 return IPC_FAIL(this, "ContinueOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ContinueOp initialization failed!"
))
;
11766 }
11767
11768 continueOp->DispatchToConnectionPool();
11769 mCurrentlyRunningOp = continueOp;
11770
11771 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11772}
11773
11774/*******************************************************************************
11775 * DatabaseFileManager
11776 ******************************************************************************/
11777
11778DatabaseFileManager::MutexType DatabaseFileManager::sMutex;
11779
11780DatabaseFileManager::DatabaseFileManager(
11781 PersistenceType aPersistenceType,
11782 const quota::OriginMetadata& aOriginMetadata,
11783 const nsAString& aDatabaseName, const nsCString& aDatabaseID,
11784 const nsAString& aDatabaseFilePath, bool aEnforcingQuota,
11785 bool aIsInPrivateBrowsingMode)
11786 : mPersistenceType(aPersistenceType),
11787 mOriginMetadata(aOriginMetadata),
11788 mDatabaseName(aDatabaseName),
11789 mDatabaseID(aDatabaseID),
11790 mDatabaseFilePath(aDatabaseFilePath),
11791 mCipherKeyManager(
11792 aIsInPrivateBrowsingMode
11793 ? new IndexedDBCipherKeyManager("IndexedDBCipherKeyManager")
11794 : nullptr),
11795 mDatabaseVersion(0),
11796 mEnforcingQuota(aEnforcingQuota),
11797 mIsInPrivateBrowsingMode(aIsInPrivateBrowsingMode) {}
11798
11799uint64_t DatabaseFileManager::DatabaseVersion() const {
11800 AssertIsOnIOThread();
11801
11802 return mDatabaseVersion;
11803}
11804
11805void DatabaseFileManager::UpdateDatabaseVersion(uint64_t aDatabaseVersion) {
11806 AssertIsOnIOThread();
11807
11808 mDatabaseVersion = aDatabaseVersion;
11809}
11810
11811nsresult DatabaseFileManager::Init(nsIFile* aDirectory,
11812 const uint64_t aDatabaseVersion,
11813 mozIStorageConnection& aConnection) {
11814 AssertIsOnIOThread();
11815 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11815); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 11815); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11816
11817 {
11818 QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult988 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect
(!!(tryResult988.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(*aDirectory)", tryResult988.inspectErr(),
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11819,
mozilla::dom::quota::Severity::Error); return tryResult988.propagateErr
(); } const bool& existsAsDirectory = tryResult988.inspect
();
11819 ExistsAsDirectory(*aDirectory))auto tryResult988 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect
(!!(tryResult988.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(*aDirectory)", tryResult988.inspectErr(),
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11819,
mozilla::dom::quota::Severity::Error); return tryResult988.propagateErr
(); } const bool& existsAsDirectory = tryResult988.inspect
();
;
11820
11821 if (!existsAsDirectory) {
11822 QM_TRY(MOZ_TO_RESULT(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult989 = (ToResult(aDirectory->Create(nsIFile::
DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult989)::ok_type>); if ((__builtin_expect(
!!(tryResult989.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryResult989.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11822, mozilla::dom::quota::Severity::Error); return tryResult989
.propagateErr(); }}
;
11823 }
11824
11825 QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult990 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aDirectory)>::GetPath), (aDirectory))); if ((__builtin_expect
(!!(tryResult990.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory))"
, tryResult990.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11826, mozilla::dom::quota::Severity::Error); return tryResult990
.propagateErr(); } auto path = tryResult990.unwrap();
11826 nsString, aDirectory, GetPath))auto tryResult990 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aDirectory)>::GetPath), (aDirectory))); if ((__builtin_expect
(!!(tryResult990.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory))"
, tryResult990.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11826, mozilla::dom::quota::Severity::Error); return tryResult990
.propagateErr(); } auto path = tryResult990.unwrap();
;
11827
11828 mDirectoryPath.init(std::move(path));
11829 }
11830
11831 QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult991 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult991.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)"
, tryResult991.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11832, mozilla::dom::quota::Severity::Error); return tryResult991
.propagateErr(); } const auto& journalDirectory = tryResult991
.inspect();
11832 CloneFileAndAppend(*aDirectory, kJournalDirectoryName))auto tryResult991 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult991.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)"
, tryResult991.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11832, mozilla::dom::quota::Severity::Error); return tryResult991
.propagateErr(); } const auto& journalDirectory = tryResult991
.inspect();
;
11833
11834 // We don't care if it doesn't exist at all, but if it does exist, make sure
11835 // it's a directory.
11836 QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult992 = (ExistsAsDirectory(*journalDirectory)); if
((__builtin_expect(!!(tryResult992.isErr()), 0))) { mozilla::
dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)"
, tryResult992.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11837, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const bool& existsAsDirectory = tryResult992
.inspect();
11837 ExistsAsDirectory(*journalDirectory))auto tryResult992 = (ExistsAsDirectory(*journalDirectory)); if
((__builtin_expect(!!(tryResult992.isErr()), 0))) { mozilla::
dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)"
, tryResult992.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11837, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const bool& existsAsDirectory = tryResult992
.inspect();
;
11838 Unused << existsAsDirectory;
11839
11840 {
11841 QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult993 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory))); if ((
__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))"
, tryResult993.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11842, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } auto path = tryResult993.unwrap();
11842 nsString, journalDirectory, GetPath))auto tryResult993 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory))); if ((
__builtin_expect(!!(tryResult993.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))"
, tryResult993.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11842, mozilla::dom::quota::Severity::Error); return tryResult993
.propagateErr(); } auto path = tryResult993.unwrap();
;
11843
11844 mJournalDirectoryPath.init(std::move(path));
11845 }
11846
11847 mDatabaseVersion = aDatabaseVersion;
11848
11849 QM_TRY_INSPECT(const auto& stmt,auto tryResult994 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11852, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const auto& stmt = tryResult994.inspect
();
11850 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult994 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11852, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const auto& stmt = tryResult994.inspect
();
11851 nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult994 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11852, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const auto& stmt = tryResult994.inspect
();
11852 CreateStatement, "SELECT id, refcount FROM file"_ns))auto tryResult994 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, refcount FROM file"_ns)); if ((
__builtin_expect(!!(tryResult994.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, refcount FROM file\"_ns)"
, tryResult994.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11852, mozilla::dom::quota::Severity::Error); return tryResult994
.propagateErr(); } const auto& stmt = tryResult994.inspect
();
;
11853
11854 QM_TRY({auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11855 CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11856 QM_TRY_INSPECT(const int64_t& id,{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11857 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11858 QM_TRY_INSPECT(const int32_t& dbRefCnt,{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11859 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt32, 1));{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11860
11861 // We put a raw pointer into the hash table, so the memory refcount will{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11862 // be 0, but the dbRefCnt is non-zero, which will keep the{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11863 // DatabaseFileInfo object alive.{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11864 MOZ_ASSERT(dbRefCnt > 0);{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11865 DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt));{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11866 MOZ_ASSERT(ok);{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11867
11868 return Ok{};{auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
11869 })){auto tryResult997 = (CollectWhileHasResult(*stmt, [this](auto
& stmt) -> Result<Ok, nsresult> { auto tryResult995
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if (
(__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); } const int64_t& id = tryResult995.inspect
();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)"
, tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11859, mozilla::dom::quota::Severity::Error); return tryResult996
.propagateErr(); } const int32_t& dbRefCnt = tryResult996
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(dbRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("dbRefCnt > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11864
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")"
); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); DebugOnly ok
= static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(ok)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("ok", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11866); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do
{ MOZ_CrashSequence(__null, 11866); __attribute__((nomerge))
::abort(); } while (false); } } while (false); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult997
)::ok_type>); if ((__builtin_expect(!!(tryResult997.isErr(
)), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult995 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult995.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult995.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11857, mozilla::dom::quota::Severity::Error); return tryResult995.propagateErr(); } const int64_t& id = tryResult995.inspect();; auto tryResult996 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)); if ((__builtin_expect(!!(tryResult996.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32, 1)\", tryResult996.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11859, mozilla::dom::quota::Severity::Error); return tryResult996.propagateErr(); } const int32_t& dbRefCnt = tryResult996.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(dbRefCnt > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(dbRefCnt > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"dbRefCnt > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11864); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11864); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt)); do { static_assert( mozilla::detail::AssertionConditionType<decltype(ok)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(ok))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"ok\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11866); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11866); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })"
, tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11869, mozilla::dom::quota::Severity::Error); return tryResult997
.propagateErr(); }}
;
11870
11871 mInitialized.Flip();
11872
11873 return NS_OK;
11874}
11875
11876nsCOMPtr<nsIFile> DatabaseFileManager::GetDirectory() {
11877 if (!this->AssertValid()) {
11878 return nullptr;
11879 }
11880
11881 return GetFileForPath(*mDirectoryPath);
11882}
11883
11884nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedDirectory() {
11885 auto directory = GetDirectory();
11886 if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11886)
) {
11887 return nullptr;
11888 }
11889
11890 DebugOnly<bool> exists;
11891 MOZ_ASSERT(NS_SUCCEEDED(directory->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory
->Exists(&exists))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(directory->Exists(&exists))), 1)))))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->Exists(&exists))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11891
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->Exists(&exists))), 1)))"
")"); do { MOZ_CrashSequence(__null, 11891); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11892 MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(exists)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11892); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { MOZ_CrashSequence(__null, 11892); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11893
11894 DebugOnly<bool> isDirectory;
11895 MOZ_ASSERT(NS_SUCCEEDED(directory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory
->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(directory->IsDirectory(&isDirectory)))
, 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11895
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 11895); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11896 MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(isDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11896); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 11896); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11897
11898 return directory;
11899}
11900
11901nsCOMPtr<nsIFile> DatabaseFileManager::GetJournalDirectory() {
11902 if (!this->AssertValid()) {
11903 return nullptr;
11904 }
11905
11906 return GetFileForPath(*mJournalDirectoryPath);
11907}
11908
11909nsCOMPtr<nsIFile> DatabaseFileManager::EnsureJournalDirectory() {
11910 // This can happen on the IO or on a transaction thread.
11911 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11911
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 11911); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11912
11913 auto journalDirectory = GetFileForPath(*mJournalDirectoryPath);
11914 QM_TRY(OkIf(journalDirectory), nullptr){auto tryResult998 = (OkIf(journalDirectory)); static_assert(
std::is_empty_v<typename decltype(tryResult998)::ok_type>
); if ((__builtin_expect(!!(tryResult998.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult998.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11914, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, nullptr); }}
;
11915
11916 QM_TRY_INSPECT(const bool& exists,auto tryResult999 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult999.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult999
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, nullptr); } const bool& exists = tryResult999
.inspect();
11917 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists),auto tryResult999 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult999.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult999
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, nullptr); } const bool& exists = tryResult999
.inspect();
11918 nullptr)auto tryResult999 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult999.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult999
.unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11918, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryTempError, nullptr); } const bool& exists = tryResult999
.inspect();
;
11919
11920 if (exists) {
11921 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1000 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1000.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11923, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, nullptr); } const bool& isDirectory = tryResult1000
.inspect();
11922 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory),auto tryResult1000 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1000.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11923, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, nullptr); } const bool& isDirectory = tryResult1000
.inspect();
11923 nullptr)auto tryResult1000 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1000.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult1000.unwrapErr(); mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11923, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryTempError, nullptr); } const bool& isDirectory = tryResult1000
.inspect();
;
11924
11925 QM_TRY(OkIf(isDirectory), nullptr){auto tryResult1001 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1001)::ok_type>);
if ((__builtin_expect(!!(tryResult1001.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1001.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11925
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError
, nullptr); }}
;
11926 } else {
11927 QM_TRY({auto tryResult1002 = (ToResult(journalDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1002)::ok_type>); if ((__builtin_expect
(!!(tryResult1002.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1002.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11929, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, nullptr); }}
11928 MOZ_TO_RESULT(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755)),{auto tryResult1002 = (ToResult(journalDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1002)::ok_type>); if ((__builtin_expect
(!!(tryResult1002.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1002.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11929, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, nullptr); }}
11929 nullptr){auto tryResult1002 = (ToResult(journalDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1002)::ok_type>); if ((__builtin_expect
(!!(tryResult1002.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1002.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11929, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryTempError, nullptr); }}
;
11930 }
11931
11932 return journalDirectory;
11933}
11934
11935// static
11936nsCOMPtr<nsIFile> DatabaseFileManager::GetFileForId(nsIFile* aDirectory,
11937 int64_t aId) {
11938 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11938); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 11938); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11939 MOZ_ASSERT(aId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aId > 0))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId > 0"
")"); do { MOZ_CrashSequence(__null, 11939); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11940
11941 QM_TRY_RETURN(CloneFileAndAppend(*aDirectory, IntToString(aId)), nullptr){auto tryResult1003 = (CloneFileAndAppend(*aDirectory, IntToString
(aId))); if ((__builtin_expect(!!(tryResult1003.isErr()), 0))
) { auto tryTempError __attribute__((__unused__)) = tryResult1003
.unwrapErr(); mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, IntToString(aId))"
, tryResult1003.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11941, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CloneFileAndAppend(*aDirectory, IntToString(aId))"
, tryTempError, nullptr); } return tryResult1003.unwrap();}
;
11942}
11943
11944// static
11945nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedFileForId(nsIFile* aDirectory,
11946 int64_t aId) {
11947 auto file = GetFileForId(aDirectory, aId);
11948 if (NS_WARN_IF(!file)NS_warn_if_impl(!file, "!file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11948)
) {
11949 return nullptr;
11950 }
11951
11952 DebugOnly<bool> exists;
11953 MOZ_ASSERT(NS_SUCCEEDED(file->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->
Exists(&exists))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(file->Exists(&exists))), 1)))))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->Exists(&exists))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11953
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->Exists(&exists))), 1)))"
")"); do { MOZ_CrashSequence(__null, 11953); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11954 MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(exists)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11954); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { MOZ_CrashSequence(__null, 11954); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11955
11956 DebugOnly<bool> isFile;
11957 MOZ_ASSERT(NS_SUCCEEDED(file->IsFile(&isFile)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->
IsFile(&isFile))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(file->IsFile(&isFile))), 1)))))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->IsFile(&isFile))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11957
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->IsFile(&isFile))), 1)))"
")"); do { MOZ_CrashSequence(__null, 11957); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11958 MOZ_ASSERT(isFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(isFile)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(isFile))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11958); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isFile" ")"
); do { MOZ_CrashSequence(__null, 11958); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11959
11960 return file;
11961}
11962
11963// static
11964nsresult DatabaseFileManager::InitDirectory(nsIFile& aDirectory,
11965 nsIFile& aDatabaseFile,
11966 const nsACString& aOrigin,
11967 uint32_t aTelemetryId) {
11968 AssertIsOnIOThread();
11969
11970 {
11971 QM_TRY_INSPECT(const bool& exists,auto tryResult1004 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1004.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)"
, tryResult1004.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11972, mozilla::dom::quota::Severity::Error); return tryResult1004
.propagateErr(); } const bool& exists = tryResult1004.inspect
();
11972 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult1004 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1004.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)"
, tryResult1004.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11972, mozilla::dom::quota::Severity::Error); return tryResult1004
.propagateErr(); } const bool& exists = tryResult1004.inspect
();
;
11973
11974 if (!exists) {
11975 return NS_OK;
11976 }
11977
11978 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1005 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1005.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)"
, tryResult1005.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11979, mozilla::dom::quota::Severity::Error); return tryResult1005
.propagateErr(); } const bool& isDirectory = tryResult1005
.inspect();
11979 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult1005 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1005.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)"
, tryResult1005.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11979, mozilla::dom::quota::Severity::Error); return tryResult1005
.propagateErr(); } const bool& isDirectory = tryResult1005
.inspect();
;
11980 QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1006 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1006)::ok_type>);
if ((__builtin_expect(!!(tryResult1006.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1006.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11980
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError
, NS_ERROR_FAILURE); }}
;
11981 }
11982
11983 QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult1007 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult1007.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)"
, tryResult1007.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11984, mozilla::dom::quota::Severity::Error); return tryResult1007
.propagateErr(); } const auto& journalDirectory = tryResult1007
.inspect();
11984 CloneFileAndAppend(aDirectory, kJournalDirectoryName))auto tryResult1007 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName
)); if ((__builtin_expect(!!(tryResult1007.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)"
, tryResult1007.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11984, mozilla::dom::quota::Severity::Error); return tryResult1007
.propagateErr(); } const auto& journalDirectory = tryResult1007
.inspect();
;
11985
11986 QM_TRY_INSPECT(const bool& exists,auto tryResult1008 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1008.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryResult1008.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11987, mozilla::dom::quota::Severity::Error); return tryResult1008
.propagateErr(); } const bool& exists = tryResult1008.inspect
();
11987 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists))auto tryResult1008 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1008.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists)"
, tryResult1008.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11987, mozilla::dom::quota::Severity::Error); return tryResult1008
.propagateErr(); } const bool& exists = tryResult1008.inspect
();
;
11988
11989 if (exists) {
11990 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1009 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1009.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryResult1009.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11991, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const bool& isDirectory = tryResult1009
.inspect();
11991 MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory))auto tryResult1009 = (::mozilla::ToResultInvokeMember( (journalDirectory
), &::mozilla::detail::DerefedType<decltype(journalDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1009.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory)"
, tryResult1009.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 11991, mozilla::dom::quota::Severity::Error); return tryResult1009
.propagateErr(); } const bool& isDirectory = tryResult1009
.inspect();
;
11992 QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1010 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1010)::ok_type>);
if ((__builtin_expect(!!(tryResult1010.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1010.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11992
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError
, NS_ERROR_FAILURE); }}
;
11993
11994 bool hasJournals = false;
11995
11996 QM_TRY(CollectEachFile({auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
11997 *journalDirectory,{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
11998 [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
11999 QM_TRY_INSPECT({auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
12000 const auto& leafName,{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
12001 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
12002
12003 nsresult rv;{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
12004 leafName.ToInteger64(&rv);{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
12005 if (NS_SUCCEEDED(rv)) {{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
12006 hasJournals = true;{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
12007 } else {{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
12008 UNKNOWN_FILE_WARNING(leafName);{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
12009 }{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
12010
12011 return Ok{};{auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
12012 })){auto tryResult1012 = (CollectEachFile( *journalDirectory, [&
hasJournals](const nsCOMPtr<nsIFile>& file) -> Result
<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect
(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12001, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const auto& leafName = tryResult1011.inspect
();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(
__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals
= true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString
( "Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8
(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12008); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect
(!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1011 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1011.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12001, mozilla::dom::quota::Severity::Error); return tryResult1011.propagateErr(); } const auto& leafName = tryResult1011.inspect();; nsresult rv; leafName.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { hasJournals = true; } else { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12008); } return Ok{}; })"
, tryResult1012.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12012, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
;
12013
12014 if (hasJournals) {
12015 QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1013 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1013.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1013.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12018, mozilla::dom::quota::Severity::Error); return tryResult1013
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1013.unwrap();
12016 CreateStorageConnection(auto tryResult1013 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1013.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1013.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12018, mozilla::dom::quota::Severity::Error); return tryResult1013
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1013.unwrap();
12017 aDatabaseFile, aDirectory, VoidString(), aOrigin,auto tryResult1013 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1013.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1013.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12018, mozilla::dom::quota::Severity::Error); return tryResult1013
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1013.unwrap();
12018 /* aDirectoryLockId */ -1, aTelemetryId, Nothing{}))auto tryResult1013 = (CreateStorageConnection( aDatabaseFile,
aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing
{})); if ((__builtin_expect(!!(tryResult1013.isErr()), 0))) {
mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})"
, tryResult1013.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12018, mozilla::dom::quota::Severity::Error); return tryResult1013
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1013.unwrap();
;
12019
12020 mozStorageTransaction transaction(connection.get(), false);
12021
12022 QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult1014 = (ToResult(transaction.Start())); static_assert
(std::is_empty_v<typename decltype(tryResult1014)::ok_type
>); if ((__builtin_expect(!!(tryResult1014.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(transaction.Start())"
, tryResult1014.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12022, mozilla::dom::quota::Severity::Error); return tryResult1014
.propagateErr(); }}
12023
12024 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL({auto tryResult1015 = (ToResult(connection->ExecuteSimpleSQL
( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert
(std::is_empty_v<typename decltype(tryResult1015)::ok_type
>); if ((__builtin_expect(!!(tryResult1015.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))"
, tryResult1015.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12025, mozilla::dom::quota::Severity::Error); return tryResult1015
.propagateErr(); }}
12025 "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))){auto tryResult1015 = (ToResult(connection->ExecuteSimpleSQL
( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert
(std::is_empty_v<typename decltype(tryResult1015)::ok_type
>); if ((__builtin_expect(!!(tryResult1015.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))"
, tryResult1015.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12025, mozilla::dom::quota::Severity::Error); return tryResult1015
.propagateErr(); }}
;
12026
12027 // The parameter names are not used, parameters are bound by index only
12028 // locally in the same function.
12029 QM_TRY_INSPECT(auto tryResult1016 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(*connection)>::CreateStatement
), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns
)); if ((__builtin_expect(!!(tryResult1016.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)"
, tryResult1016.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12033, mozilla::dom::quota::Severity::Error); return tryResult1016
.propagateErr(); } const auto& stmt = tryResult1016.inspect
();
12030 const auto& stmt,auto tryResult1016 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(*connection)>::CreateStatement
), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns
)); if ((__builtin_expect(!!(tryResult1016.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)"
, tryResult1016.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12033, mozilla::dom::quota::Severity::Error); return tryResult1016
.propagateErr(); } const auto& stmt = tryResult1016.inspect
();
12031 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1016 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(*connection)>::CreateStatement
), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns
)); if ((__builtin_expect(!!(tryResult1016.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)"
, tryResult1016.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12033, mozilla::dom::quota::Severity::Error); return tryResult1016
.propagateErr(); } const auto& stmt = tryResult1016.inspect
();
12032 nsCOMPtr<mozIStorageStatement>, *connection, CreateStatement,auto tryResult1016 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(*connection)>::CreateStatement
), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns
)); if ((__builtin_expect(!!(tryResult1016.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)"
, tryResult1016.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12033, mozilla::dom::quota::Severity::Error); return tryResult1016
.propagateErr(); } const auto& stmt = tryResult1016.inspect
();
12033 "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns))auto tryResult1016 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(*connection)>::CreateStatement
), (*connection), "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns
)); if ((__builtin_expect(!!(tryResult1016.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*connection)>::CreateStatement), (*connection), \"SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path\"_ns)"
, tryResult1016.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12033, mozilla::dom::quota::Severity::Error); return tryResult1016
.propagateErr(); } const auto& stmt = tryResult1016.inspect
();
;
12034
12035 QM_TRY_INSPECT(const auto& path,auto tryResult1017 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory))); if ((
__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))"
, tryResult1017.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12037, mozilla::dom::quota::Severity::Error); return tryResult1017
.propagateErr(); } const auto& path = tryResult1017.inspect
();
12036 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1017 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory))); if ((
__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))"
, tryResult1017.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12037, mozilla::dom::quota::Severity::Error); return tryResult1017
.propagateErr(); } const auto& path = tryResult1017.inspect
();
12037 nsString, journalDirectory, GetPath))auto tryResult1017 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(journalDirectory)>::GetPath), (journalDirectory))); if ((
__builtin_expect(!!(tryResult1017.isErr()), 0))) { mozilla::dom
::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory))"
, tryResult1017.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12037, mozilla::dom::quota::Severity::Error); return tryResult1017
.propagateErr(); } const auto& path = tryResult1017.inspect
();
;
12038
12039 QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, path))){auto tryResult1018 = (ToResult(stmt->BindStringByIndex(0,
path))); static_assert(std::is_empty_v<typename decltype(
tryResult1018)::ok_type>); if ((__builtin_expect(!!(tryResult1018
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, path))"
, tryResult1018.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12039, mozilla::dom::quota::Severity::Error); return tryResult1018
.propagateErr(); }}
;
12040
12041 QM_TRY(CollectWhileHasResult({auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12042 *stmt,{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12043 [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12044 nsString name;{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12045 QM_TRY(MOZ_TO_RESULT(stmt.GetString(0, name)));{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12046
12047 nsresult rv;{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12048 name.ToInteger64(&rv);{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12049 if (NS_FAILED(rv)) {{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12050 return Ok{};{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12051 }{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12052
12053 int32_t flag = stmt.AsInt32(1);{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12054
12055 if (!flag) {{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12056 QM_TRY_INSPECT(const auto& file,{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12057 CloneFileAndAppend(aDirectory, name));{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12058
12059 if (NS_FAILED(file->Remove(false))) {{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12060 NS_WARNING("Failed to remove orphaned file!");{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12061 }{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12062 }{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12063
12064 QM_TRY_INSPECT(const auto& journalFile,{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12065 CloneFileAndAppend(*journalDirectory, name));{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12066
12067 if (NS_FAILED(journalFile->Remove(false))) {{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12068 NS_WARNING("Failed to remove journal file!");{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12069 }{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12070
12071 return Ok{};{auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
12072 })){auto tryResult1022 = (CollectWhileHasResult( *stmt, [&aDirectory
, &journalDirectory](auto& stmt) -> Result<Ok, nsresult
> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString
(0, name))); static_assert(std::is_empty_v<typename decltype
(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))"
, tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12045, mozilla::dom::quota::Severity::Error); return tryResult1019
.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if
(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return
Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020
= (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect
(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aDirectory, name)", tryResult1020.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12057
, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); } const auto& file = tryResult1020.inspect
();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->
Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to remove orphaned file!"
, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory
, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0)
)) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)"
, tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12065, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); } const auto& journalFile = tryResult1021
.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile
->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING,
"Failed to remove journal file!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12068); } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1022)::ok_type>); if ((__builtin_expect
(!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1019 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1019)::ok_type>); if ((__builtin_expect(!!(tryResult1019.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1019.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12045, mozilla::dom::quota::Severity::Error); return tryResult1019.propagateErr(); }}; nsresult rv; name.ToInteger64(&rv); if (((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { return Ok{}; } int32_t flag = stmt.AsInt32(1); if (!flag) { auto tryResult1020 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1020.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12057, mozilla::dom::quota::Severity::Error); return tryResult1020.propagateErr(); } const auto& file = tryResult1020.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(file->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove orphaned file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12060); } } auto tryResult1021 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1021.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12065, mozilla::dom::quota::Severity::Error); return tryResult1021.propagateErr(); } const auto& journalFile = tryResult1021.inspect();; if (((bool)(__builtin_expect(!!(NS_FAILED_impl(journalFile->Remove(false))), 0)))) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to remove journal file!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12068); } return Ok{}; })"
, tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12072, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
;
12073
12074 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("DROP TABLE fs;"_ns))){auto tryResult1023 = (ToResult(connection->ExecuteSimpleSQL
("DROP TABLE fs;"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult1023)::ok_type>); if ((__builtin_expect
(!!(tryResult1023.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"DROP TABLE fs;\"_ns))"
, tryResult1023.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12074, mozilla::dom::quota::Severity::Error); return tryResult1023
.propagateErr(); }}
;
12075 QM_TRY(MOZ_TO_RESULT(transaction.Commit())){auto tryResult1024 = (ToResult(transaction.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1024)::ok_type
>); if ((__builtin_expect(!!(tryResult1024.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(transaction.Commit())"
, tryResult1024.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12075, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
;
12076 }
12077 }
12078
12079 return NS_OK;
12080}
12081
12082// static
12083Result<FileUsageType, nsresult> DatabaseFileManager::GetUsage(
12084 nsIFile* aDirectory) {
12085 AssertIsOnIOThread();
12086 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12086); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 12086); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12087
12088 FileUsageType usage;
12089
12090 QM_TRY(TraverseFiles({auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12091 *aDirectory,{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12092 // KnownDirEntryOp{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12093 [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12094 if (isDirectory) {{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12095 return Ok{};{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12096 }{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12097
12098 // Usually we only use QM_OR_ELSE_LOG_VERBOSE(_IF) with Remove and{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12099 // NS_ERROR_FILE_NOT_FOUND check, but the file was found by a directory{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12100 // traversal and ToInteger on the name succeeded, so it should be our{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12101 // file and if the file disappears, the use of QM_OR_ELSE_WARN_IF is ok{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12102 // here.{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12103 QM_TRY_INSPECT(const auto& thisUsage,{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12104 QM_OR_ELSE_WARN_IF({auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12105 // Expression.{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12106 MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize){auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12107 .map([](const int64_t fileSize) {{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12108 return FileUsageType(Some(uint64_t(fileSize)));{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12109 }),{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12110 // Predicate.{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12111 ([](const nsresult rv) {{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12112 return rv == NS_ERROR_FILE_NOT_FOUND;{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12113 }),{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12114 // Fallback. If the file does no longer exist, treat{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12115 // it as 0-sized.{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12116 ErrToDefaultOk<FileUsageType>));{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12117
12118 usage += thisUsage;{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12119
12120 return Ok{};{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12121 },{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12122 // UnknownDirEntryOp{auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
12123 [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })){auto tryResult1026 = (TraverseFiles( *aDirectory, [&usage
](nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025
= (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember
( (file), &::mozilla::detail::DerefedType<decltype(file
)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType
(Some(uint64_t(fileSize))); })), [&](const auto& firstRes
) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND
; })(firstRes); mozilla::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)"
, tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12116, mozilla::dom::quota::Severity::Error); return tryResult1025
.propagateErr(); } const auto& thisUsage = tryResult1025.
inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&
, const bool) -> Result<Ok, nsresult> { return Ok{};
})); static_assert(std::is_empty_v<typename decltype(tryResult1026
)::ok_type>); if ((__builtin_expect(!!(tryResult1026.isErr
()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1025 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla::dom::quota::HandleError(\"mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\\\"\\\\\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12116, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1025.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12116, mozilla::dom::quota::Severity::Error); return tryResult1025.propagateErr(); } const auto& thisUsage = tryResult1025.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })"
, tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12123, mozilla::dom::quota::Severity::Error); return tryResult1026
.propagateErr(); }}
;
12124
12125 return usage;
12126}
12127
12128nsresult DatabaseFileManager::SyncDeleteFile(const int64_t aId) {
12129 MOZ_ASSERT(!ContainsFileInfo(aId))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!ContainsFileInfo(aId))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!ContainsFileInfo(aId)))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!ContainsFileInfo(aId)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12129
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!ContainsFileInfo(aId)"
")"); do { MOZ_CrashSequence(__null, 12129); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12130
12131 if (!this->AssertValid()) {
12132 return NS_ERROR_UNEXPECTED;
12133 }
12134
12135 const auto directory = GetDirectory();
12136 QM_TRY(OkIf(directory), NS_ERROR_FAILURE){auto tryResult1027 = (OkIf(directory)); static_assert(std::is_empty_v
<typename decltype(tryResult1027)::ok_type>); if ((__builtin_expect
(!!(tryResult1027.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1027.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(directory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12136, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(directory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
12137
12138 const auto journalDirectory = GetJournalDirectory();
12139 QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult1028 = (OkIf(journalDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1028)::ok_type
>); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1028
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(journalDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12139, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
12140
12141 const nsCOMPtr<nsIFile> file = GetFileForId(directory, aId);
12142 QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult1029 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1029)::ok_type>); if ((__builtin_expect
(!!(tryResult1029.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1029.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12142, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
12143
12144 const nsCOMPtr<nsIFile> journalFile = GetFileForId(journalDirectory, aId);
12145 QM_TRY(OkIf(journalFile), NS_ERROR_FAILURE){auto tryResult1030 = (OkIf(journalFile)); static_assert(std::
is_empty_v<typename decltype(tryResult1030)::ok_type>);
if ((__builtin_expect(!!(tryResult1030.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1030.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalFile)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12145
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError
, NS_ERROR_FAILURE); }}
;
12146
12147 return SyncDeleteFile(*file, *journalFile);
12148}
12149
12150nsresult DatabaseFileManager::SyncDeleteFile(nsIFile& aFile,
12151 nsIFile& aJournalFile) const {
12152 QuotaManager* const quotaManager =
12153 EnforcingQuota() ? QuotaManager::Get() : nullptr;
12154 MOZ_ASSERT_IF(EnforcingQuota(), quotaManager)do { if (EnforcingQuota()) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(quotaManager)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12154); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 12154); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
12155
12156 QM_TRY(MOZ_TO_RESULT(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(),{auto tryResult1031 = (ToResult(DeleteFile(aFile, quotaManager
, Type(), OriginMetadata(), Idempotency::No))); static_assert
(std::is_empty_v<typename decltype(tryResult1031)::ok_type
>); if ((__builtin_expect(!!(tryResult1031.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))"
, tryResult1031.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12157, mozilla::dom::quota::Severity::Error); return tryResult1031
.propagateErr(); }}
12157 Idempotency::No))){auto tryResult1031 = (ToResult(DeleteFile(aFile, quotaManager
, Type(), OriginMetadata(), Idempotency::No))); static_assert
(std::is_empty_v<typename decltype(tryResult1031)::ok_type
>); if ((__builtin_expect(!!(tryResult1031.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))"
, tryResult1031.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12157, mozilla::dom::quota::Severity::Error); return tryResult1031
.propagateErr(); }}
;
12158
12159 QM_TRY(MOZ_TO_RESULT(aJournalFile.Remove(false))){auto tryResult1032 = (ToResult(aJournalFile.Remove(false)));
static_assert(std::is_empty_v<typename decltype(tryResult1032
)::ok_type>); if ((__builtin_expect(!!(tryResult1032.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(aJournalFile.Remove(false))"
, tryResult1032.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12159, mozilla::dom::quota::Severity::Error); return tryResult1032
.propagateErr(); }}
;
12160
12161 return NS_OK;
12162}
12163
12164nsresult DatabaseFileManager::Invalidate() {
12165 if (mCipherKeyManager) {
12166 mCipherKeyManager->Invalidate();
12167 }
12168
12169 QM_TRY(MOZ_TO_RESULT(FileInfoManager::Invalidate())){auto tryResult1033 = (ToResult(FileInfoManager::Invalidate()
)); static_assert(std::is_empty_v<typename decltype(tryResult1033
)::ok_type>); if ((__builtin_expect(!!(tryResult1033.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(FileInfoManager::Invalidate())"
, tryResult1033.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12169, mozilla::dom::quota::Severity::Error); return tryResult1033
.propagateErr(); }}
;
12170
12171 return NS_OK;
12172}
12173
12174/*******************************************************************************
12175 * QuotaClient
12176 ******************************************************************************/
12177
12178QuotaClient* QuotaClient::sInstance = nullptr;
12179
12180QuotaClient::QuotaClient() : mDeleteTimer(NS_NewTimer()) {
12181 AssertIsOnBackgroundThread();
12182 MOZ_ASSERT(!sInstance, "We expect this to be a singleton!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!sInstance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!sInstance))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!sInstance" " (" "We expect this to be a singleton!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12182
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!sInstance" ") ("
"We expect this to be a singleton!" ")"); do { MOZ_CrashSequence
(__null, 12182); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false)
;
12183 MOZ_ASSERT(!gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gTelemetryIdMutex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!gTelemetryIdMutex))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!gTelemetryIdMutex"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12183
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gTelemetryIdMutex"
")"); do { MOZ_CrashSequence(__null, 12183); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12184
12185 // Always create this so that later access to gTelemetryIdHashtable can be
12186 // properly synchronized.
12187 gTelemetryIdMutex = new Mutex("IndexedDB gTelemetryIdMutex");
12188
12189 gStorageDatabaseNameMutex = new Mutex("IndexedDB gStorageDatabaseNameMutex");
12190
12191 sInstance = this;
12192}
12193
12194QuotaClient::~QuotaClient() {
12195 AssertIsOnBackgroundThread();
12196 MOZ_ASSERT(sInstance == this, "We expect this to be a singleton!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(sInstance == this)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(sInstance == this))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("sInstance == this"
" (" "We expect this to be a singleton!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "sInstance == this"
") (" "We expect this to be a singleton!" ")"); do { MOZ_CrashSequence
(__null, 12196); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false)
;
12197 MOZ_ASSERT(gTelemetryIdMutex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gTelemetryIdMutex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gTelemetryIdMutex))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("gTelemetryIdMutex"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12197
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex"
")"); do { MOZ_CrashSequence(__null, 12197); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12198 MOZ_ASSERT(!mMaintenanceThreadPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mMaintenanceThreadPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mMaintenanceThreadPool))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mMaintenanceThreadPool"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12198
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaintenanceThreadPool"
")"); do { MOZ_CrashSequence(__null, 12198); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12199
12200 // No one else should be able to touch gTelemetryIdHashtable now that the
12201 // QuotaClient has gone away.
12202 gTelemetryIdHashtable = nullptr;
12203 gTelemetryIdMutex = nullptr;
12204
12205 gStorageDatabaseNameHashtable = nullptr;
12206 gStorageDatabaseNameMutex = nullptr;
12207
12208 sInstance = nullptr;
12209}
12210
12211nsresult QuotaClient::AsyncDeleteFile(DatabaseFileManager* aFileManager,
12212 int64_t aFileId) {
12213 AssertIsOnBackgroundThread();
12214
12215 if (IsShuttingDownOnBackgroundThread()) {
12216 // Whoops! We want to delete an IndexedDB disk-backed File but it's too late
12217 // to actually delete the file! This means we're going to "leak" the file
12218 // and leave it around when we shouldn't! (The file will stay around until
12219 // next storage initialization is triggered when the app is started again).
12220 // Fixing this is tracked by bug 1539377.
12221
12222 return NS_OK;
12223 }
12224
12225 MOZ_ASSERT(mDeleteTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDeleteTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDeleteTimer))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mDeleteTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12225); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteTimer"
")"); do { MOZ_CrashSequence(__null, 12225); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12226 MOZ_ALWAYS_SUCCEEDS(mDeleteTimer->Cancel())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mDeleteTimer->Cancel())), 1)))), 1))) { } else { do { do {
} while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mDeleteTimer->Cancel())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12226
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDeleteTimer->Cancel())"
")"); do { MOZ_CrashSequence(__null, 12226); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12227
12228 QM_TRY(MOZ_TO_RESULT(mDeleteTimer->InitWithNamedFuncCallback({auto tryResult1034 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback
( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT
, "dom::indexeddb::QuotaClient::AsyncDeleteFile"))); static_assert
(std::is_empty_v<typename decltype(tryResult1034)::ok_type
>); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"))"
, tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1034
.propagateErr(); }}
12229 DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT,{auto tryResult1034 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback
( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT
, "dom::indexeddb::QuotaClient::AsyncDeleteFile"))); static_assert
(std::is_empty_v<typename decltype(tryResult1034)::ok_type
>); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"))"
, tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1034
.propagateErr(); }}
12230 "dom::indexeddb::QuotaClient::AsyncDeleteFile"))){auto tryResult1034 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback
( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT
, "dom::indexeddb::QuotaClient::AsyncDeleteFile"))); static_assert
(std::is_empty_v<typename decltype(tryResult1034)::ok_type
>); if ((__builtin_expect(!!(tryResult1034.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"))"
, tryResult1034.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12230, mozilla::dom::quota::Severity::Error); return tryResult1034
.propagateErr(); }}
;
12231
12232 mPendingDeleteInfos.GetOrInsertNew(aFileManager)->AppendElement(aFileId);
12233
12234 return NS_OK;
12235}
12236
12237nsresult QuotaClient::FlushPendingFileDeletions() {
12238 AssertIsOnBackgroundThread();
12239
12240 QM_TRY(MOZ_TO_RESULT(mDeleteTimer->Cancel())){auto tryResult1035 = (ToResult(mDeleteTimer->Cancel())); static_assert
(std::is_empty_v<typename decltype(tryResult1035)::ok_type
>); if ((__builtin_expect(!!(tryResult1035.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->Cancel())"
, tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12240, mozilla::dom::quota::Severity::Error); return tryResult1035
.propagateErr(); }}
;
12241
12242 DeleteTimerCallback(mDeleteTimer, this);
12243
12244 return NS_OK;
12245}
12246
12247RefPtr<BoolPromise> QuotaClient::DoMaintenance() {
12248 AssertIsOnBackgroundThread();
12249 MOZ_ASSERT(!IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsShuttingDownOnBackgroundThread
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12249); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 12249); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12250
12251 if (!mBackgroundThread) {
12252 mBackgroundThread = GetCurrentSerialEventTarget();
12253 }
12254
12255 auto maintenance = MakeRefPtr<Maintenance>(this);
12256
12257 mMaintenanceQueue.AppendElement(maintenance);
12258 ProcessMaintenanceQueue();
12259
12260 return maintenance->OnResults();
12261}
12262
12263nsThreadPool* QuotaClient::GetOrCreateThreadPool() {
12264 AssertIsOnBackgroundThread();
12265 MOZ_ASSERT(!IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsShuttingDownOnBackgroundThread
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12265); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 12265); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12266
12267 if (!mMaintenanceThreadPool) {
12268 RefPtr<nsThreadPool> threadPool = new nsThreadPool();
12269
12270 // PR_GetNumberOfProcessors() can return -1 on error, so make sure we
12271 // don't set some huge number here. We add 2 in case some threads block on
12272 // the disk I/O.
12273 const uint32_t threadCount =
12274 std::max(int32_t(PR_GetNumberOfProcessors()), int32_t(1)) + 2;
12275
12276 MOZ_ALWAYS_SUCCEEDS(threadPool->SetThreadLimit(threadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetThreadLimit(threadCount))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12276
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))"
")"); do { MOZ_CrashSequence(__null, 12276); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12277
12278 // Don't keep more than one idle thread.
12279 MOZ_ALWAYS_SUCCEEDS(threadPool->SetIdleThreadLimit(1))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadLimit(1))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12279
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))"
")"); do { MOZ_CrashSequence(__null, 12279); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12280
12281 // Don't keep idle threads alive very long.
12282 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))), 1))
)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12283
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
")"); do { MOZ_CrashSequence(__null, 12283); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
12283 threadPool->SetIdleThreadMaximumTimeout(5 * PR_MSEC_PER_SEC))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))), 1))
)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12283
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
")"); do { MOZ_CrashSequence(__null, 12283); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12284
12285 MOZ_ALWAYS_SUCCEEDS(threadPool->SetName("IndexedDB Mnt"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetName("IndexedDB Mnt"_ns))), 1)))), 1))) { }
else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12285
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))"
")"); do { MOZ_CrashSequence(__null, 12285); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
12286
12287 mMaintenanceThreadPool = std::move(threadPool);
12288 }
12289
12290 return mMaintenanceThreadPool;
12291}
12292
12293mozilla::dom::quota::Client::Type QuotaClient::GetType() {
12294 return QuotaClient::IDB;
12295}
12296
12297nsresult QuotaClient::UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) {
12298 AssertIsOnIOThread();
12299 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12299); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 12299); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12300
12301 QM_TRY_INSPECT(const auto& databaseFilenamesInfo,auto tryResult1036 = (GetDatabaseFilenames(*aDirectory, AtomicBool
{false})); if ((__builtin_expect(!!(tryResult1036.isErr()), 0
))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})"
, tryResult1036.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12303, mozilla::dom::quota::Severity::Error); return tryResult1036
.propagateErr(); } const auto& databaseFilenamesInfo = tryResult1036
.inspect();
12302 GetDatabaseFilenames(*aDirectory,auto tryResult1036 = (GetDatabaseFilenames(*aDirectory, AtomicBool
{false})); if ((__builtin_expect(!!(tryResult1036.isErr()), 0
))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})"
, tryResult1036.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12303, mozilla::dom::quota::Severity::Error); return tryResult1036
.propagateErr(); } const auto& databaseFilenamesInfo = tryResult1036
.inspect();
12303 /* aCanceled */ AtomicBool{false}))auto tryResult1036 = (GetDatabaseFilenames(*aDirectory, AtomicBool
{false})); if ((__builtin_expect(!!(tryResult1036.isErr()), 0
))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})"
, tryResult1036.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12303, mozilla::dom::quota::Severity::Error); return tryResult1036
.propagateErr(); } const auto& databaseFilenamesInfo = tryResult1036
.inspect();
;
12304 // FIXME: use structural binding once we support c++20.
12305 const auto& subdirsToProcess = databaseFilenamesInfo.subdirsToProcess;
12306 const auto& databaseFilenames = databaseFilenamesInfo.databaseFilenames;
12307
12308 QM_TRY(CollectEachInRange({auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12309 subdirsToProcess,{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12310 [&databaseFilenames = databaseFilenames,{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12311 aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12312 // If the directory has the correct suffix then it should exist in{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12313 // databaseFilenames.{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12314 nsDependentSubstring subdirNameBase;{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12315 if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12316 subdirNameBase)) {{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12317 QM_WARNONLY_TRY(OkIf(databaseFilenames.Contains(subdirNameBase)));{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12318 return Ok{};{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12319 }{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12320
12321 // The directory didn't have the right suffix but we might need to{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12322 // rename it. Check to see if we have a database that references this{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12323 // directory.{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12324 QM_TRY_INSPECT({auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12325 const auto& subdirNameWithSuffix,{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12326 ([&databaseFilenames,{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12327 &subdirName]() -> Result<nsAutoString, NotOk> {{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12328 if (databaseFilenames.Contains(subdirName)) {{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12329 return nsAutoString{subdirName +{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12330 kFileManagerDirectoryNameSuffix};{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12331 }{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12332
12333 // Windows doesn't allow a directory to end with a dot ('.'), so{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12334 // we have to check that possibility here too. We do this on all{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12335 // platforms, because the origin directory may have been created{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12336 // on Windows and now accessed on different OS.{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12337 const nsAutoString subdirNameWithDot = subdirName + u"."_ns;{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12338 QM_TRY(OkIf(databaseFilenames.Contains(subdirNameWithDot)),{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12339 Err(NotOk{}));{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12340
12341 return nsAutoString{subdirNameWithDot +{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12342 kFileManagerDirectoryNameSuffix};{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12343 }()),{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12344 Ok{});{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12345
12346 // We do have a database that uses this subdir so we should rename it{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12347 // now.{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12348 QM_TRY_INSPECT(const auto& subdir,{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12349 CloneFileAndAppend(*aDirectory, subdirName));{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12350
12351 DebugOnly<bool> isDirectory;{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12352 MOZ_ASSERT(NS_SUCCEEDED(subdir->IsDirectory(&isDirectory)));{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12353 MOZ_ASSERT(isDirectory);{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12354
12355 // Check if the subdir with suffix already exists before renaming.{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12356 QM_TRY_INSPECT(const auto& subdirWithSuffix,{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12357 CloneFileAndAppend(*aDirectory, subdirNameWithSuffix));{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12358
12359 QM_TRY_INSPECT(const bool& exists,{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12360 MOZ_TO_RESULT_INVOKE_MEMBER(subdirWithSuffix, Exists));{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12361
12362 if (exists) {{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12363 IDB_WARNING("Deleting old %s files directory!",{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12364 NS_ConvertUTF16toUTF8(subdirName).get());{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12365
12366 QM_TRY(MOZ_TO_RESULT(subdir->Remove(/* aRecursive */ true)));{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12367
12368 return Ok{};{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12369 }{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12370
12371 // Finally, rename the subdir.{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12372 QM_TRY(MOZ_TO_RESULT(subdir->RenameTo(nullptr, subdirNameWithSuffix)));{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12373
12374 return Ok{};{auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
12375 })){auto tryResult1045 = (CollectEachInRange( subdirsToProcess, [
&databaseFilenames = databaseFilenames, aDirectory](const
nsAString& subdirName) -> Result<Ok, nsresult> {
nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName
, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037
= (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert
(std::is_empty_v<typename decltype(tryResult1037)::ok_type
>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) {
mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))"
, tryResult1037.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName
]() -> Result<nsAutoString, NotOk> { if (databaseFilenames
.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix
}; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns
; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot
))); static_assert(std::is_empty_v<typename decltype(tryResult1038
)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12339, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(databaseFilenames.Contains(subdirNameWithDot))"
, tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot
+ kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect
(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota
::HandleError("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12344, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())"
, tryTempError, Ok{}); } const auto& subdirNameWithSuffix
= tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend
(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)"
, tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12349, mozilla::dom::quota::Severity::Error); return tryResult1040
.propagateErr(); } const auto& subdir = tryResult1040.inspect
();; DebugOnly<bool> isDirectory; do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))
), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->
IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 12352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(isDirectory)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 12353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix
)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)"
, tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12357, mozilla::dom::quota::Severity::Error); return tryResult1041
.propagateErr(); } const auto& subdirWithSuffix = tryResult1041
.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember
( (subdirWithSuffix), &::mozilla::detail::DerefedType<
decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect
(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)"
, tryResult1042.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12360, mozilla::dom::quota::Severity::Error); return tryResult1042
.propagateErr(); } const bool& exists = tryResult1042.inspect
();; if (exists) { do { nsPrintfCString s("Deleting old %s files directory!"
, NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12364
); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove
( true))); static_assert(std::is_empty_v<typename decltype
(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))"
, tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12366, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult
(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert
(std::is_empty_v<typename decltype(tryResult1044)::ok_type
>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))"
, tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12372, mozilla::dom::quota::Severity::Error); return tryResult1044
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1045)::ok_type>); if ((__builtin_expect
(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( subdirsToProcess, [&databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1037 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1037)::ok_type>); if ((__builtin_expect(!!(tryResult1037.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1037.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12317, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1039 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1039.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12344, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1038 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1038.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12339, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, Err(NotOk{})); }}; return nsAutoString{subdirNameWithDot + kFileManagerDirectoryNameSuffix}; }())\", tryTempError, Ok{}); } const auto& subdirNameWithSuffix = tryResult1039.inspect();; auto tryResult1040 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1040.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1040.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12349, mozilla::dom::quota::Severity::Error); return tryResult1040.propagateErr(); } const auto& subdir = tryResult1040.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12352); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12352); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(isDirectory)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"isDirectory\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12353); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12353); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1041 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1041.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1041.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12357, mozilla::dom::quota::Severity::Error); return tryResult1041.propagateErr(); } const auto& subdirWithSuffix = tryResult1041.inspect();; auto tryResult1042 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists)\", tryResult1042.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12360, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); } const bool& exists = tryResult1042.inspect();; if (exists) { do { nsPrintfCString s(\"Deleting old %s files directory!\", NS_ConvertUTF16toUTF8(subdirName).get()); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12364); } while (0); {auto tryResult1043 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1043)::ok_type>); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12366, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); }}; return Ok{}; } {auto tryResult1044 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect(!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1044.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12372, mozilla::dom::quota::Severity::Error); return tryResult1044.propagateErr(); }}; return Ok{}; })"
, tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12375, mozilla::dom::quota::Severity::Error); return tryResult1045
.propagateErr(); }}
;
12376
12377 return NS_OK;
12378}
12379
12380nsresult QuotaClient::UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) {
12381 AssertIsOnIOThread();
12382 MOZ_ASSERT(aDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12382); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { MOZ_CrashSequence(__null, 12382); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12383
12384 QM_TRY(CollectEachFile({auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12385 *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12386 QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12387
12388 switch (dirEntryKind) {{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12389 case nsIFileKind::ExistsAsDirectory:{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12390 break;{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12391
12392 case nsIFileKind::ExistsAsFile: {{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12393 QM_TRY_INSPECT({auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12394 const auto& leafName,{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12395 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12396
12397 // It's reported that files ending with ".tmp" somehow live in the{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12398 // indexedDB directories in Bug 1503883. Such files shouldn't exist{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12399 // in the indexedDB directory so remove them in this upgrade.{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12400 if (StringEndsWith(leafName, u".tmp"_ns)) {{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12401 IDB_WARNING("Deleting unknown temporary file!");{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12402
12403 QM_TRY(MOZ_TO_RESULT(file->Remove(false)));{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12404 }{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12405
12406 break;{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12407 }{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12408
12409 case nsIFileKind::DoesNotExist:{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12410 // Ignore files that got removed externally while iterating.{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12411 break;{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12412 }{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12413
12414 return Ok{};{auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
12415 })){auto tryResult1049 = (CollectEachFile( *aDirectory, [](const
nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult
> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12386, mozilla::dom::quota::Severity::Error); return tryResult1046
.propagateErr(); } const auto& dirEntryKind = tryResult1046
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(file)>::
GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); } const auto& leafName = tryResult1047.inspect
();; if (StringEndsWith(leafName, u".tmp"_ns)) { do { nsPrintfCString
s("Deleting unknown temporary file!"); mozilla::dom::indexedDB
::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12401
); } while (0); {auto tryResult1048 = (ToResult(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))"
, tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12403, mozilla::dom::quota::Severity::Error); return tryResult1048
.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist
: break; } return Ok{}; })); static_assert(std::is_empty_v<
typename decltype(tryResult1049)::ok_type>); if ((__builtin_expect
(!!(tryResult1049.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1046 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1046.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12386, mozilla::dom::quota::Severity::Error); return tryResult1046.propagateErr(); } const auto& dirEntryKind = tryResult1046.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1047 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1047.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12395, mozilla::dom::quota::Severity::Error); return tryResult1047.propagateErr(); } const auto& leafName = tryResult1047.inspect();; if (StringEndsWith(leafName, u\".tmp\"_ns)) { do { nsPrintfCString s(\"Deleting unknown temporary file!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12401); } while (0); {auto tryResult1048 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1048)::ok_type>); if ((__builtin_expect(!!(tryResult1048.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1048.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12403, mozilla::dom::quota::Severity::Error); return tryResult1048.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12415, mozilla::dom::quota::Severity::Error); return tryResult1049
.propagateErr(); }}
;
12416
12417 return NS_OK;
12418}
12419
12420Result<UsageInfo, nsresult> QuotaClient::InitOrigin(
12421 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12422 const AtomicBool& aCanceled) {
12423 AssertIsOnIOThread();
12424
12425 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult1050 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, true)); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12428, mozilla::dom::quota::Severity::Error); } return tryResult1050
;}
12426 aPersistenceType, aOriginMetadata,{auto tryResult1050 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, true)); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12428, mozilla::dom::quota::Severity::Error); } return tryResult1050
;}
12427 aCanceled,{auto tryResult1050 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, true)); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12428, mozilla::dom::quota::Severity::Error); } return tryResult1050
;}
12428 /* aInitializing*/ true)){auto tryResult1050 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, true)); if ((__builtin_expect(!!(tryResult1050.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, true)"
, tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12428, mozilla::dom::quota::Severity::Error); } return tryResult1050
;}
;
12429}
12430
12431nsresult QuotaClient::InitOriginWithoutTracking(
12432 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12433 const AtomicBool& aCanceled) {
12434 AssertIsOnIOThread();
12435
12436 return GetUsageForOriginInternal(aPersistenceType, aOriginMetadata, aCanceled,
12437 /* aInitializing*/ true, nullptr);
12438}
12439
12440Result<UsageInfo, nsresult> QuotaClient::GetUsageForOrigin(
12441 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12442 const AtomicBool& aCanceled) {
12443 AssertIsOnIOThread();
12444
12445 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult1051 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, false)); if ((__builtin_expect(!!(tryResult1051.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12448, mozilla::dom::quota::Severity::Error); } return tryResult1051
;}
12446 aPersistenceType, aOriginMetadata,{auto tryResult1051 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, false)); if ((__builtin_expect(!!(tryResult1051.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12448, mozilla::dom::quota::Severity::Error); } return tryResult1051
;}
12447 aCanceled,{auto tryResult1051 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, false)); if ((__builtin_expect(!!(tryResult1051.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12448, mozilla::dom::quota::Severity::Error); } return tryResult1051
;}
12448 /* aInitializing*/ false)){auto tryResult1051 = (::mozilla::ToResultInvokeMember( (this
), &::mozilla::detail::DerefedType<decltype(this)>::
GetUsageForOriginInternal, aPersistenceType, aOriginMetadata,
aCanceled, false)); if ((__builtin_expect(!!(tryResult1051.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal, aPersistenceType, aOriginMetadata, aCanceled, false)"
, tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12448, mozilla::dom::quota::Severity::Error); } return tryResult1051
;}
;
12449}
12450
12451nsresult QuotaClient::GetUsageForOriginInternal(
12452 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12453 const AtomicBool& aCanceled, const bool aInitializing,
12454 UsageInfo* aUsageInfo) {
12455 AssertIsOnIOThread();
12456 MOZ_ASSERT(aOriginMetadata.mPersistenceType == aPersistenceType)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOriginMetadata.mPersistenceType == aPersistenceType
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aOriginMetadata.mPersistenceType == aPersistenceType
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aOriginMetadata.mPersistenceType == aPersistenceType", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12456); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOriginMetadata.mPersistenceType == aPersistenceType"
")"); do { MOZ_CrashSequence(__null, 12456); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12457
12458 QM_TRY_INSPECT(const nsCOMPtr<nsIFile>& directory,auto tryResult1052 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect
(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirectory(aOriginMetadata)", tryResult1052.inspectErr(),
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459,
mozilla::dom::quota::Severity::Error); return tryResult1052.
propagateErr(); } const nsCOMPtr<nsIFile>& directory
= tryResult1052.inspect();
12459 GetDirectory(aOriginMetadata))auto tryResult1052 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect
(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirectory(aOriginMetadata)", tryResult1052.inspectErr(),
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12459,
mozilla::dom::quota::Severity::Error); return tryResult1052.
propagateErr(); } const nsCOMPtr<nsIFile>& directory
= tryResult1052.inspect();
;
12460
12461 // We need to see if there are any files in the directory already. If they
12462 // are database files then we need to cleanup stored files (if it's needed)
12463 // and also get the usage.
12464
12465 // XXX Can we avoid unwrapping into non-const variables here? (Only
12466 // databaseFilenames is currently modified below)
12467 QM_TRY_UNWRAP((auto [subdirsToProcess, databaseFilenames, obsoleteFilenames]),auto tryResult1053 = (GetDatabaseFilenames<ObsoleteFilenamesHandling
::Include>( *directory, aCanceled)); if ((__builtin_expect
(!!(tryResult1053.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)"
, tryResult1053.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12469, mozilla::dom::quota::Severity::Error); return tryResult1053
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1053.unwrap();
12468 GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>(auto tryResult1053 = (GetDatabaseFilenames<ObsoleteFilenamesHandling
::Include>( *directory, aCanceled)); if ((__builtin_expect
(!!(tryResult1053.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)"
, tryResult1053.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12469, mozilla::dom::quota::Severity::Error); return tryResult1053
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1053.unwrap();
12469 *directory, aCanceled))auto tryResult1053 = (GetDatabaseFilenames<ObsoleteFilenamesHandling
::Include>( *directory, aCanceled)); if ((__builtin_expect
(!!(tryResult1053.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)"
, tryResult1053.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12469, mozilla::dom::quota::Severity::Error); return tryResult1053
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1053.unwrap();
;
12470
12471 if (aInitializing) {
12472 QM_TRY(CollectEachInRange({auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12473 subdirsToProcess,{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12474 [&directory, &obsoleteFilenames = obsoleteFilenames,{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12475 &databaseFilenames = databaseFilenames, aPersistenceType,{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12476 &aOriginMetadata]({auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12477 const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12478 // The directory must have the correct suffix.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12479 nsDependentSubstring subdirNameBase;{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12480 QM_TRY(QM_OR_ELSE_WARN({auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12481 // Expression.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12482 ([&subdirName, &subdirNameBase] {{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12483 QM_TRY_RETURN(OkIf(GetFilenameBase({auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12484 subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12485 subdirNameBase)));{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12486 }()),{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12487 // Fallback.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12488 ([&directory,{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12489 &subdirName](const NotOk) -> Result<Ok, nsresult> {{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12490 // If there is an unexpected directory in the idb{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12491 // directory, trying to delete at first instead of{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12492 // breaking the whole initialization.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12493 QM_TRY(MOZ_TO_RESULT({auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12494 DeleteFilesNoQuota(directory, subdirName)),{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12495 Err(NS_ERROR_UNEXPECTED));{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12496
12497 return Ok{};{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12498 })),{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12499 Ok{});{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12500
12501 if (obsoleteFilenames.Contains(subdirNameBase)) {{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12502 // If this fails, it probably means we are in a serious situation.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12503 // e.g. Filesystem corruption. Will handle this in bug 1521541.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12504 QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12505 *directory, subdirNameBase, /* aQuotaManager */ nullptr,{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12506 aPersistenceType, aOriginMetadata,{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12507 /* aDatabaseName */ u""_ns)),{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12508 Err(NS_ERROR_UNEXPECTED));{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12509
12510 databaseFilenames.Remove(subdirNameBase);{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12511 return Ok{};{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12512 }{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12513
12514 // The directory base must exist in databaseFilenames.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12515 // If there is an unexpected directory in the idb directory, trying to{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12516 // delete at first instead of breaking the whole initialization.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12517
12518 // XXX This is still somewhat quirky. It would be nice to make it{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12519 // clear that the warning handler is infallible, which would also{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12520 // remove the need for the error type conversion.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12521 QM_WARNONLY_TRY(QM_OR_ELSE_WARN({auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12522 // Expression.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12523 OkIf(databaseFilenames.Contains(subdirNameBase)){auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12524 .mapErr([](const NotOk) { return NS_ERROR_FAILURE; }),{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12525 // Fallback.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12526 ([&directory,{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12527 &subdirName](const nsresult) -> Result<Ok, nsresult> {{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12528 // XXX It seems if we really got here, we can fail the{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12529 // MOZ_ASSERT(!quotaManager->IsTemporaryStorageInitializedInternal());{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12530 // assertion in DeleteFilesNoQuota.{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12531 QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(directory, subdirName)),{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12532 Err(NS_ERROR_UNEXPECTED));{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12533
12534 return Ok{};{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12535 })));{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12536
12537 return Ok{};{auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
12538 })){auto tryResult1060 = (CollectEachInRange( subdirsToProcess, [
&directory, &obsoleteFilenames = obsoleteFilenames, &
databaseFilenames = databaseFilenames, aPersistenceType, &
aOriginMetadata]( const nsAString& subdirName) -> Result
<Ok, nsresult> { nsDependentSubstring subdirNameBase; {
auto tryResult1056 = ((([&subdirName, &subdirNameBase
] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix
, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr
()), 0))) { mozilla::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))"
, tryResult1054.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12498, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12495
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError
("(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase
)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory
( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata
, u""_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12508, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames
.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 =
((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([
](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](
const auto& firstRes) { mozilla::dom::quota::HandleError(
"\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const nsresult) -> Result<Ok
, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota
(directory, subdirName))); static_assert(std::is_empty_v<typename
decltype(tryResult1058)::ok_type>); if ((__builtin_expect
(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12532, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))"
, tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; }
)(firstRes); })); static_assert(std::is_empty_v<typename decltype
(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059
.isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })"
, tryResult1059.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060
)::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1056 = ((([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1054.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1054.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect(!!(tryResult1056.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1056.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1054.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1054 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1054.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12485, mozilla::dom::quota::Severity::Error); } return tryResult1054;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12498, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1055 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1055)::ok_type>); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1055.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12495, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryTempError, Ok{}); }}; if (obsoleteFilenames.Contains(subdirNameBase)) { {auto tryResult1057 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect(!!(tryResult1057.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1057.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12508, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1059 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1059)::ok_type>); if ((__builtin_expect(!!(tryResult1059.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12535, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1058 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1058)::ok_type>); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1058.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12532, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1059.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12535, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12538, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); }}
;
12539 }
12540
12541 for (const auto& databaseFilename : databaseFilenames) {
12542 if (aCanceled) {
12543 break;
12544 }
12545
12546 QM_TRY_INSPECT(auto tryResult1061 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1061.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1061.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12549, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); } const auto& fmDirectory = tryResult1061
.inspect();
12547 const auto& fmDirectory,auto tryResult1061 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1061.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1061.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12549, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); } const auto& fmDirectory = tryResult1061
.inspect();
12548 CloneFileAndAppend(*directory,auto tryResult1061 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1061.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1061.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12549, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); } const auto& fmDirectory = tryResult1061
.inspect();
12549 databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult1061 = (CloneFileAndAppend(*directory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1061.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1061.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12549, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); } const auto& fmDirectory = tryResult1061
.inspect();
;
12550
12551 QM_TRY_INSPECT(auto tryResult1062 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1062.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)"
, tryResult1062.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12553, mozilla::dom::quota::Severity::Error); return tryResult1062
.propagateErr(); } const auto& databaseFile = tryResult1062
.inspect();
12552 const auto& databaseFile,auto tryResult1062 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1062.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)"
, tryResult1062.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12553, mozilla::dom::quota::Severity::Error); return tryResult1062
.propagateErr(); } const auto& databaseFile = tryResult1062
.inspect();
12553 CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix))auto tryResult1062 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1062.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)"
, tryResult1062.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12553, mozilla::dom::quota::Severity::Error); return tryResult1062
.propagateErr(); } const auto& databaseFile = tryResult1062
.inspect();
;
12554
12555 if (aInitializing) {
12556 QM_TRY(MOZ_TO_RESULT(DatabaseFileManager::InitDirectory({auto tryResult1063 = (ToResult(DatabaseFileManager::InitDirectory
( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile
(databaseFile)))); static_assert(std::is_empty_v<typename decltype
(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))"
, tryResult1063.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12558, mozilla::dom::quota::Severity::Error); return tryResult1063
.propagateErr(); }}
12557 *fmDirectory, *databaseFile, aOriginMetadata.mOrigin,{auto tryResult1063 = (ToResult(DatabaseFileManager::InitDirectory
( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile
(databaseFile)))); static_assert(std::is_empty_v<typename decltype
(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))"
, tryResult1063.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12558, mozilla::dom::quota::Severity::Error); return tryResult1063
.propagateErr(); }}
12558 TelemetryIdForFile(databaseFile)))){auto tryResult1063 = (ToResult(DatabaseFileManager::InitDirectory
( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile
(databaseFile)))); static_assert(std::is_empty_v<typename decltype
(tryResult1063)::ok_type>); if ((__builtin_expect(!!(tryResult1063
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))"
, tryResult1063.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12558, mozilla::dom::quota::Severity::Error); return tryResult1063
.propagateErr(); }}
;
12559 }
12560
12561 if (aUsageInfo) {
12562 {
12563 QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult1064 = (::mozilla::ToResultInvokeMember( (databaseFile
), &::mozilla::detail::DerefedType<decltype(databaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1064.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize)"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12564, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& fileSize = tryResult1064
.inspect();
12564 MOZ_TO_RESULT_INVOKE_MEMBER(databaseFile, GetFileSize))auto tryResult1064 = (::mozilla::ToResultInvokeMember( (databaseFile
), &::mozilla::detail::DerefedType<decltype(databaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1064.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize)"
, tryResult1064.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12564, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& fileSize = tryResult1064
.inspect();
;
12565
12566 MOZ_ASSERT(fileSize >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(fileSize >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize >= 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12566
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize >= 0"
")"); do { MOZ_CrashSequence(__null, 12566); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12567
12568 *aUsageInfo += DatabaseUsageType(Some(uint64_t(fileSize)));
12569 }
12570
12571 {
12572 QM_TRY_INSPECT(const auto& walFile,auto tryResult1065 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1065
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12574, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); } const auto& walFile = tryResult1065.inspect
();
12573 CloneFileAndAppend(*directory,auto tryResult1065 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1065
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12574, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); } const auto& walFile = tryResult1065.inspect
();
12574 databaseFilename + kSQLiteWALSuffix))auto tryResult1065 = (CloneFileAndAppend(*directory, databaseFilename
+ kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1065
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)"
, tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12574, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); } const auto& walFile = tryResult1065.inspect
();
;
12575
12576 // QM_OR_ELSE_WARN_IF is not used here since we just want to log
12577 // NS_ERROR_FILE_NOT_FOUND result and not spam the reports (the -wal
12578 // file doesn't have to exist).
12579 QM_TRY_INSPECT(const int64_t& walFileSize,auto tryResult1066 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize)), [&](const auto&
firstRes) { bool res = ([](const nsresult rv) { return rv ==
NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::
HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1066.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const int64_t& walFileSize = tryResult1066
.inspect();
12580 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult1066 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize)), [&](const auto&
firstRes) { bool res = ([](const nsresult rv) { return rv ==
NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::
HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1066.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const int64_t& walFileSize = tryResult1066
.inspect();
12581 // Expression.auto tryResult1066 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize)), [&](const auto&
firstRes) { bool res = ([](const nsresult rv) { return rv ==
NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::
HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1066.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const int64_t& walFileSize = tryResult1066
.inspect();
12582 MOZ_TO_RESULT_INVOKE_MEMBER(walFile, GetFileSize),auto tryResult1066 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize)), [&](const auto&
firstRes) { bool res = ([](const nsresult rv) { return rv ==
NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::
HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1066.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const int64_t& walFileSize = tryResult1066
.inspect();
12583 // Predicate.auto tryResult1066 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize)), [&](const auto&
firstRes) { bool res = ([](const nsresult rv) { return rv ==
NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::
HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1066.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const int64_t& walFileSize = tryResult1066
.inspect();
12584 ([](const nsresult rv) {auto tryResult1066 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize)), [&](const auto&
firstRes) { bool res = ([](const nsresult rv) { return rv ==
NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::
HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1066.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const int64_t& walFileSize = tryResult1066
.inspect();
12585 return rv == NS_ERROR_FILE_NOT_FOUND;auto tryResult1066 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize)), [&](const auto&
firstRes) { bool res = ([](const nsresult rv) { return rv ==
NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::
HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1066.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const int64_t& walFileSize = tryResult1066
.inspect();
12586 }),auto tryResult1066 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize)), [&](const auto&
firstRes) { bool res = ([](const nsresult rv) { return rv ==
NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::
HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1066.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const int64_t& walFileSize = tryResult1066
.inspect();
12587 // Fallback.auto tryResult1066 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize)), [&](const auto&
firstRes) { bool res = ([](const nsresult rv) { return rv ==
NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::
HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1066.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const int64_t& walFileSize = tryResult1066
.inspect();
12588 (ErrToOk<0, int64_t>)))auto tryResult1066 = (mozilla::dom::quota::OrElseIf( (::mozilla
::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType
<decltype(walFile)>::GetFileSize)), [&](const auto&
firstRes) { bool res = ([](const nsresult rv) { return rv ==
NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::
HandleError("\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, (ErrToOk<0,
int64_t>))); if ((__builtin_expect(!!(tryResult1066.isErr
()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (walFile), &::mozilla::detail::DerefedType<decltype(walFile)>::GetFileSize)\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12588, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))"
, tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12588, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const int64_t& walFileSize = tryResult1066
.inspect();
;
12589 MOZ_ASSERT(walFileSize >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(walFileSize >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(walFileSize >= 0))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("walFileSize >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12589
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "walFileSize >= 0"
")"); do { MOZ_CrashSequence(__null, 12589); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12590 *aUsageInfo += DatabaseUsageType(Some(uint64_t(walFileSize)));
12591 }
12592
12593 {
12594 QM_TRY_INSPECT(const auto& fileUsage,auto tryResult1067 = (DatabaseFileManager::GetUsage(fmDirectory
)); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla
::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)"
, tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12595, mozilla::dom::quota::Severity::Error); return tryResult1067
.propagateErr(); } const auto& fileUsage = tryResult1067.
inspect();
12595 DatabaseFileManager::GetUsage(fmDirectory))auto tryResult1067 = (DatabaseFileManager::GetUsage(fmDirectory
)); if ((__builtin_expect(!!(tryResult1067.isErr()), 0))) { mozilla
::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)"
, tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12595, mozilla::dom::quota::Severity::Error); return tryResult1067
.propagateErr(); } const auto& fileUsage = tryResult1067.
inspect();
;
12596
12597 *aUsageInfo += fileUsage;
12598 }
12599 }
12600 }
12601
12602 return NS_OK;
12603}
12604
12605void QuotaClient::OnOriginClearCompleted(
12606 const OriginMetadata& aOriginMetadata) {
12607 AssertIsOnIOThread();
12608
12609 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12610 mgr->InvalidateFileManagers(aOriginMetadata.mPersistenceType,
12611 aOriginMetadata.mOrigin);
12612 }
12613}
12614
12615void QuotaClient::OnRepositoryClearCompleted(PersistenceType aPersistenceType) {
12616 AssertIsOnIOThread();
12617
12618 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12619 mgr->InvalidateFileManagers(aPersistenceType);
12620 }
12621}
12622
12623void QuotaClient::ReleaseIOThreadObjects() {
12624 AssertIsOnIOThread();
12625
12626 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12627 mgr->InvalidateAllFileManagers();
12628 }
12629}
12630
12631void QuotaClient::AbortOperationsForLocks(
12632 const DirectoryLockIdTable& aDirectoryLockIds) {
12633 AssertIsOnBackgroundThread();
12634
12635 InvalidateLiveDatabasesMatching([&aDirectoryLockIds](const auto& database) {
12636 // If the database is registered in gLiveDatabaseHashtable then it must have
12637 // a directory lock.
12638 return IsLockForObjectContainedInLockTable(database, aDirectoryLockIds);
12639 });
12640}
12641
12642void QuotaClient::AbortOperationsForProcess(ContentParentId aContentParentId) {
12643 AssertIsOnBackgroundThread();
12644
12645 InvalidateLiveDatabasesMatching([&aContentParentId](const auto& database) {
12646 return database.IsOwnedByProcess(aContentParentId);
12647 });
12648}
12649
12650void QuotaClient::AbortAllOperations() {
12651 AssertIsOnBackgroundThread();
12652
12653 AbortAllMaintenances();
12654
12655 InvalidateLiveDatabasesMatching([](const auto&) { return true; });
12656}
12657
12658void QuotaClient::StartIdleMaintenance() {
12659 AssertIsOnBackgroundThread();
12660 if (IsShuttingDownOnBackgroundThread()) {
12661 MOZ_ASSERT(false, "!IsShuttingDownOnBackgroundThread()")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "!IsShuttingDownOnBackgroundThread()"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12661
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 12661); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12662 return;
12663 }
12664
12665 DoMaintenance();
12666}
12667
12668void QuotaClient::StopIdleMaintenance() {
12669 AssertIsOnBackgroundThread();
12670
12671 AbortAllMaintenances();
12672}
12673
12674void QuotaClient::InitiateShutdown() {
12675 AssertIsOnBackgroundThread();
12676 MOZ_ASSERT(IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(IsShuttingDownOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(IsShuttingDownOnBackgroundThread
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12676); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 12676); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12677
12678 if (mDeleteTimer) {
12679 // QuotaClient::AsyncDeleteFile will not schedule new timers beyond
12680 // shutdown. And we expect all critical (PBM) deletions to have been
12681 // triggered before this point via ClearPrivateRepository (w/out using
12682 // DeleteFilesRunnable at all).
12683 mDeleteTimer->Cancel();
12684 mDeleteTimer = nullptr;
12685 mPendingDeleteInfos.Clear();
12686 }
12687
12688 AbortAllOperations();
12689}
12690
12691bool QuotaClient::IsShutdownCompleted() const {
12692 return (!gFactoryOps || gFactoryOps->isEmpty()) &&
12693 (!gLiveDatabaseHashtable || !gLiveDatabaseHashtable->Count()) &&
12694 !mCurrentMaintenance && !DeleteFilesRunnable::IsDeletionPending();
12695}
12696
12697void QuotaClient::ForceKillActors() {
12698 // Currently we don't implement force killing actors.
12699}
12700
12701nsCString QuotaClient::GetShutdownStatus() const {
12702 AssertIsOnBackgroundThread();
12703
12704 nsCString data;
12705
12706 if (gFactoryOps && !gFactoryOps->isEmpty()) {
12707 data.Append("FactoryOperations: "_ns +
12708 IntToCString(static_cast<uint32_t>(gFactoryOps->length())) +
12709 " ("_ns);
12710
12711 // XXX It might be confusing to remove duplicates here, as the actual list
12712 // won't match the count then.
12713 nsTHashSet<nsCString> ids;
12714
12715 std::transform(gFactoryOps->begin(), gFactoryOps->end(), MakeInserter(ids),
12716 [](const FactoryOp* const factoryOp) {
12717 MOZ_ASSERT(factoryOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(factoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(factoryOp))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("factoryOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "factoryOp"
")"); do { MOZ_CrashSequence(__null, 12717); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12718
12719 nsCString id;
12720 factoryOp->Stringify(id);
12721 return id;
12722 });
12723
12724 StringJoinAppend(data, ", "_ns, ids);
12725
12726 data.Append(")\n");
12727 }
12728
12729 if (gLiveDatabaseHashtable && gLiveDatabaseHashtable->Count()) {
12730 data.Append("LiveDatabases: "_ns +
12731 IntToCString(gLiveDatabaseHashtable->Count()) + " ("_ns);
12732
12733 // XXX It might be confusing to remove duplicates here, as the actual list
12734 // won't match the count then.
12735 nsTHashSet<nsCString> ids;
12736
12737 for (const auto& entry : gLiveDatabaseHashtable->Values()) {
12738 MOZ_ASSERT(entry)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(entry)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(entry))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("entry", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12738); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")"
); do { MOZ_CrashSequence(__null, 12738); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12739
12740 std::transform(entry->mLiveDatabases.begin(), entry->mLiveDatabases.end(),
12741 MakeInserter(ids), [](const Database* const database) {
12742 nsCString id;
12743 database->Stringify(id);
12744 return id;
12745 });
12746 }
12747
12748 StringJoinAppend(data, ", "_ns, ids);
12749
12750 data.Append(")\n");
12751 }
12752
12753 if (mCurrentMaintenance) {
12754 data.Append("IdleMaintenance: 1 (");
12755 mCurrentMaintenance->Stringify(data);
12756 data.Append(")\n");
12757 }
12758
12759 return data;
12760}
12761
12762void QuotaClient::FinalizeShutdown() {
12763 RefPtr<ConnectionPool> connectionPool = gConnectionPool.get();
12764 if (connectionPool) {
12765 connectionPool->Shutdown();
12766
12767 gConnectionPool = nullptr;
12768 }
12769
12770 if (mMaintenanceThreadPool) {
12771 mMaintenanceThreadPool->Shutdown();
12772 mMaintenanceThreadPool = nullptr;
12773 }
12774}
12775
12776void QuotaClient::DeleteTimerCallback(nsITimer* aTimer, void* aClosure) {
12777 AssertIsOnBackgroundThread();
12778 MOZ_ASSERT(aTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aTimer)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(aTimer))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aTimer", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12778); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")"
); do { MOZ_CrashSequence(__null, 12778); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12779
12780 // Even though we do not schedule new timers after shutdown has started,
12781 // an already existing one might fire afterwards (actually we think it
12782 // shouldn't, but there is no reason to enforce this invariant). We can
12783 // just ignore it, the cleanup work is done in InitiateShutdown.
12784 if (NS_WARN_IF(IsShuttingDownOnBackgroundThread())NS_warn_if_impl(IsShuttingDownOnBackgroundThread(), "IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12784
)
) {
12785 return;
12786 }
12787
12788 auto* const self = static_cast<QuotaClient*>(aClosure);
12789 MOZ_ASSERT(self)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(self)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(self))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("self", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12789); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self" ")")
; do { MOZ_CrashSequence(__null, 12789); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12790 MOZ_ASSERT(self->mDeleteTimer)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(self->mDeleteTimer)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(self->mDeleteTimer))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("self->mDeleteTimer"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12790
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self->mDeleteTimer"
")"); do { MOZ_CrashSequence(__null, 12790); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12791 MOZ_ASSERT(SameCOMIdentity(self->mDeleteTimer, aTimer))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(SameCOMIdentity(self->mDeleteTimer, aTimer))>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(SameCOMIdentity(self->mDeleteTimer, aTimer)))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("SameCOMIdentity(self->mDeleteTimer, aTimer)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12791
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self->mDeleteTimer, aTimer)"
")"); do { MOZ_CrashSequence(__null, 12791); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12792
12793 for (const auto& pendingDeleteInfoEntry : self->mPendingDeleteInfos) {
12794 const auto& key = pendingDeleteInfoEntry.GetKey();
12795 const auto& value = pendingDeleteInfoEntry.GetData();
12796 MOZ_ASSERT(!value->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!value->IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!value->IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!value->IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12796
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!value->IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 12796); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12797
12798 RefPtr<DeleteFilesRunnable> runnable = new DeleteFilesRunnable(
12799 SafeRefPtr{key, AcquireStrongRefFromRawPtr{}}, std::move(*value));
12800
12801 MOZ_ASSERT(value->IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(value->IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(value->IsEmpty()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("value->IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12801
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value->IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 12801); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12802
12803 runnable->RunImmediately();
12804 }
12805
12806 self->mPendingDeleteInfos.Clear();
12807}
12808
12809void QuotaClient::AbortAllMaintenances() {
12810 if (mCurrentMaintenance) {
12811 mCurrentMaintenance->Abort();
12812 }
12813
12814 for (const auto& maintenance : mMaintenanceQueue) {
12815 maintenance->Abort();
12816 }
12817}
12818
12819Result<nsCOMPtr<nsIFile>, nsresult> QuotaClient::GetDirectory(
12820 const OriginMetadata& aOriginMetadata) {
12821 QuotaManager* const quotaManager = QuotaManager::Get();
12822 NS_ASSERTION(quotaManager, "This should never fail!")do { if (!(quotaManager)) { NS_DebugBreak(NS_DEBUG_ASSERTION,
"This should never fail!", "quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12822); MOZ_PretendNoReturn(); } } while (0)
;
12823
12824 QM_TRY_INSPECT(const auto& directory,auto tryResult1068 = (quotaManager->GetOriginDirectory(aOriginMetadata
)); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)"
, tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12825, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& directory = tryResult1068.
inspect();
12825 quotaManager->GetOriginDirectory(aOriginMetadata))auto tryResult1068 = (quotaManager->GetOriginDirectory(aOriginMetadata
)); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)"
, tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12825, mozilla::dom::quota::Severity::Error); return tryResult1068
.propagateErr(); } const auto& directory = tryResult1068.
inspect();
;
12826
12827 MOZ_ASSERT(directory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(directory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(directory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("directory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12827); AnnotateMozCrashReason("MOZ_ASSERT" "(" "directory"
")"); do { MOZ_CrashSequence(__null, 12827); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12828
12829 QM_TRY(MOZ_TO_RESULT({auto tryResult1069 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1069
)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12830, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); }}
12830 directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1069 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1069
)::ok_type>); if ((__builtin_expect(!!(tryResult1069.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12830, mozilla::dom::quota::Severity::Error); return tryResult1069
.propagateErr(); }}
;
12831
12832 return directory;
12833}
12834
12835template <QuotaClient::ObsoleteFilenamesHandling ObsoleteFilenames>
12836Result<QuotaClient::GetDatabaseFilenamesResult<ObsoleteFilenames>, nsresult>
12837QuotaClient::GetDatabaseFilenames(nsIFile& aDirectory,
12838 const AtomicBool& aCanceled) {
12839 AssertIsOnIOThread();
12840
12841 GetDatabaseFilenamesResult<ObsoleteFilenames> result;
12842
12843 QM_TRY(CollectEachFileAtomicCancelable({auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12844 aDirectory, aCanceled,{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12845 [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12846 QM_TRY_INSPECT(const auto& leafName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12847 nsString, file, GetLeafName));{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12848
12849 QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12850
12851 switch (dirEntryKind) {{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12852 case nsIFileKind::ExistsAsDirectory:{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12853 result.subdirsToProcess.AppendElement(leafName);{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12854 break;{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12855
12856 case nsIFileKind::ExistsAsFile: {{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12857 if constexpr (ObsoleteFilenames =={auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12858 ObsoleteFilenamesHandling::Include) {{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12859 if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) {{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12860 result.obsoleteFilenames.Insert({auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12861 Substring(leafName, kIdbDeletionMarkerFilePrefix.Length()));{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12862 break;{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12863 }{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12864 }{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12865
12866 // Skip OS metadata files. These files are only used in different{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12867 // platforms, but the profile can be shared across different{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12868 // operating systems, so we check it on all platforms.{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12869 if (QuotaManager::IsOSMetadata(leafName)) {{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12870 break;{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12871 }{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12872
12873 // Skip files starting with ".".{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12874 if (QuotaManager::IsDotFile(leafName)) {{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12875 break;{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12876 }{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12877
12878 // Skip SQLite temporary files. These files take up space on disk{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12879 // but will be deleted as soon as the database is opened, so we{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12880 // don't count them towards quota.{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12881 if (StringEndsWith(leafName, kSQLiteJournalSuffix) ||{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12882 StringEndsWith(leafName, kSQLiteSHMSuffix)) {{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12883 break;{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12884 }{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12885
12886 // The SQLite WAL file does count towards quota, but it is handled{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12887 // below once we find the actual database file.{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12888 if (StringEndsWith(leafName, kSQLiteWALSuffix)) {{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12889 break;{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12890 }{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12891
12892 nsDependentSubstring leafNameBase;{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12893 if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) {{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12894 UNKNOWN_FILE_WARNING(leafName);{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12895 break;{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12896 }{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12897
12898 result.databaseFilenames.Insert(leafNameBase);{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12899 break;{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12900 }{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12901
12902 case nsIFileKind::DoesNotExist:{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12903 // Ignore files that got removed externally while iterating.{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12904 break;{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12905 }{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12906
12907 return Ok{};{auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
12908 })){auto tryResult1072 = (CollectEachFileAtomicCancelable( aDirectory
, aCanceled, [&result](const nsCOMPtr<nsIFile>&
file) -> Result<Ok, nsresult> { auto tryResult1070 =
(::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &
::mozilla::detail::DerefedType<decltype(file)>::GetLeafName
), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()),
0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))"
, tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12847, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); } const auto& leafName = tryResult1070.inspect
();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect
(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*file)", tryResult1071.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12849, mozilla::dom::quota::Severity::Error); return tryResult1071
.propagateErr(); } const auto& dirEntryKind = tryResult1071
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: result.subdirsToProcess.AppendElement(leafName); break; case
nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames
== ObsoleteFilenamesHandling::Include) { if (StringBeginsWith
(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames
.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length
())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break
; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith
(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix
)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix))
{ break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase
(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING
, nsPrintfCString( "Something (%s) in the directory that doesn't belong!"
, NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12894); break; } result.databaseFilenames.Insert(leafNameBase
); break; } case nsIFileKind::DoesNotExist: break; } return Ok
{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1072
)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1070 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult1070.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\", tryResult1070.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12847, mozilla::dom::quota::Severity::Error); return tryResult1070.propagateErr(); } const auto& leafName = tryResult1070.inspect();; auto tryResult1071 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1071.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12849, mozilla::dom::quota::Severity::Error); return tryResult1071.propagateErr(); } const auto& dirEntryKind = tryResult1071.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString( \"Something (%s) in the directory that doesn't belong!\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12894); break; } result.databaseFilenames.Insert(leafNameBase); break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1072.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12908, mozilla::dom::quota::Severity::Error); return tryResult1072
.propagateErr(); }}
;
12909
12910 return result;
12911}
12912
12913void QuotaClient::ProcessMaintenanceQueue() {
12914 AssertIsOnBackgroundThread();
12915
12916 if (mCurrentMaintenance || mMaintenanceQueue.IsEmpty()) {
12917 return;
12918 }
12919
12920 mCurrentMaintenance = mMaintenanceQueue[0];
12921 mMaintenanceQueue.RemoveElementAt(0);
12922
12923 mCurrentMaintenance->RunImmediately();
12924}
12925
12926/*******************************************************************************
12927 * DeleteFilesRunnable
12928 ******************************************************************************/
12929
12930uint64_t DeleteFilesRunnable::sPendingRunnables = 0;
12931
12932DeleteFilesRunnable::DeleteFilesRunnable(
12933 SafeRefPtr<DatabaseFileManager> aFileManager, nsTArray<int64_t>&& aFileIds)
12934 : Runnable("dom::indexeddb::DeleteFilesRunnable"),
12935 mOwningEventTarget(GetCurrentSerialEventTarget()),
12936 mFileManager(std::move(aFileManager)),
12937 mFileIds(std::move(aFileIds)),
12938 mState(State_Initial) {}
12939
12940#ifdef DEBUG1
12941DeleteFilesRunnable::~DeleteFilesRunnable() {
12942 MOZ_ASSERT(!mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDEBUGCountsAsPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDEBUGCountsAsPending))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGCountsAsPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12942
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending"
")"); do { MOZ_CrashSequence(__null, 12942); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12943}
12944#endif
12945
12946void DeleteFilesRunnable::RunImmediately() {
12947 AssertIsOnBackgroundThread();
12948 MOZ_ASSERT(mState == State_Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_Initial))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State_Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12948
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial"
")"); do { MOZ_CrashSequence(__null, 12948); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12949
12950 Unused << this->Run();
12951}
12952
12953void DeleteFilesRunnable::Open() {
12954 AssertIsOnBackgroundThread();
12955 MOZ_ASSERT(mState == State_Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_Initial))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State_Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12955
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial"
")"); do { MOZ_CrashSequence(__null, 12955); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12956
12957 MOZ_ASSERT(!mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDEBUGCountsAsPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDEBUGCountsAsPending))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mDEBUGCountsAsPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12957
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending"
")"); do { MOZ_CrashSequence(__null, 12957); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12958 sPendingRunnables++;
12959 DEBUGONLY(mDEBUGCountsAsPending = true)mDEBUGCountsAsPending = true;
12960
12961 QuotaManager* const quotaManager = QuotaManager::Get();
12962 if (NS_WARN_IF(!quotaManager)NS_warn_if_impl(!quotaManager, "!quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12962)
) {
12963 Finish();
12964 return;
12965 }
12966
12967 mState = State_DirectoryOpenPending;
12968
12969 quotaManager
12970 ->OpenClientDirectory(
12971 {mFileManager->OriginMetadata(), quota::Client::IDB})
12972 ->Then(
12973 GetCurrentSerialEventTarget(), __func__,
12974 [self = RefPtr(this)](QuotaManager::ClientDirectoryLockHandlePromise::
12975 ResolveOrRejectValue&& aValue) {
12976 if (aValue.IsResolve()) {
12977 self->DirectoryLockAcquired(std::move(aValue.ResolveValue()));
12978 } else {
12979 self->DirectoryLockFailed();
12980 }
12981 });
12982}
12983
12984void DeleteFilesRunnable::DoDatabaseWork() {
12985 AssertIsOnIOThread();
12986 MOZ_ASSERT(mState == State_DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State_DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 12986); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 12986); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12987
12988 if (!mFileManager->Invalidated()) {
12989 for (int64_t fileId : mFileIds) {
12990 if (NS_FAILED(mFileManager->SyncDeleteFile(fileId))((bool)(__builtin_expect(!!(NS_FAILED_impl(mFileManager->SyncDeleteFile
(fileId))), 0)))
) {
12991 NS_WARNING("Failed to delete file!")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to delete file!", nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12991
)
;
12992 }
12993 }
12994 }
12995
12996 Finish();
12997}
12998
12999void DeleteFilesRunnable::Finish() {
13000 MOZ_ASSERT(mState != State_UnblockingOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState != State_UnblockingOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState != State_UnblockingOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState != State_UnblockingOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13000); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State_UnblockingOpen"
")"); do { MOZ_CrashSequence(__null, 13000); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13001
13002 // Must set mState before dispatching otherwise we will race with the main
13003 // thread.
13004 mState = State_UnblockingOpen;
13005
13006 MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13006
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13006); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13007}
13008
13009void DeleteFilesRunnable::UnblockOpen() {
13010 AssertIsOnBackgroundThread();
13011 MOZ_ASSERT(mState == State_UnblockingOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_UnblockingOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_UnblockingOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State_UnblockingOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13011); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_UnblockingOpen"
")"); do { MOZ_CrashSequence(__null, 13011); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13012
13013 {
13014 auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle);
13015 }
13016
13017 MOZ_ASSERT(mDEBUGCountsAsPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDEBUGCountsAsPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDEBUGCountsAsPending))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGCountsAsPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13017
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGCountsAsPending"
")"); do { MOZ_CrashSequence(__null, 13017); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13018 sPendingRunnables--;
13019 DEBUGONLY(mDEBUGCountsAsPending = false)mDEBUGCountsAsPending = false;
13020
13021 mState = State_Completed;
13022}
13023
13024NS_IMETHODIMPnsresult
13025DeleteFilesRunnable::Run() {
13026 switch (mState) {
13027 case State_Initial:
13028 Open();
13029 break;
13030
13031 case State_DatabaseWorkOpen:
13032 DoDatabaseWork();
13033 break;
13034
13035 case State_UnblockingOpen:
13036 UnblockOpen();
13037 break;
13038
13039 case State_DirectoryOpenPending:
13040 default:
13041 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13041
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 13041); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
13042 }
13043
13044 return NS_OK;
13045}
13046
13047void DeleteFilesRunnable::DirectoryLockAcquired(
13048 ClientDirectoryLockHandle aLockHandle) {
13049 AssertIsOnBackgroundThread();
13050 MOZ_ASSERT(mState == State_DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_DirectoryOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_DirectoryOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State_DirectoryOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13050); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13050); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13051 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13051
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 13051); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13052
13053 mDirectoryLockHandle = std::move(aLockHandle);
13054
13055 QuotaManager* const quotaManager = QuotaManager::Get();
13056 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13056); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 13056); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13057
13058 // Must set this before dispatching otherwise we will race with the IO thread
13059 mState = State_DatabaseWorkOpen;
13060
13061 QM_TRY(MOZ_TO_RESULT({auto tryResult1073 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1073)::ok_type
>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) {
auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13063, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return ; }}
13062 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1073 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1073)::ok_type
>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) {
auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13063, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return ; }}
13063 QM_VOID, [this](const nsresult) { Finish(); }){auto tryResult1073 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1073)::ok_type
>); if ((__builtin_expect(!!(tryResult1073.isErr()), 0))) {
auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13063, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return ; }}
;
13064}
13065
13066void DeleteFilesRunnable::DirectoryLockFailed() {
13067 AssertIsOnBackgroundThread();
13068 MOZ_ASSERT(mState == State_DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State_DirectoryOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State_DirectoryOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State_DirectoryOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13068); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13069 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13069
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 13069); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13070
13071 Finish();
13072}
13073
13074void Maintenance::Abort() {
13075 AssertIsOnBackgroundThread();
13076
13077 // Safe because mDatabaseMaintenances is modified
13078 // only in the background thread
13079 for (const auto& aDatabaseMaintenance : mDatabaseMaintenances) {
13080 aDatabaseMaintenance.GetData()->Abort();
13081 }
13082
13083 mAborted = true;
13084}
13085
13086void Maintenance::RegisterDatabaseMaintenance(
13087 DatabaseMaintenance* aDatabaseMaintenance) {
13088 AssertIsOnBackgroundThread();
13089 MOZ_ASSERT(aDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseMaintenance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseMaintenance))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseMaintenance"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13089
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance"
")"); do { MOZ_CrashSequence(__null, 13089); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13090 MOZ_ASSERT(mState == State::BeginDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginDatabaseMaintenance)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mState == State::BeginDatabaseMaintenance))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mState == State::BeginDatabaseMaintenance"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13090
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance"
")"); do { MOZ_CrashSequence(__null, 13090); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13091 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseMaintenances.Contains(aDatabaseMaintenance
->DatabasePath()))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Contains
(aDatabaseMaintenance->DatabasePath())))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13092
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
")"); do { MOZ_CrashSequence(__null, 13092); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
13092 !mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseMaintenances.Contains(aDatabaseMaintenance
->DatabasePath()))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseMaintenances.Contains
(aDatabaseMaintenance->DatabasePath())))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13092
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
")"); do { MOZ_CrashSequence(__null, 13092); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13093
13094 mDatabaseMaintenances.InsertOrUpdate(aDatabaseMaintenance->DatabasePath(),
13095 aDatabaseMaintenance);
13096}
13097
13098void Maintenance::UnregisterDatabaseMaintenance(
13099 DatabaseMaintenance* aDatabaseMaintenance) {
13100 AssertIsOnBackgroundThread();
13101 MOZ_ASSERT(aDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseMaintenance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseMaintenance))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("aDatabaseMaintenance"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13101
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance"
")"); do { MOZ_CrashSequence(__null, 13101); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13102 MOZ_ASSERT(mState == State::WaitingForDatabaseMaintenancesToComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForDatabaseMaintenancesToComplete
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForDatabaseMaintenancesToComplete
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::WaitingForDatabaseMaintenancesToComplete", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13102); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForDatabaseMaintenancesToComplete"
")"); do { MOZ_CrashSequence(__null, 13102); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13103 MOZ_ASSERT(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath
()))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath
())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13103
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath())"
")"); do { MOZ_CrashSequence(__null, 13103); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13104
13105 mDatabaseMaintenances.Remove(aDatabaseMaintenance->DatabasePath());
13106
13107 if (mDatabaseMaintenances.Count()) {
13108 return;
13109 }
13110
13111 for (const auto& completeCallback : mCompleteCallbacks) {
13112 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(completeCallback))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(completeCallback))), 1)))), 1))) {
} else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(completeCallback))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13112
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(completeCallback))"
")"); do { MOZ_CrashSequence(__null, 13112); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13113 }
13114 mCompleteCallbacks.Clear();
13115
13116 mState = State::Finishing;
13117 Finish();
13118}
13119
13120void Maintenance::Stringify(nsACString& aResult) const {
13121 AssertIsOnBackgroundThread();
13122
13123 aResult.Append("DatabaseMaintenances: "_ns +
13124 IntToCString(mDatabaseMaintenances.Count()) + " ("_ns);
13125
13126 // XXX It might be confusing to remove duplicates here, as the actual list
13127 // won't match the count then.
13128 nsTHashSet<nsCString> ids;
13129 std::transform(mDatabaseMaintenances.Values().cbegin(),
13130 mDatabaseMaintenances.Values().cend(), MakeInserter(ids),
13131 [](const auto& entry) {
13132 MOZ_ASSERT(entry)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(entry)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(entry))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("entry", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13132); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")"
); do { MOZ_CrashSequence(__null, 13132); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13133
13134 nsCString id;
13135 entry->Stringify(id);
13136
13137 return id;
13138 });
13139
13140 StringJoinAppend(aResult, ", "_ns, ids);
13141
13142 aResult.Append(")");
13143}
13144
13145nsresult Maintenance::Start() {
13146 AssertIsOnBackgroundThread();
13147 MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13147
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { MOZ_CrashSequence(__null, 13147); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13148
13149 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13149)
||
13150 IsAborted()) {
13151 return NS_ERROR_ABORT;
13152 }
13153
13154 // Make sure that the IndexedDatabaseManager is running so that we can check
13155 // for low disk space mode.
13156
13157 if (IndexedDatabaseManager::Get()) {
13158 OpenDirectory();
13159 return NS_OK;
13160 }
13161
13162 mState = State::CreateIndexedDatabaseManager;
13163 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(this))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToMainThread(this))), 1)))), 1))) { } else { do {
do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToMainThread(this))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13163
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToMainThread(this))"
")"); do { MOZ_CrashSequence(__null, 13163); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13164
13165 return NS_OK;
13166}
13167
13168nsresult Maintenance::CreateIndexedDatabaseManager() {
13169 MOZ_ASSERT(NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13169
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 13169); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13170 MOZ_ASSERT(mState == State::CreateIndexedDatabaseManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::CreateIndexedDatabaseManager)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::CreateIndexedDatabaseManager))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::CreateIndexedDatabaseManager"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13170
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::CreateIndexedDatabaseManager"
")"); do { MOZ_CrashSequence(__null, 13170); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13171
13172 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13172)
||
13173 IsAborted()) {
13174 return NS_ERROR_ABORT;
13175 }
13176
13177 IndexedDatabaseManager* const mgr = IndexedDatabaseManager::GetOrCreate();
13178 if (NS_WARN_IF(!mgr)NS_warn_if_impl(!mgr, "!mgr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13178)
) {
13179 return NS_ERROR_FAILURE;
13180 }
13181
13182 mState = State::IndexedDatabaseManagerOpen;
13183 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13184
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13184); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13184 mQuotaClient->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13184
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13184); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13185
13186 return NS_OK;
13187}
13188
13189RefPtr<UniversalDirectoryLockPromise> Maintenance::OpenStorageDirectory(
13190 const PersistenceScope& aPersistenceScope, bool aInitializeOrigins) {
13191 AssertIsOnBackgroundThread();
13192 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13192
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 13192); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13193 MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13193
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13193); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13194 MOZ_ASSERT(!mAborted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mAborted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mAborted))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!mAborted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mAborted"
")"); do { MOZ_CrashSequence(__null, 13194); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13195 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13195
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13195); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13196
13197 QuotaManager* quotaManager = QuotaManager::Get();
13198 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13198); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 13198); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13199
13200 // Return a shared lock for <profile>/storage/*/*/idb
13201 return quotaManager->OpenStorageDirectory(
13202 aPersistenceScope, OriginScope::FromNull(),
13203 ClientStorageScope::CreateFromClient(Client::IDB),
13204 /* aExclusive */ false, aInitializeOrigins, DirectoryLockCategory::None,
13205 SomeRef(mPendingDirectoryLock));
13206}
13207
13208nsresult Maintenance::OpenDirectory() {
13209 AssertIsOnBackgroundThread();
13210 MOZ_ASSERT(mState == State::Initial ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13211
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
")"); do { MOZ_CrashSequence(__null, 13211); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
13211 mState == State::IndexedDatabaseManagerOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::Initial || mState == State::IndexedDatabaseManagerOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13211
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
")"); do { MOZ_CrashSequence(__null, 13211); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13212 MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13212
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13212); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13213 MOZ_ASSERT(QuotaManager::Get())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(QuotaManager::Get())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(QuotaManager::Get()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("QuotaManager::Get()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13213
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaManager::Get()"
")"); do { MOZ_CrashSequence(__null, 13213); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13214
13215 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13215)
||
13216 IsAborted()) {
13217 return NS_ERROR_ABORT;
13218 }
13219
13220 mState = State::DirectoryOpenPending;
13221
13222 // Since idle maintenance may occur before persistent or temporary storage is
13223 // initialized, make sure it's initialized here (all persistent and
13224 // non-persistent origins need to be cleaned up and quota info needs to be
13225 // loaded for non-persistent origins).
13226
13227 OpenStorageDirectory(PersistenceScope::CreateFromNull(),
13228 /* aInitializeOrigins */ true)
13229 ->Then(
13230 GetCurrentSerialEventTarget(), __func__,
13231 [self = RefPtr(this)](
13232 const UniversalDirectoryLockPromise::ResolveOrRejectValue&
13233 aValue) {
13234 if (aValue.IsResolve()) {
13235 self->DirectoryLockAcquired(aValue.ResolveValue());
13236 return;
13237 }
13238
13239 // Don't fail whole idle maintenance in case of an error, the
13240 // persistent repository can still be processed.
13241
13242 self->mPendingDirectoryLock = nullptr;
13243 self->mOpenStorageForAllRepositoriesFailed = true;
13244
13245 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13245)
||
13246 self->IsAborted()) {
13247 self->DirectoryLockFailed();
13248 return;
13249 }
13250
13251 self->OpenStorageDirectory(PersistenceScope::CreateFromValue(
13252 PERSISTENCE_TYPE_PERSISTENT),
13253 /* aInitializeOrigins */ true)
13254 ->Then(GetCurrentSerialEventTarget(), __func__,
13255 [self](const UniversalDirectoryLockPromise::
13256 ResolveOrRejectValue& aValue) {
13257 if (aValue.IsResolve()) {
13258 self->DirectoryLockAcquired(aValue.ResolveValue());
13259 } else {
13260 self->DirectoryLockFailed();
13261 }
13262 });
13263 });
13264
13265 return NS_OK;
13266}
13267
13268nsresult Maintenance::DirectoryOpen() {
13269 AssertIsOnBackgroundThread();
13270 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13270
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13270); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13271 MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13271
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13271); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13272
13273 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13273)
||
13274 IsAborted()) {
13275 return NS_ERROR_ABORT;
13276 }
13277
13278 QuotaManager* const quotaManager = QuotaManager::Get();
13279 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13279); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 13279); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13280
13281 mState = State::DirectoryWorkOpen;
13282
13283 QM_TRY(MOZ_TO_RESULT({auto tryResult1074 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1074)::ok_type
>); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1074
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13285, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_FAILURE); }}
13284 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1074 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1074)::ok_type
>); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1074
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13285, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_FAILURE); }}
13285 NS_ERROR_FAILURE){auto tryResult1074 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1074)::ok_type
>); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1074
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13285, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_FAILURE); }}
;
13286
13287 return NS_OK;
13288}
13289
13290nsresult Maintenance::DirectoryWork() {
13291 AssertIsOnIOThread();
13292 MOZ_ASSERT(mState == State::DirectoryWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DirectoryWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13292); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen"
")"); do { MOZ_CrashSequence(__null, 13292); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13293
13294 // The storage directory is structured like this:
13295 //
13296 // <profile>/storage/<persistence>/<origin>/idb/*.sqlite
13297 //
13298 // We have to find all database files that match any persistence type and any
13299 // origin. We ignore anything out of the ordinary for now.
13300
13301 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13301)
||
13302 IsAborted()) {
13303 return NS_ERROR_ABORT;
13304 }
13305
13306 QuotaManager* const quotaManager = QuotaManager::Get();
13307 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13307); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 13307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13308
13309 const nsCOMPtr<nsIFile> storageDir =
13310 GetFileForPath(quotaManager->GetStoragePath());
13311 QM_TRY(OkIf(storageDir), NS_ERROR_FAILURE){auto tryResult1075 = (OkIf(storageDir)); static_assert(std::
is_empty_v<typename decltype(tryResult1075)::ok_type>);
if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1075.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(storageDir)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13311
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(storageDir)", tryTempError
, NS_ERROR_FAILURE); }}
;
13312
13313 {
13314 QM_TRY_INSPECT(const bool& exists,auto tryResult1076 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1076.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13315, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const bool& exists = tryResult1076.inspect
();
13315 MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, Exists))auto tryResult1076 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1076.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists)"
, tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13315, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const bool& exists = tryResult1076.inspect
();
;
13316
13317 // XXX No warning here?
13318 if (!exists) {
13319 return NS_ERROR_NOT_AVAILABLE;
13320 }
13321 }
13322
13323 {
13324 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1077 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1077.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory)"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); } const bool& isDirectory = tryResult1077
.inspect();
13325 MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, IsDirectory))auto tryResult1077 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1077.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory)"
, tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13325, mozilla::dom::quota::Severity::Error); return tryResult1077
.propagateErr(); } const bool& isDirectory = tryResult1077
.inspect();
;
13326
13327 QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1078 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1078)::ok_type>);
if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1078.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13327
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError
, NS_ERROR_FAILURE); }}
;
13328 }
13329
13330 // There are currently only 4 persistence types, and we want to iterate them
13331 // in this order:
13332 static const PersistenceType kPersistenceTypes[] = {
13333 PERSISTENCE_TYPE_PERSISTENT, PERSISTENCE_TYPE_DEFAULT,
13334 PERSISTENCE_TYPE_TEMPORARY, PERSISTENCE_TYPE_PRIVATE};
13335
13336 static_assert(
13337 std::size(kPersistenceTypes) == size_t(PERSISTENCE_TYPE_INVALID),
13338 "Something changed with available persistence types!");
13339
13340 constexpr auto idbDirName =
13341 NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)static_cast<const nsLiteralString&>( nsLiteralString
(u"" "idb"))
;
13342
13343 for (const PersistenceType persistenceType : kPersistenceTypes) {
13344 // Loop over "<persistence>" directories.
13345 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13345)
||
13346 IsAborted()) {
13347 return NS_ERROR_ABORT;
13348 }
13349
13350 // Don't do any maintenance for private browsing databases, which are only
13351 // temporary.
13352 if (persistenceType == PERSISTENCE_TYPE_PRIVATE) {
13353 continue;
13354 }
13355
13356 const bool persistent = persistenceType == PERSISTENCE_TYPE_PERSISTENT;
13357
13358 if (!persistent && mOpenStorageForAllRepositoriesFailed) {
13359 // Non-persistent (best effort) repositories can't be processed if
13360 // temporary storage initialization failed.
13361 continue;
13362 }
13363
13364 // XXX persistenceType == PERSISTENCE_TYPE_PERSISTENT shouldn't be a special
13365 // case...
13366 const auto persistenceTypeString =
13367 persistenceType == PERSISTENCE_TYPE_PERSISTENT
13368 ? "permanent"_ns
13369 : PersistenceTypeToString(persistenceType);
13370
13371 QM_TRY_INSPECT(const auto& persistenceDir,auto tryResult1079 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1079
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13373, mozilla::dom::quota::Severity::Error); return tryResult1079
.propagateErr(); } const auto& persistenceDir = tryResult1079
.inspect();
13372 CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16(auto tryResult1079 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1079
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13373, mozilla::dom::quota::Severity::Error); return tryResult1079
.propagateErr(); } const auto& persistenceDir = tryResult1079
.inspect();
13373 persistenceTypeString)))auto tryResult1079 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1079
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13373, mozilla::dom::quota::Severity::Error); return tryResult1079
.propagateErr(); } const auto& persistenceDir = tryResult1079
.inspect();
;
13374
13375 {
13376 QM_TRY_INSPECT(const bool& exists,auto tryResult1080 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1080.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13377, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const bool& exists = tryResult1080.inspect
();
13377 MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, Exists))auto tryResult1080 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1080.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists)"
, tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13377, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const bool& exists = tryResult1080.inspect
();
;
13378
13379 if (!exists) {
13380 continue;
13381 }
13382
13383 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1081 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1081.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory)"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13384, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const bool& isDirectory = tryResult1081
.inspect();
13384 MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, IsDirectory))auto tryResult1081 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1081.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory)"
, tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13384, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const bool& isDirectory = tryResult1081
.inspect();
;
13385
13386 if (NS_WARN_IF(!isDirectory)NS_warn_if_impl(!isDirectory, "!isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13386)
) {
13387 continue;
13388 }
13389 }
13390
13391 // Loop over "<origin>/idb" directories.
13392 QM_TRY(CollectEachFile({auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13393 *persistenceDir,{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13394 [this, &quotaManager, persistenceType, persistent, &idbDirName]({auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13395 const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13396 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13397 IsAborted()) {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13398 return Err(NS_ERROR_ABORT);{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13399 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13400
13401 QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*originDir));{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13402
13403 switch (dirEntryKind) {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13404 case nsIFileKind::ExistsAsFile:{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13405 break;{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13406
13407 case nsIFileKind::ExistsAsDirectory: {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13408 // Get the necessary information about the origin{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13409 // (GetOriginMetadata also checks if it's a valid origin).{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13410
13411 QM_TRY_UNWRAP(auto metadata,{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13412 quotaManager->GetOriginMetadata(originDir),{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13413 // Not much we can do here...{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13414 Ok{});{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13415
13416 if (!persistent &&{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13417 !quotaManager->IsTemporaryOriginInitializedInternal({auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13418 metadata)) {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13419 // XXX GetOriginMetadata, which skips loading the metadata file{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13420 // and instead relies on parsing the origin directory name and{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13421 // reconstructing the principal, may produce a different origin{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13422 // string than the one originally used to create the origin{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13423 // directory.{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13424 //{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13425 // For now, if this mismatch occurs, we fall back to the slower{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13426 // LoadFullOriginMetadataWithRestore.{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13427 //{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13428 // In the future, it would be useful to report anonymized{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13429 // origin strings via telemetry to help investigate and{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13430 // eventually fix this mismatch.{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13431 QM_TRY_UNWRAP({auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13432 metadata,{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13433 quotaManager->LoadFullOriginMetadataWithRestore(originDir),{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13434 Ok{});{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13435 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13436
13437 // We now use a dedicated repository for private browsing{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13438 // databases, but there could be some forgotten private browsing{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13439 // databases in other repositories, so it's better to check for{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13440 // that and don't do any maintenance for such databases.{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13441 if (metadata.mIsPrivate) {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13442 return Ok{};{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13443 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13444
13445 QM_TRY_INSPECT(const auto& idbDir,{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13446 CloneFileAndAppend(*originDir, idbDirName));{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13447
13448 QM_TRY_INSPECT(const bool& exists,{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13449 MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, Exists));{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13450
13451 if (!exists) {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13452 return Ok{};{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13453 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13454
13455 QM_TRY_INSPECT(const bool& isDirectory,{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13456 MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, IsDirectory));{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13457
13458 QM_TRY(OkIf(isDirectory), Ok{});{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13459
13460 nsTArray<nsString> databasePaths;{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13461
13462 // Loop over files in the "idb" directory.{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13463 QM_TRY(CollectEachFile({auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13464 *idbDir,{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13465 [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile){auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13466 -> Result<Ok, nsresult> {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13467 if (NS_WARN_IF(QuotaClient::{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13468 IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13469 IsAborted()) {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13470 return Err(NS_ERROR_ABORT);{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13471 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13472
13473 QM_TRY_UNWRAP(auto idbFilePath,{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13474 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13475 nsString, idbDirFile, GetPath));{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13476
13477 if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13478 return Ok{};{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13479 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13480
13481 QM_TRY_INSPECT(const auto& dirEntryKind,{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13482 GetDirEntryKind(*idbDirFile));{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13483
13484 switch (dirEntryKind) {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13485 case nsIFileKind::ExistsAsDirectory:{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13486 break;{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13487
13488 case nsIFileKind::ExistsAsFile:{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13489 // Found a database.{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13490
13491 MOZ_ASSERT(!databasePaths.Contains(idbFilePath));{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13492
13493 databasePaths.AppendElement(std::move(idbFilePath));{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13494 break;{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13495
13496 case nsIFileKind::DoesNotExist:{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13497 // Ignore files that got removed externally while{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13498 // iterating.{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13499 break;{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13500 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13501
13502 return Ok{};{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13503 }));{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13504
13505 if (!databasePaths.IsEmpty()) {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13506 if (!persistent) {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13507 auto maybeOriginStateMetadata ={auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13508 quotaManager->GetOriginStateMetadata(metadata);{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13509
13510 auto originStateMetadata = maybeOriginStateMetadata.extract();{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13511
13512 // Skip origin maintenance if the origin hasn't been accessed{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13513 // since its last recorded maintenance. This avoids{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13514 // unnecessary I/O and prevents updating the accessed flag in{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13515 // metadata, which helps preserve the effectiveness of the L2{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13516 // quota info cache.{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13517 //{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13518 // This early-out is safe because maintenance is only needed{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13519 // when something has changed (e.g., new access or activity).{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13520 const Date accessDate ={auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13521 Date::FromTimestamp(originStateMetadata.mLastAccessTime);{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13522 const Date maintenanceDate ={auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13523 Date::FromDays(originStateMetadata.mLastMaintenanceDate);{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13524
13525 if (accessDate <= maintenanceDate) {{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13526 return Ok{};{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13527 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13528
13529 originStateMetadata.mLastMaintenanceDate ={auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13530 Date::Today().ToDays();{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13531 originStateMetadata.mAccessed = true;{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13532
13533 QM_TRY(MOZ_TO_RESULT(SaveDirectoryMetadataHeader({auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13534 *originDir, originStateMetadata)));{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13535
13536 quotaManager->UpdateOriginMaintenanceDate({auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13537 metadata, originStateMetadata.mLastMaintenanceDate);{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13538 quotaManager->UpdateOriginAccessed(metadata);{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13539 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13540
13541 mDirectoryInfos.EmplaceBack(persistenceType, metadata,{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13542 std::move(databasePaths));{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13543 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13544
13545 break;{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13546 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13547
13548 case nsIFileKind::DoesNotExist:{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13549 // Ignore files that got removed externally while iterating.{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13550 break;{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13551 }{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13552
13553 return Ok{};{auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
13554 })){auto tryResult1093 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistenceType, persistent, &idbDirName
]( const nsCOMPtr<nsIFile>& originDir) -> Result
<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13401, mozilla::dom::quota::Severity::Error); return tryResult1082
.propagateErr(); } const auto& dirEntryKind = tryResult1082
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13414, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)"
, tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap
();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal
( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore
(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr())
, 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084
.unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13434, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestore(originDir)"
, tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; }
if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1085.
inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13446, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const auto& idbDir = tryResult1085.inspect
();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13449, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& exists = tryResult1086.inspect
();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13456, mozilla::dom::quota::Severity::Error); return tryResult1087
.propagateErr(); } const bool& isDirectory = tryResult1087
.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1088)::ok_type
>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1088
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13458, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths
; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13468
) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089
= (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(idbDirFile)
>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1089.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13475, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1090
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13482, mozilla::dom::quota::Severity::Error); return tryResult1090
.propagateErr(); } const auto& dirEntryKind = tryResult1090
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13491); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { MOZ_CrashSequence(__null, 13491); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1091)::ok_type>);
if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla
::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13503, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent
) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata
(metadata); auto originStateMetadata = maybeOriginStateMetadata
.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata
.mLastAccessTime); const Date maintenanceDate = Date::FromDays
(originStateMetadata.mLastMaintenanceDate); if (accessDate <=
maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate
= Date::Today().ToDays(); originStateMetadata.mAccessed = true
; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader
( *originDir, originStateMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect
(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))"
, tryResult1092.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13534, mozilla::dom::quota::Severity::Error); return tryResult1092
.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate
( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager
->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack
(persistenceType, metadata, std::move(databasePaths)); } break
; } case nsIFileKind::DoesNotExist: break; } return Ok{}; }))
; static_assert(std::is_empty_v<typename decltype(tryResult1093
)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistenceType, persistent, &idbDirName]( const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread(), \"QuotaClient::IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13396) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1082 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13401, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); } const auto& dirEntryKind = tryResult1082.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1083 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13414, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1083.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { auto tryResult1084 = (quotaManager->LoadFullOriginMetadataWithRestore(originDir)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1084.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13434, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestore(originDir)\", tryTempError, Ok{}); } metadata = tryResult1084.unwrap();; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1085 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1085.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13446, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const auto& idbDir = tryResult1085.inspect();; auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1086.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13449, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& exists = tryResult1086.inspect();; if (!exists) { return Ok{}; } auto tryResult1087 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1087.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13456, mozilla::dom::quota::Severity::Error); return tryResult1087.propagateErr(); } const bool& isDirectory = tryResult1087.inspect();; {auto tryResult1088 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1088)::ok_type>); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1088.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13458, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1091 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1089.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1090.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13491); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13468) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1089 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1089.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13475, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } auto idbFilePath = tryResult1089.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1090 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1090.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13482, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); } const auto& dirEntryKind = tryResult1090.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13491); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13491); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1091.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13503, mozilla::dom::quota::Severity::Error); return tryResult1091.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeOriginStateMetadata = quotaManager->GetOriginStateMetadata(metadata); auto originStateMetadata = maybeOriginStateMetadata.extract(); const Date accessDate = Date::FromTimestamp(originStateMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(originStateMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } originStateMetadata.mLastMaintenanceDate = Date::Today().ToDays(); originStateMetadata.mAccessed = true; {auto tryResult1092 = (ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(SaveDirectoryMetadataHeader( *originDir, originStateMetadata))\", tryResult1092.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13534, mozilla::dom::quota::Severity::Error); return tryResult1092.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, originStateMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1093.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13554, mozilla::dom::quota::Severity::Error); return tryResult1093
.propagateErr(); }}
;
13555 }
13556
13557 mState = State::BeginDatabaseMaintenance;
13558
13559 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13560
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13560); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13560 mQuotaClient->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13560
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13560); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13561
13562 return NS_OK;
13563}
13564
13565nsresult Maintenance::BeginDatabaseMaintenance() {
13566 AssertIsOnBackgroundThread();
13567 MOZ_ASSERT(mState == State::BeginDatabaseMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginDatabaseMaintenance)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mState == State::BeginDatabaseMaintenance))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mState == State::BeginDatabaseMaintenance"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13567
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance"
")"); do { MOZ_CrashSequence(__null, 13567); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13568
13569 class MOZ_STACK_CLASS Helper final {
13570 public:
13571 static bool IsSafeToRunMaintenance(const nsAString& aDatabasePath) {
13572 if (gFactoryOps) {
13573 // XXX LinkedList should support reverse iteration via rbegin() and
13574 // rend(), see bug 1964967.
13575 for (const FactoryOp* existingOp = gFactoryOps->getLast(); existingOp;
13576 existingOp = existingOp->getPrevious()) {
13577 if (existingOp->DatabaseNameRef().isNothing()) {
13578 return false;
13579 }
13580
13581 if (!existingOp->DatabaseFilePathIsKnown()) {
13582 continue;
13583 }
13584
13585 if (existingOp->DatabaseFilePath() == aDatabasePath) {
13586 return false;
13587 }
13588 }
13589 }
13590
13591 if (gLiveDatabaseHashtable) {
13592 return std::all_of(gLiveDatabaseHashtable->Values().cbegin(),
13593 gLiveDatabaseHashtable->Values().cend(),
13594 [&aDatabasePath](const auto& liveDatabasesEntry) {
13595 // XXX std::all_of currently doesn't work with
13596 // LinkedList's iterator. See bug 1964969.
13597 for (const Database* const database :
13598 liveDatabasesEntry->mLiveDatabases) {
13599 if (database->FilePath() == aDatabasePath) {
13600 return false;
13601 }
13602 }
13603 return true;
13604 });
13605 }
13606
13607 return true;
13608 }
13609 };
13610
13611 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13611)
||
13612 IsAborted()) {
13613 return NS_ERROR_ABORT;
13614 }
13615
13616 RefPtr<nsThreadPool> threadPool;
13617
13618 for (DirectoryInfo& directoryInfo : mDirectoryInfos) {
13619 for (const nsAString& databasePath : *directoryInfo.mDatabasePaths) {
13620 if (Helper::IsSafeToRunMaintenance(databasePath)) {
13621 RefPtr<ClientDirectoryLock> directoryLock =
13622 mDirectoryLock->SpecializeForClient(directoryInfo.mPersistenceType,
13623 *directoryInfo.mOriginMetadata,
13624 Client::IDB);
13625 MOZ_ASSERT(directoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(directoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(directoryLock))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("directoryLock",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13625)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "directoryLock" ")"
); do { MOZ_CrashSequence(__null, 13625); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13626
13627 // No key needs to be passed here, because we skip encrypted databases
13628 // in DoDirectoryWork as long as they are only used in private browsing
13629 // mode.
13630 const auto databaseMaintenance = MakeRefPtr<DatabaseMaintenance>(
13631 this, std::move(directoryLock), directoryInfo.mPersistenceType,
13632 *directoryInfo.mOriginMetadata, databasePath, Nothing{});
13633
13634 if (!threadPool) {
13635 threadPool = mQuotaClient->GetOrCreateThreadPool();
13636 MOZ_ASSERT(threadPool)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(threadPool)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(threadPool))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("threadPool", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13636); AnnotateMozCrashReason("MOZ_ASSERT" "(" "threadPool"
")"); do { MOZ_CrashSequence(__null, 13636); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13637 }
13638
13639 // Perform database maintenance on a TaskQueue, as database connections
13640 // require a serial event target when being opened in order to allow
13641 // memory pressure notifications to clear caches (bug 1806751).
13642 const auto taskQueue = TaskQueue::Create(
13643 do_AddRef(threadPool), "IndexedDB Database Maintenance");
13644
13645 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::
DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13646
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13646); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13646 taskQueue->Dispatch(databaseMaintenance, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::
DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13646
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13646); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13647
13648 RegisterDatabaseMaintenance(databaseMaintenance);
13649 }
13650 }
13651 }
13652
13653 mDirectoryInfos.Clear();
13654
13655 DropDirectoryLock(mDirectoryLock);
13656
13657 if (mDatabaseMaintenances.Count()) {
13658 mState = State::WaitingForDatabaseMaintenancesToComplete;
13659 } else {
13660 mState = State::Finishing;
13661 Finish();
13662 }
13663
13664 return NS_OK;
13665}
13666
13667void Maintenance::Finish() {
13668 AssertIsOnBackgroundThread();
13669 MOZ_ASSERT(mState == State::Finishing)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Finishing)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Finishing))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Finishing"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13669
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Finishing"
")"); do { MOZ_CrashSequence(__null, 13669); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13670
13671 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13672 mPromiseHolder.ResolveIfExists(true, __func__);
13673 } else {
13674 mPromiseHolder.RejectIfExists(mResultCode, __func__);
13675
13676 nsCString errorName;
13677 GetErrorName(mResultCode, errorName);
13678
13679 IDB_WARNING("Maintenance finished with error: %s", errorName.get())do { nsPrintfCString s("Maintenance finished with error: %s",
errorName.get()); mozilla::dom::indexedDB::ReportInternalError
("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13679,
s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13679); } while (0)
;
13680 }
13681
13682 SafeDropDirectoryLock(mDirectoryLock);
13683
13684 // It can happen that we are only referenced by mCurrentMaintenance which is
13685 // cleared in NoteFinishedMaintenance()
13686 const RefPtr<Maintenance> kungFuDeathGrip = this;
13687
13688 mQuotaClient->NoteFinishedMaintenance(this);
13689
13690 mState = State::Complete;
13691}
13692
13693NS_IMETHODIMPnsresult
13694Maintenance::Run() {
13695 MOZ_ASSERT(mState != State::Complete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState != State::Complete)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState != State::Complete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState != State::Complete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13695
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete"
")"); do { MOZ_CrashSequence(__null, 13695); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13696
13697 const auto handleError = [this](const nsresult rv) {
13698 if (mState != State::Finishing) {
13699 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13700 mResultCode = rv;
13701 }
13702
13703 // Must set mState before dispatching otherwise we will race with the
13704 // owning thread.
13705 mState = State::Finishing;
13706
13707 if (IsOnBackgroundThread()) {
13708 Finish();
13709 } else {
13710 MOZ_ALWAYS_SUCCEEDS(mQuotaClient->BackgroundThread()->Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13711
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13711); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
13711 this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13711
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 13711); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
13712 }
13713 }
13714 };
13715
13716 switch (mState) {
13717 case State::Initial:
13718 QM_TRY(MOZ_TO_RESULT(Start()), NS_OK, handleError){auto tryResult1094 = (ToResult(Start())); static_assert(std::
is_empty_v<typename decltype(tryResult1094)::ok_type>);
if ((__builtin_expect(!!(tryResult1094.isErr()), 0))) { auto
tryTempError = tryResult1094.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(Start())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13718, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(Start())", tryTempError, NS_OK); }}
;
13719 break;
13720
13721 case State::CreateIndexedDatabaseManager:
13722 QM_TRY(MOZ_TO_RESULT(CreateIndexedDatabaseManager()), NS_OK, handleError){auto tryResult1095 = (ToResult(CreateIndexedDatabaseManager(
))); static_assert(std::is_empty_v<typename decltype(tryResult1095
)::ok_type>); if ((__builtin_expect(!!(tryResult1095.isErr
()), 0))) { auto tryTempError = tryResult1095.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(CreateIndexedDatabaseManager())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13722, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(CreateIndexedDatabaseManager())", tryTempError, NS_OK
); }}
;
13723 break;
13724
13725 case State::IndexedDatabaseManagerOpen:
13726 QM_TRY(MOZ_TO_RESULT(OpenDirectory()), NS_OK, handleError){auto tryResult1096 = (ToResult(OpenDirectory())); static_assert
(std::is_empty_v<typename decltype(tryResult1096)::ok_type
>); if ((__builtin_expect(!!(tryResult1096.isErr()), 0))) {
auto tryTempError = tryResult1096.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(OpenDirectory())", tryTempError,
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13726,
mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(OpenDirectory())", tryTempError, NS_OK); }}
;
13727 break;
13728
13729 case State::DirectoryWorkOpen:
13730 QM_TRY(MOZ_TO_RESULT(DirectoryWork()), NS_OK, handleError){auto tryResult1097 = (ToResult(DirectoryWork())); static_assert
(std::is_empty_v<typename decltype(tryResult1097)::ok_type
>); if ((__builtin_expect(!!(tryResult1097.isErr()), 0))) {
auto tryTempError = tryResult1097.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DirectoryWork())", tryTempError,
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13730,
mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(DirectoryWork())", tryTempError, NS_OK); }}
;
13731 break;
13732
13733 case State::BeginDatabaseMaintenance:
13734 QM_TRY(MOZ_TO_RESULT(BeginDatabaseMaintenance()), NS_OK, handleError){auto tryResult1098 = (ToResult(BeginDatabaseMaintenance()));
static_assert(std::is_empty_v<typename decltype(tryResult1098
)::ok_type>); if ((__builtin_expect(!!(tryResult1098.isErr
()), 0))) { auto tryTempError = tryResult1098.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(BeginDatabaseMaintenance())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13734, mozilla::dom::quota::Severity::Error); handleError(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ToResult(BeginDatabaseMaintenance())", tryTempError, NS_OK
); }}
;
13735 break;
13736
13737 case State::Finishing:
13738 Finish();
13739 break;
13740
13741 default:
13742 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13742); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { MOZ_CrashSequence(__null, 13742); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
13743 }
13744
13745 return NS_OK;
13746}
13747
13748void Maintenance::DirectoryLockAcquired(UniversalDirectoryLock* aLock) {
13749 AssertIsOnBackgroundThread();
13750 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13750
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13750); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13751 MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13751
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13751); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13752
13753 mDirectoryLock = std::exchange(mPendingDirectoryLock, nullptr);
13754
13755 nsresult rv = DirectoryOpen();
13756 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13756)
) {
13757 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13758 mResultCode = rv;
13759 }
13760
13761 mState = State::Finishing;
13762 Finish();
13763
13764 return;
13765 }
13766}
13767
13768void Maintenance::DirectoryLockFailed() {
13769 AssertIsOnBackgroundThread();
13770 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13770
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 13770); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13771 MOZ_ASSERT(!mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13771
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13771); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13772
13773 mPendingDirectoryLock = nullptr;
13774
13775 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13776 mResultCode = NS_ERROR_FAILURE;
13777 }
13778
13779 mState = State::Finishing;
13780 Finish();
13781}
13782
13783void DatabaseMaintenance::Stringify(nsACString& aResult) const {
13784 AssertIsOnBackgroundThread();
13785
13786 aResult.AppendLiteral("Origin:");
13787 aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin));
13788 aResult.Append(kQuotaGenericDelimiter);
13789
13790 aResult.AppendLiteral("PersistenceType:");
13791 aResult.Append(PersistenceTypeToString(mPersistenceType));
13792 aResult.Append(kQuotaGenericDelimiter);
13793
13794 aResult.AppendLiteral("Duration:");
13795 aResult.AppendInt((PR_Now() - mMaintenance->StartTime()) / PR_USEC_PER_MSEC1000L);
13796}
13797
13798nsresult DatabaseMaintenance::Abort() {
13799 AssertIsOnBackgroundThread();
13800
13801 // StopIdleMaintenance and AbortAllOperations may request abort independently
13802 if (!mAborted.compareExchange(false, true)) {
13803 return NS_OK;
13804 }
13805
13806 {
13807 auto shardStorageConnectionLocked = mSharedStorageConnection.Lock();
13808 if (nsCOMPtr<mozIStorageConnection> connection =
13809 *shardStorageConnectionLocked) {
13810 QM_TRY(MOZ_TO_RESULT(connection->Interrupt())){auto tryResult1099 = (ToResult(connection->Interrupt()));
static_assert(std::is_empty_v<typename decltype(tryResult1099
)::ok_type>); if ((__builtin_expect(!!(tryResult1099.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->Interrupt())"
, tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13810, mozilla::dom::quota::Severity::Error); return tryResult1099
.propagateErr(); }}
;
13811 }
13812 }
13813
13814 return NS_OK;
13815}
13816
13817void DatabaseMaintenance::PerformMaintenanceOnDatabase() {
13818 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13818
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 13818); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13819 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13819
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 13819); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13820 MOZ_ASSERT(mMaintenance)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaintenance)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaintenance))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mMaintenance", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance"
")"); do { MOZ_CrashSequence(__null, 13820); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13821 MOZ_ASSERT(mMaintenance->StartTime())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaintenance->StartTime())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaintenance->StartTime()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mMaintenance->StartTime()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13821); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance->StartTime()"
")"); do { MOZ_CrashSequence(__null, 13821); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13822 MOZ_ASSERT(mDirectoryLock)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLock)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLock))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mDirectoryLock"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13822
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")"
); do { MOZ_CrashSequence(__null, 13822); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13823 MOZ_ASSERT(!mDatabasePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabasePath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabasePath.IsEmpty()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabasePath.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13823
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePath.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 13823); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13824 MOZ_ASSERT(!mOriginMetadata.mGroup.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOriginMetadata.mGroup.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mOriginMetadata.mGroup.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mOriginMetadata.mGroup.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13824); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mGroup.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 13824); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13825 MOZ_ASSERT(!mOriginMetadata.mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mOriginMetadata.mOrigin.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mOriginMetadata.mOrigin.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mOriginMetadata.mOrigin.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13825); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mOrigin.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 13825); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13826
13827 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13827)
) {
13828 return;
13829 }
13830
13831 const nsCOMPtr<nsIFile> databaseFile = GetFileForPath(mDatabasePath);
13832 MOZ_ASSERT(databaseFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(databaseFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(databaseFile))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("databaseFile", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13832); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFile"
")"); do { MOZ_CrashSequence(__null, 13832); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13833
13834 QM_TRY_UNWRAP(auto tryResult1100 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1100.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13838, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1100.unwrap();
13835 const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1100 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1100.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13838, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1100.unwrap();
13836 GetStorageConnection(*databaseFile, mDirectoryLockId,auto tryResult1100 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1100.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13838, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1100.unwrap();
13837 TelemetryIdForFile(databaseFile), mMaybeKey),auto tryResult1100 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1100.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13838, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1100.unwrap();
13838 QM_VOID)auto tryResult1100 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1100.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1100.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13838, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1100.unwrap();
;
13839
13840 auto autoClearConnection = MakeScopeExit([&]() {
13841 auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock();
13842 sharedStorageConnectionLocked.ref() = nullptr;
13843 connection->Close();
13844 });
13845
13846 {
13847 auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock();
13848 sharedStorageConnectionLocked.ref() = connection;
13849 }
13850
13851 auto databaseIsOk = false;
13852 QM_TRY(MOZ_TO_RESULT(CheckIntegrity(*connection, &databaseIsOk)), QM_VOID){auto tryResult1101 = (ToResult(CheckIntegrity(*connection, &
databaseIsOk))); static_assert(std::is_empty_v<typename decltype
(tryResult1101)::ok_type>); if ((__builtin_expect(!!(tryResult1101
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1101.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(CheckIntegrity(*connection, &databaseIsOk))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13852
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return ; }
}
;
13853
13854 QM_TRY(OkIf(databaseIsOk), QM_VOID, [](auto result) {{auto tryResult1102 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1102)::ok_type>
); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { auto
tryTempError = tryResult1102.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13858, mozilla::dom::quota::Severity::Error); [](auto result
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13857
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!"
")"); do { MOZ_CrashSequence(__null, 13857); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
13855 // XXX Handle this somehow! Probably need to clear all storage for the{auto tryResult1102 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1102)::ok_type>
); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { auto
tryTempError = tryResult1102.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13858, mozilla::dom::quota::Severity::Error); [](auto result
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13857
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!"
")"); do { MOZ_CrashSequence(__null, 13857); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
13856 // origin. See Bug 1760612.{auto tryResult1102 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1102)::ok_type>
); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { auto
tryTempError = tryResult1102.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13858, mozilla::dom::quota::Severity::Error); [](auto result
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13857
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!"
")"); do { MOZ_CrashSequence(__null, 13857); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
13857 MOZ_ASSERT(false, "Database corruption detected!");{auto tryResult1102 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1102)::ok_type>
); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { auto
tryTempError = tryResult1102.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13858, mozilla::dom::quota::Severity::Error); [](auto result
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13857
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!"
")"); do { MOZ_CrashSequence(__null, 13857); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
13858 }){auto tryResult1102 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1102)::ok_type>
); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { auto
tryTempError = tryResult1102.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13858, mozilla::dom::quota::Severity::Error); [](auto result
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "Database corruption detected!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13857
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Database corruption detected!"
")"); do { MOZ_CrashSequence(__null, 13857); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; }}
;
13859
13860 MaintenanceAction maintenanceAction;
13861 QM_TRY(MOZ_TO_RESULT(DetermineMaintenanceAction(*connection, databaseFile,{auto tryResult1103 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1103)::ok_type>);
if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1103.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13863, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
13862 &maintenanceAction)),{auto tryResult1103 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1103)::ok_type>);
if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1103.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13863, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
13863 QM_VOID){auto tryResult1103 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1103)::ok_type>);
if ((__builtin_expect(!!(tryResult1103.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1103.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13863, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
;
13864
13865 switch (maintenanceAction) {
13866 case MaintenanceAction::Nothing:
13867 break;
13868
13869 case MaintenanceAction::IncrementalVacuum:
13870 IncrementalVacuum(*connection);
13871 break;
13872
13873 case MaintenanceAction::FullVacuum:
13874 FullVacuum(*connection, databaseFile);
13875 break;
13876
13877 default:
13878 MOZ_CRASH("Unknown MaintenanceAction!")do { do { } while (false); MOZ_ReportCrash("" "Unknown MaintenanceAction!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13878
); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown MaintenanceAction!"
")"); do { MOZ_CrashSequence(__null, 13878); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
13879 }
13880}
13881
13882nsresult DatabaseMaintenance::CheckIntegrity(mozIStorageConnection& aConnection,
13883 bool* aOk) {
13884 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13884
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 13884); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13885 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13885
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 13885); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13886 MOZ_ASSERT(aOk)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOk)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(aOk))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("aOk", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13886); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOk" ")");
do { MOZ_CrashSequence(__null, 13886); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13887
13888 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13888)
) {
13889 return NS_ERROR_ABORT;
13890 }
13891
13892 // First do a full integrity_check. Scope statements tightly here because
13893 // later operations require zero live statements.
13894 {
13895 QM_TRY_INSPECT(const auto& stmt,auto tryResult1104 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!!
(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13897, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); } const auto& stmt = tryResult1104.inspect
();
13896 CreateAndExecuteSingleStepStatement(auto tryResult1104 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!!
(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13897, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); } const auto& stmt = tryResult1104.inspect
();
13897 aConnection, "PRAGMA integrity_check(1);"_ns))auto tryResult1104 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!!
(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)"
, tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13897, mozilla::dom::quota::Severity::Error); return tryResult1104
.propagateErr(); } const auto& stmt = tryResult1104.inspect
();
;
13898
13899 QM_TRY_INSPECT(const auto& result, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1105 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetString), (*stmt), 0)); if ((__builtin_expect(
!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetString), (*stmt), 0)"
, tryResult1105.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13900, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const auto& result = tryResult1105.inspect
();
13900 nsString, *stmt, GetString, 0))auto tryResult1105 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetString), (*stmt), 0)); if ((__builtin_expect(
!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetString), (*stmt), 0)"
, tryResult1105.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13900, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const auto& result = tryResult1105.inspect
();
;
13901
13902 QM_TRY(OkIf(result.EqualsLiteral("ok")), NS_OK,{auto tryResult1106 = (OkIf(result.EqualsLiteral("ok"))); static_assert
(std::is_empty_v<typename decltype(tryResult1106)::ok_type
>); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) {
auto tryTempError = tryResult1106.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(result.EqualsLiteral(\"ok\"))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13903
, mozilla::dom::quota::Severity::Error); [&aOk](const auto
) { *aOk = false; }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "OkIf(result.EqualsLiteral(\"ok\"))"
, tryTempError, NS_OK); }}
13903 [&aOk](const auto) { *aOk = false; }){auto tryResult1106 = (OkIf(result.EqualsLiteral("ok"))); static_assert
(std::is_empty_v<typename decltype(tryResult1106)::ok_type
>); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) {
auto tryTempError = tryResult1106.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(result.EqualsLiteral(\"ok\"))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13903
, mozilla::dom::quota::Severity::Error); [&aOk](const auto
) { *aOk = false; }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "OkIf(result.EqualsLiteral(\"ok\"))"
, tryTempError, NS_OK); }}
;
13904 }
13905
13906 // Now enable and check for foreign key constraints.
13907 {
13908 QM_TRY_INSPECT(auto tryResult1109 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13913, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const auto& stmt = tryResult1107.inspect
();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108
;}; }())); if ((__builtin_expect(!!(tryResult1109.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13913, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& stmt = tryResult1107.inspect();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108;}; }())"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13916, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1109.inspect();
13909 const int32_t& foreignKeysWereEnabled,auto tryResult1109 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13913, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const auto& stmt = tryResult1107.inspect
();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108
;}; }())); if ((__builtin_expect(!!(tryResult1109.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13913, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& stmt = tryResult1107.inspect();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108;}; }())"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13916, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1109.inspect();
13910 ([&aConnection]() -> Result<int32_t, nsresult> {auto tryResult1109 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13913, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const auto& stmt = tryResult1107.inspect
();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108
;}; }())); if ((__builtin_expect(!!(tryResult1109.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13913, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& stmt = tryResult1107.inspect();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108;}; }())"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13916, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1109.inspect();
13911 QM_TRY_INSPECT(const auto& stmt,auto tryResult1109 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13913, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const auto& stmt = tryResult1107.inspect
();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108
;}; }())); if ((__builtin_expect(!!(tryResult1109.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13913, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& stmt = tryResult1107.inspect();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108;}; }())"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13916, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1109.inspect();
13912 CreateAndExecuteSingleStepStatement(auto tryResult1109 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13913, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const auto& stmt = tryResult1107.inspect
();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108
;}; }())); if ((__builtin_expect(!!(tryResult1109.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13913, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& stmt = tryResult1107.inspect();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108;}; }())"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13916, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1109.inspect();
13913 aConnection, "PRAGMA foreign_keys;"_ns));auto tryResult1109 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13913, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const auto& stmt = tryResult1107.inspect
();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108
;}; }())); if ((__builtin_expect(!!(tryResult1109.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13913, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& stmt = tryResult1107.inspect();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108;}; }())"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13916, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1109.inspect();
13914
13915 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0));auto tryResult1109 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13913, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const auto& stmt = tryResult1107.inspect
();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108
;}; }())); if ((__builtin_expect(!!(tryResult1109.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13913, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& stmt = tryResult1107.inspect();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108;}; }())"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13916, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1109.inspect();
13916 }()))auto tryResult1109 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13913, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const auto& stmt = tryResult1107.inspect
();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108
;}; }())); if ((__builtin_expect(!!(tryResult1109.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1107 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1107.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1107.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13913, mozilla::dom::quota::Severity::Error); return tryResult1107.propagateErr(); } const auto& stmt = tryResult1107.inspect();; {auto tryResult1108 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13915, mozilla::dom::quota::Severity::Error); } return tryResult1108;}; }())"
, tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13916, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1109.inspect();
;
13917
13918 if (!foreignKeysWereEnabled) {
13919 QM_TRY(MOZ_TO_RESULT({auto tryResult1110 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect
(!!(tryResult1110.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))"
, tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13920, mozilla::dom::quota::Severity::Error); return tryResult1110
.propagateErr(); }}
13920 aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = ON;"_ns))){auto tryResult1110 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect
(!!(tryResult1110.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))"
, tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13920, mozilla::dom::quota::Severity::Error); return tryResult1110
.propagateErr(); }}
;
13921 }
13922
13923 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1111 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13926, mozilla::dom::quota::Severity::Error); return tryResult1111
.propagateErr(); } const bool& foreignKeyError = tryResult1111
.inspect();
13924 CreateAndExecuteSingleStepStatement<auto tryResult1111 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13926, mozilla::dom::quota::Severity::Error); return tryResult1111
.propagateErr(); } const bool& foreignKeyError = tryResult1111
.inspect();
13925 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1111 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13926, mozilla::dom::quota::Severity::Error); return tryResult1111
.propagateErr(); } const bool& foreignKeyError = tryResult1111
.inspect();
13926 aConnection, "PRAGMA foreign_key_check;"_ns))auto tryResult1111 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1111.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13926, mozilla::dom::quota::Severity::Error); return tryResult1111
.propagateErr(); } const bool& foreignKeyError = tryResult1111
.inspect();
;
13927
13928 if (!foreignKeysWereEnabled) {
13929 QM_TRY(MOZ_TO_RESULT({auto tryResult1112 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect
(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13930, mozilla::dom::quota::Severity::Error); return tryResult1112
.propagateErr(); }}
13930 aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))){auto tryResult1112 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1112)::ok_type>); if ((__builtin_expect
(!!(tryResult1112.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, tryResult1112.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13930, mozilla::dom::quota::Severity::Error); return tryResult1112
.propagateErr(); }}
;
13931 }
13932
13933 if (foreignKeyError) {
13934 *aOk = false;
13935 return NS_OK;
13936 }
13937 }
13938
13939 *aOk = true;
13940 return NS_OK;
13941}
13942
13943nsresult DatabaseMaintenance::DetermineMaintenanceAction(
13944 mozIStorageConnection& aConnection, nsIFile* aDatabaseFile,
13945 MaintenanceAction* aMaintenanceAction) {
13946 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13946
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 13946); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13947 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13947
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 13947); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13948 MOZ_ASSERT(aDatabaseFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseFile))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aDatabaseFile",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13948)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile" ")"
); do { MOZ_CrashSequence(__null, 13948); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13949 MOZ_ASSERT(aMaintenanceAction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMaintenanceAction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMaintenanceAction))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aMaintenanceAction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13949
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenanceAction"
")"); do { MOZ_CrashSequence(__null, 13949); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13950
13951 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13951)
) {
13952 return NS_ERROR_ABORT;
13953 }
13954
13955 QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult1113 = (::mozilla::ToResultInvokeMember( (aConnection
), &::mozilla::detail::DerefedType<decltype(aConnection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult1113
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion)"
, tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13956, mozilla::dom::quota::Severity::Error); return tryResult1113
.propagateErr(); } const int32_t& schemaVersion = tryResult1113
.inspect();
13956 MOZ_TO_RESULT_INVOKE_MEMBER(aConnection, GetSchemaVersion))auto tryResult1113 = (::mozilla::ToResultInvokeMember( (aConnection
), &::mozilla::detail::DerefedType<decltype(aConnection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult1113
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion)"
, tryResult1113.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13956, mozilla::dom::quota::Severity::Error); return tryResult1113
.propagateErr(); } const int32_t& schemaVersion = tryResult1113
.inspect();
;
13957
13958 // Don't do anything if the schema version is less than 18; before that
13959 // version no databases had |auto_vacuum == INCREMENTAL| set and we didn't
13960 // track the values needed for the heuristics below.
13961 if (schemaVersion < MakeSchemaVersion(18, 0)) {
13962 *aMaintenanceAction = MaintenanceAction::Nothing;
13963 return NS_OK;
13964 }
13965
13966 // This method shouldn't make any permanent changes to the database, so make
13967 // sure everything gets rolled back when we leave.
13968 mozStorageTransaction transaction(&aConnection,
13969 /* aCommitOnComplete */ false);
13970
13971 QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult1114 = (ToResult(transaction.Start())); static_assert
(std::is_empty_v<typename decltype(tryResult1114)::ok_type
>); if ((__builtin_expect(!!(tryResult1114.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(transaction.Start())"
, tryResult1114.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13971, mozilla::dom::quota::Severity::Error); return tryResult1114
.propagateErr(); }}
13972
13973 // Check to see when we last vacuumed this database.
13974 QM_TRY_INSPECT(const auto& stmt,auto tryResult1115 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13975 CreateAndExecuteSingleStepStatement(auto tryResult1115 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13976 aConnection,auto tryResult1115 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13977 "SELECT last_vacuum_time, last_vacuum_size "auto tryResult1115 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
13978 "FROM database;"_ns))auto tryResult1115 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1115.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13978, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const auto& stmt = tryResult1115.inspect
();
;
13979
13980 QM_TRY_INSPECT(const PRTime& lastVacuumTime,auto tryResult1116 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1116.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 0)"
, tryResult1116.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13981, mozilla::dom::quota::Severity::Error); return tryResult1116
.propagateErr(); } const PRTime& lastVacuumTime = tryResult1116
.inspect();
13981 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 0))auto tryResult1116 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1116.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 0)"
, tryResult1116.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13981, mozilla::dom::quota::Severity::Error); return tryResult1116
.propagateErr(); } const PRTime& lastVacuumTime = tryResult1116
.inspect();
;
13982
13983 QM_TRY_INSPECT(const int64_t& lastVacuumSize,auto tryResult1117 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1117.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 1)"
, tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13984, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const int64_t& lastVacuumSize = tryResult1117
.inspect();
13984 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 1))auto tryResult1117 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1117.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 1)"
, tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13984, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const int64_t& lastVacuumSize = tryResult1117
.inspect();
;
13985
13986 NS_ASSERTION(lastVacuumSize > 0,do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "Thy last vacuum size shall be greater than zero, less than "
"zero shall thy last vacuum size not be. Zero is right out."
, "lastVacuumSize > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13988); MOZ_PretendNoReturn(); } } while (0)
13987 "Thy last vacuum size shall be greater than zero, less than "do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "Thy last vacuum size shall be greater than zero, less than "
"zero shall thy last vacuum size not be. Zero is right out."
, "lastVacuumSize > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13988); MOZ_PretendNoReturn(); } } while (0)
13988 "zero shall thy last vacuum size not be. Zero is right out.")do { if (!(lastVacuumSize > 0)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "Thy last vacuum size shall be greater than zero, less than "
"zero shall thy last vacuum size not be. Zero is right out."
, "lastVacuumSize > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 13988); MOZ_PretendNoReturn(); } } while (0)
;
13989
13990 const PRTime startTime = mMaintenance->StartTime();
13991
13992 // This shouldn't really be possible...
13993 if (NS_WARN_IF(startTime <= lastVacuumTime)NS_warn_if_impl(startTime <= lastVacuumTime, "startTime <= lastVacuumTime"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13993
)
) {
13994 *aMaintenanceAction = MaintenanceAction::Nothing;
13995 return NS_OK;
13996 }
13997
13998 if (startTime - lastVacuumTime < kMinVacuumAge) {
13999 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
14000 return NS_OK;
14001 }
14002
14003 // It has been more than a week since the database was vacuumed, so gather
14004 // statistics on its usage to see if vacuuming is worthwhile.
14005
14006 // Create a temporary copy of the dbstat table to speed up the queries that
14007 // come later.
14008 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult1118 = (ToResult(aConnection.ExecuteSimpleSQL(
"CREATE VIRTUAL TABLE __stats__ USING dbstat;" "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult1118
)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE __stats__ USING dbstat;\" \"CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;\"_ns))"
, tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14010, mozilla::dom::quota::Severity::Error); return tryResult1118
.propagateErr(); }}
14009 "CREATE VIRTUAL TABLE __stats__ USING dbstat;"{auto tryResult1118 = (ToResult(aConnection.ExecuteSimpleSQL(
"CREATE VIRTUAL TABLE __stats__ USING dbstat;" "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult1118
)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE __stats__ USING dbstat;\" \"CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;\"_ns))"
, tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14010, mozilla::dom::quota::Severity::Error); return tryResult1118
.propagateErr(); }}
14010 "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns))){auto tryResult1118 = (ToResult(aConnection.ExecuteSimpleSQL(
"CREATE VIRTUAL TABLE __stats__ USING dbstat;" "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult1118
)::ok_type>); if ((__builtin_expect(!!(tryResult1118.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE __stats__ USING dbstat;\" \"CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;\"_ns))"
, tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14010, mozilla::dom::quota::Severity::Error); return tryResult1118
.propagateErr(); }}
;
14011
14012 { // Calculate the percentage of the database pages that are not in
14013 // contiguous order.
14014 QM_TRY_INSPECT(auto tryResult1119 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1119.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14022, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const auto& stmt = tryResult1119.inspect
();
14015 const auto& stmt,auto tryResult1119 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1119.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14022, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const auto& stmt = tryResult1119.inspect
();
14016 CreateAndExecuteSingleStepStatement(auto tryResult1119 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1119.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14022, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const auto& stmt = tryResult1119.inspect
();
14017 aConnection,auto tryResult1119 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1119.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14022, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const auto& stmt = tryResult1119.inspect
();
14018 "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "auto tryResult1119 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1119.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14022, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const auto& stmt = tryResult1119.inspect
();
14019 "COUNT(*) "auto tryResult1119 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1119.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14022, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const auto& stmt = tryResult1119.inspect
();
14020 "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "auto tryResult1119 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1119.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14022, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const auto& stmt = tryResult1119.inspect
();
14021 "WHERE __ts1__.name = __ts2__.name "auto tryResult1119 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1119.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14022, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const auto& stmt = tryResult1119.inspect
();
14022 "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns))auto tryResult1119 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "
"COUNT(*) " "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "
"WHERE __ts1__.name = __ts2__.name " "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns
)); if ((__builtin_expect(!!(tryResult1119.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / \" \"COUNT(*) \" \"FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ \" \"WHERE __ts1__.name = __ts2__.name \" \"AND __ts1__.rowid = __ts2__.rowid + 1;\"_ns)"
, tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14022, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const auto& stmt = tryResult1119.inspect
();
;
14023
14024 QM_TRY_INSPECT(const int32_t& percentUnordered,auto tryResult1120 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1120.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14025, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const int32_t& percentUnordered = tryResult1120
.inspect();
14025 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1120 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1120.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14025, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const int32_t& percentUnordered = tryResult1120
.inspect();
;
14026
14027 MOZ_ASSERT(percentUnordered >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(percentUnordered >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(percentUnordered >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnordered >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14027
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered >= 0"
")"); do { MOZ_CrashSequence(__null, 14027); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14028 MOZ_ASSERT(percentUnordered <= 100)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(percentUnordered <= 100)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(percentUnordered <= 100))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnordered <= 100"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14028
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered <= 100"
")"); do { MOZ_CrashSequence(__null, 14028); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14029
14030 if (percentUnordered >= kPercentUnorderedThreshold) {
14031 *aMaintenanceAction = MaintenanceAction::FullVacuum;
14032 return NS_OK;
14033 }
14034 }
14035
14036 // Don't try a full vacuum if the file hasn't grown by 10%.
14037 QM_TRY_INSPECT(const int64_t& currentFileSize,auto tryResult1121 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1121.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14038, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& currentFileSize = tryResult1121
.inspect();
14038 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize))auto tryResult1121 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1121.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1121.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14038, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int64_t& currentFileSize = tryResult1121
.inspect();
;
14039
14040 if (currentFileSize <= lastVacuumSize ||
14041 (((currentFileSize - lastVacuumSize) * 100 / currentFileSize) <
14042 kPercentFileSizeGrowthThreshold)) {
14043 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
14044 return NS_OK;
14045 }
14046
14047 { // See if there are any free pages that we can reclaim.
14048 QM_TRY_INSPECT(const auto& stmt,auto tryResult1122 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1122.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14050, mozilla::dom::quota::Severity::Error); return tryResult1122
.propagateErr(); } const auto& stmt = tryResult1122.inspect
();
14049 CreateAndExecuteSingleStepStatement(auto tryResult1122 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1122.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14050, mozilla::dom::quota::Severity::Error); return tryResult1122
.propagateErr(); } const auto& stmt = tryResult1122.inspect
();
14050 aConnection, "PRAGMA freelist_count;"_ns))auto tryResult1122 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1122
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1122.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14050, mozilla::dom::quota::Severity::Error); return tryResult1122
.propagateErr(); } const auto& stmt = tryResult1122.inspect
();
;
14051
14052 QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult1123 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1123.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1123.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14053, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int32_t& freelistCount = tryResult1123
.inspect();
14053 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1123 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1123.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1123.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14053, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int32_t& freelistCount = tryResult1123
.inspect();
;
14054
14055 MOZ_ASSERT(freelistCount >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(freelistCount >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(freelistCount >= 0))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("freelistCount >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14055
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0"
")"); do { MOZ_CrashSequence(__null, 14055); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14056
14057 // If we have too many free pages then we should try an incremental
14058 // vacuum. If that causes too much fragmentation then we'll try a full
14059 // vacuum later.
14060 if (freelistCount > kMaxFreelistThreshold) {
14061 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
14062 return NS_OK;
14063 }
14064 }
14065
14066 { // Calculate the percentage of unused bytes on pages in the database.
14067 QM_TRY_INSPECT(auto tryResult1124 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14071, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();
14068 const auto& stmt,auto tryResult1124 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14071, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();
14069 CreateAndExecuteSingleStepStatement(auto tryResult1124 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14071, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();
14070 aConnection,auto tryResult1124 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14071, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();
14071 "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns))auto tryResult1124 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14071, mozilla::dom::quota::Severity::Error); return tryResult1124
.propagateErr(); } const auto& stmt = tryResult1124.inspect
();
;
14072
14073 QM_TRY_INSPECT(const int32_t& percentUnused,auto tryResult1125 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1125.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14074, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int32_t& percentUnused = tryResult1125
.inspect();
14074 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1125 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1125.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14074, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int32_t& percentUnused = tryResult1125
.inspect();
;
14075
14076 MOZ_ASSERT(percentUnused >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(percentUnused >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(percentUnused >= 0))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("percentUnused >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14076
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused >= 0"
")"); do { MOZ_CrashSequence(__null, 14076); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14077 MOZ_ASSERT(percentUnused <= 100)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(percentUnused <= 100)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(percentUnused <= 100))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("percentUnused <= 100"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14077
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused <= 100"
")"); do { MOZ_CrashSequence(__null, 14077); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14078
14079 *aMaintenanceAction = percentUnused >= kPercentUnusedThreshold
14080 ? MaintenanceAction::FullVacuum
14081 : MaintenanceAction::IncrementalVacuum;
14082 }
14083
14084 return NS_OK;
14085}
14086
14087void DatabaseMaintenance::IncrementalVacuum(
14088 mozIStorageConnection& aConnection) {
14089 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14089
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 14089); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14090 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14090
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14090); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14091
14092 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14092)
) {
14093 return;
14094 }
14095
14096 nsresult rv = aConnection.ExecuteSimpleSQL("PRAGMA incremental_vacuum;"_ns);
14097 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14097)
) {
14098 return;
14099 }
14100}
14101
14102void DatabaseMaintenance::FullVacuum(mozIStorageConnection& aConnection,
14103 nsIFile* aDatabaseFile) {
14104 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14104
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 14104); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14105 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14105
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14105); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14106 MOZ_ASSERT(aDatabaseFile)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseFile))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("aDatabaseFile",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14106)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile" ")"
); do { MOZ_CrashSequence(__null, 14106); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14107
14108 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14108)
) {
14109 return;
14110 }
14111
14112 QM_WARNONLY_TRY(([&]() -> Result<Ok, nsresult> {{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14113 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL("VACUUM;"_ns)));{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14114
14115 const PRTime vacuumTime = PR_Now();{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14116 MOZ_ASSERT(vacuumTime > 0);{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14117
14118 QM_TRY_INSPECT(const int64_t& fileSize,{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14119 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize));{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14120
14121 MOZ_ASSERT(fileSize > 0);{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14122
14123 // The parameter names are not used, parameters are bound by index only{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14124 // locally in the same function.{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14125 QM_TRY_INSPECT(const auto& stmt, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14126 nsCOMPtr<mozIStorageStatement>,{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14127 aConnection, CreateStatement,{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14128 "UPDATE database "{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14129 "SET last_vacuum_time = :time"{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14130 ", last_vacuum_size = :size;"_ns));{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14131
14132 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(0, vacuumTime)));{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14133
14134 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(1, fileSize)));{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14135
14136 QM_TRY(MOZ_TO_RESULT(stmt->Execute()));{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14137 return Ok{};{auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
14138 }())){auto tryResult1132 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14113, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(vacuumTime > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("vacuumTime > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14116
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { MOZ_CrashSequence(__null, 14116); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1127.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14119, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); } const int64_t& fileSize = tryResult1127
.inspect();; do { static_assert( mozilla::detail::AssertionConditionType
<decltype(fileSize > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("fileSize > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14121
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")"
); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto tryResult1128
= (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement
> >( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(aConnection)>::CreateStatement), (aConnection
), "UPDATE database " "SET last_vacuum_time = :time" ", last_vacuum_size = :size;"_ns
)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)"
, tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14130, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); } const auto& stmt = tryResult1128.inspect
();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1129.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14132, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1130
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14134, mozilla::dom::quota::Severity::Error); return tryResult1130
.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14136, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1132)::ok_type>); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1126 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1126)::ok_type>); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14113, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); }}; const PRTime vacuumTime = PR_Now(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(vacuumTime > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(vacuumTime > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"vacuumTime > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14116); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { MOZ_CrashSequence(__null, 14116); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1127 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1127.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14119, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); } const int64_t& fileSize = tryResult1127.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileSize > 0)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileSize > 0\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14121); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { MOZ_CrashSequence(__null, 14121); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1128 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE database \" \"SET last_vacuum_time = :time\" \", last_vacuum_size = :size;\"_ns)); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE database \\\" \\\"SET last_vacuum_time = :time\\\" \\\", last_vacuum_size = :size;\\\"_ns)\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14130, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } const auto& stmt = tryResult1128.inspect();; {auto tryResult1129 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14132, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; {auto tryResult1130 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14134, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; {auto tryResult1131 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14136, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; return Ok{}; }())"
, tryResult1132.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14138, mozilla::dom::quota::Severity::Warning); }}
;
14139}
14140
14141void DatabaseMaintenance::RunOnOwningThread() {
14142 AssertIsOnBackgroundThread();
14143
14144 DropDirectoryLock(mDirectoryLock);
14145
14146 if (mCompleteCallback) {
14147 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(mCompleteCallback.forget()))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(mCompleteCallback.forget()))), 1)
))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(mCompleteCallback.forget()))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14147
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(mCompleteCallback.forget()))"
")"); do { MOZ_CrashSequence(__null, 14147); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14148 }
14149
14150 mMaintenance->UnregisterDatabaseMaintenance(this);
14151}
14152
14153void DatabaseMaintenance::RunOnConnectionThread() {
14154 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14154
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 14154); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14155 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14155
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14155); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14156
14157 PerformMaintenanceOnDatabase();
14158
14159 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14160
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 14160); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
14160 mMaintenance->BackgroundThread()->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14160
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 14160); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14161}
14162
14163NS_IMETHODIMPnsresult
14164DatabaseMaintenance::Run() {
14165 if (IsOnBackgroundThread()) {
14166 RunOnOwningThread();
14167 } else {
14168 RunOnConnectionThread();
14169 }
14170
14171 return NS_OK;
14172}
14173
14174/*******************************************************************************
14175 * Local class implementations
14176 ******************************************************************************/
14177
14178// static
14179nsAutoCString DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
14180 const Maybe<SerializedKeyRange>& aOptionalKeyRange,
14181 const nsACString& aKeyColumnName) {
14182 return aOptionalKeyRange.isSome()
14183 ? GetBindingClauseForKeyRange(aOptionalKeyRange.ref(),
14184 aKeyColumnName)
14185 : nsAutoCString{};
14186}
14187
14188// static
14189nsAutoCString DatabaseOperationBase::GetBindingClauseForKeyRange(
14190 const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName) {
14191 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14191
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14191); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14192 MOZ_ASSERT(!aKeyColumnName.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aKeyColumnName.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aKeyColumnName.IsEmpty())))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aKeyColumnName.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14192
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aKeyColumnName.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 14192); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14193
14194 constexpr auto andStr = " AND "_ns;
14195 constexpr auto spacecolon = " :"_ns;
14196
14197 nsAutoCString result;
14198 if (aKeyRange.isOnly()) {
14199 // Both keys equal.
14200 result =
14201 andStr + aKeyColumnName + " ="_ns + spacecolon + kStmtParamNameLowerKey;
14202 } else {
14203 if (!aKeyRange.lower().IsUnset()) {
14204 // Lower key is set.
14205 result.Append(andStr + aKeyColumnName);
14206 result.AppendLiteral(" >");
14207 if (!aKeyRange.lowerOpen()) {
14208 result.AppendLiteral("=");
14209 }
14210 result.Append(spacecolon + kStmtParamNameLowerKey);
14211 }
14212
14213 if (!aKeyRange.upper().IsUnset()) {
14214 // Upper key is set.
14215 result.Append(andStr + aKeyColumnName);
14216 result.AppendLiteral(" <");
14217 if (!aKeyRange.upperOpen()) {
14218 result.AppendLiteral("=");
14219 }
14220 result.Append(spacecolon + kStmtParamNameUpperKey);
14221 }
14222 }
14223
14224 MOZ_ASSERT(!result.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!result.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!result.IsEmpty()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!result.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14224
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!result.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 14224); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14225
14226 return result;
14227}
14228
14229// static
14230uint64_t DatabaseOperationBase::ReinterpretDoubleAsUInt64(double aDouble) {
14231 // This is a duplicate of the js engine's byte munging in StructuredClone.cpp
14232 return BitwiseCast<uint64_t>(aDouble);
14233}
14234
14235// static
14236template <typename KeyTransformation>
14237nsresult DatabaseOperationBase::MaybeBindKeyToStatement(
14238 const Key& aKey, mozIStorageStatement* const aStatement,
14239 const nsACString& aParameterName,
14240 const KeyTransformation& aKeyTransformation) {
14241 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14241
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14241); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14242 MOZ_ASSERT(aStatement)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aStatement)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aStatement))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aStatement", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14242); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement"
")"); do { MOZ_CrashSequence(__null, 14242); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14243
14244 if (!aKey.IsUnset()) {
14245 // XXX This case distinction could be avoided if QM_TRY_INSPECT would also
14246 // work with a function not returning a Result<V, E> but simply a V (which
14247 // is const Key& here) and then assuming it is always a success. Or the
14248 // transformation could be changed to return Result<const V&, void> but I
14249 // don't think that Result supports that at the moment.
14250 if constexpr (std::is_reference_v<
14251 std::invoke_result_t<KeyTransformation, Key>>) {
14252 QM_TRY(MOZ_TO_RESULT(aKeyTransformation(aKey).BindToStatement({auto tryResult1133 = (ToResult(aKeyTransformation(aKey).BindToStatement
( aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1133)::ok_type>); if ((__builtin_expect
(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))"
, tryResult1133.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14253, mozilla::dom::quota::Severity::Error); return tryResult1133
.propagateErr(); }}
14253 aStatement, aParameterName))){auto tryResult1133 = (ToResult(aKeyTransformation(aKey).BindToStatement
( aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1133)::ok_type>); if ((__builtin_expect
(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))"
, tryResult1133.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14253, mozilla::dom::quota::Severity::Error); return tryResult1133
.propagateErr(); }}
;
14254 } else {
14255 QM_TRY_INSPECT(const auto& transformedKey, aKeyTransformation(aKey))auto tryResult1134 = (aKeyTransformation(aKey)); if ((__builtin_expect
(!!(tryResult1134.isErr()), 0))) { mozilla::dom::quota::HandleError
("aKeyTransformation(aKey)", tryResult1134.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14255, mozilla::dom::quota::Severity::Error); return tryResult1134
.propagateErr(); } const auto& transformedKey = tryResult1134
.inspect();
;
14256 QM_TRY(MOZ_TO_RESULT({auto tryResult1135 = (ToResult(transformedKey.BindToStatement
(aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1135)::ok_type>); if ((__builtin_expect
(!!(tryResult1135.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))"
, tryResult1135.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14257, mozilla::dom::quota::Severity::Error); return tryResult1135
.propagateErr(); }}
14257 transformedKey.BindToStatement(aStatement, aParameterName))){auto tryResult1135 = (ToResult(transformedKey.BindToStatement
(aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1135)::ok_type>); if ((__builtin_expect
(!!(tryResult1135.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))"
, tryResult1135.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14257, mozilla::dom::quota::Severity::Error); return tryResult1135
.propagateErr(); }}
;
14258 }
14259 }
14260
14261 return NS_OK;
14262}
14263
14264// static
14265template <typename KeyTransformation>
14266nsresult DatabaseOperationBase::BindTransformedKeyRangeToStatement(
14267 const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement,
14268 const KeyTransformation& aKeyTransformation) {
14269 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14269
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14269); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14270 MOZ_ASSERT(aStatement)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aStatement)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aStatement))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aStatement", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14270); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement"
")"); do { MOZ_CrashSequence(__null, 14270); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14271
14272 QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement,{auto tryResult1136 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1136
)::ok_type>); if ((__builtin_expect(!!(tryResult1136.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1136.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14274, mozilla::dom::quota::Severity::Error); return tryResult1136
.propagateErr(); }}
14273 kStmtParamNameLowerKey,{auto tryResult1136 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1136
)::ok_type>); if ((__builtin_expect(!!(tryResult1136.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1136.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14274, mozilla::dom::quota::Severity::Error); return tryResult1136
.propagateErr(); }}
14274 aKeyTransformation))){auto tryResult1136 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1136
)::ok_type>); if ((__builtin_expect(!!(tryResult1136.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1136.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14274, mozilla::dom::quota::Severity::Error); return tryResult1136
.propagateErr(); }}
;
14275
14276 if (aKeyRange.isOnly()) {
14277 return NS_OK;
14278 }
14279
14280 QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement,{auto tryResult1137 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1137
)::ok_type>); if ((__builtin_expect(!!(tryResult1137.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1137.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14282, mozilla::dom::quota::Severity::Error); return tryResult1137
.propagateErr(); }}
14281 kStmtParamNameUpperKey,{auto tryResult1137 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1137
)::ok_type>); if ((__builtin_expect(!!(tryResult1137.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1137.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14282, mozilla::dom::quota::Severity::Error); return tryResult1137
.propagateErr(); }}
14282 aKeyTransformation))){auto tryResult1137 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1137
)::ok_type>); if ((__builtin_expect(!!(tryResult1137.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1137.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14282, mozilla::dom::quota::Severity::Error); return tryResult1137
.propagateErr(); }}
;
14283
14284 return NS_OK;
14285}
14286
14287// static
14288nsresult DatabaseOperationBase::BindKeyRangeToStatement(
14289 const SerializedKeyRange& aKeyRange,
14290 mozIStorageStatement* const aStatement) {
14291 return BindTransformedKeyRangeToStatement(
14292 aKeyRange, aStatement, [](const Key& key) -> const auto& { return key; });
14293}
14294
14295// static
14296nsresult DatabaseOperationBase::BindKeyRangeToStatement(
14297 const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement,
14298 const nsCString& aLocale) {
14299 MOZ_ASSERT(!aLocale.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aLocale.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aLocale.IsEmpty()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!aLocale.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14299
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aLocale.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 14299); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14300
14301 return BindTransformedKeyRangeToStatement(
14302 aKeyRange, aStatement,
14303 [&aLocale](const Key& key) { return key.ToLocaleAwareKey(aLocale); });
14304}
14305
14306// static
14307void CommonOpenOpHelperBase::AppendConditionClause(
14308 const nsACString& aColumnName, const nsACString& aStatementParameterName,
14309 bool aLessThan, bool aEquals, nsCString& aResult) {
14310 aResult += " AND "_ns + aColumnName + " "_ns;
14311
14312 if (aLessThan) {
14313 aResult.Append('<');
14314 } else {
14315 aResult.Append('>');
14316 }
14317
14318 if (aEquals) {
14319 aResult.Append('=');
14320 }
14321
14322 aResult += " :"_ns + aStatementParameterName;
14323}
14324
14325// static
14326Result<IndexDataValuesAutoArray, nsresult>
14327DatabaseOperationBase::IndexDataValuesFromUpdateInfos(
14328 const nsTArray<IndexUpdateInfo>& aUpdateInfos,
14329 const UniqueIndexTable& aUniqueIndexTable) {
14330 MOZ_ASSERT_IF(!aUpdateInfos.IsEmpty(), aUniqueIndexTable.Count())do { if (!aUpdateInfos.IsEmpty()) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(aUniqueIndexTable
.Count())>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(aUniqueIndexTable.Count()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aUniqueIndexTable.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14330
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aUniqueIndexTable.Count()"
")"); do { MOZ_CrashSequence(__null, 14330); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14331
14332 AUTO_PROFILER_LABEL("DatabaseOperationBase::IndexDataValuesFromUpdateInfos",mozilla::AutoProfilerLabel raiiObject14333( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos"
, nullptr, JS::ProfilingCategoryPair::DOM)
14333 DOM)mozilla::AutoProfilerLabel raiiObject14333( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14334
14335 // XXX We could use TransformIntoNewArray here if it allowed to specify that
14336 // an AutoArray should be created.
14337 IndexDataValuesAutoArray indexValues;
14338
14339 if (NS_WARN_IF(!indexValues.SetCapacity(aUpdateInfos.Length(), fallible))NS_warn_if_impl(!indexValues.SetCapacity(aUpdateInfos.Length(
), fallible), "!indexValues.SetCapacity(aUpdateInfos.Length(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14339
)
) {
14340 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14340, "UnknownErr")
;
14341 return Err(NS_ERROR_OUT_OF_MEMORY);
14342 }
14343
14344 std::transform(aUpdateInfos.cbegin(), aUpdateInfos.cend(),
14345 MakeBackInserter(indexValues),
14346 [&aUniqueIndexTable](const IndexUpdateInfo& updateInfo) {
14347 const IndexOrObjectStoreId& indexId = updateInfo.indexId();
14348
14349 bool unique = false;
14350 MOZ_ALWAYS_TRUE(aUniqueIndexTable.Get(indexId, &unique))do { if ((__builtin_expect(!!(aUniqueIndexTable.Get(indexId, &
unique)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "aUniqueIndexTable.Get(indexId, &unique)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14350); AnnotateMozCrashReason("MOZ_CRASH(" "aUniqueIndexTable.Get(indexId, &unique)"
")"); do { MOZ_CrashSequence(__null, 14350); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14351
14352 return IndexDataValue{indexId, unique, updateInfo.value(),
14353 updateInfo.localizedValue()};
14354 });
14355 indexValues.Sort();
14356
14357 return indexValues;
14358}
14359
14360// static
14361nsresult DatabaseOperationBase::InsertIndexTableRows(
14362 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14363 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) {
14364 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14364); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 14364); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14365 aConnection->AssertIsOnConnectionThread();
14366 MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14366
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 14366); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14367
14368 AUTO_PROFILER_LABEL("DatabaseOperationBase::InsertIndexTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14368( "DatabaseOperationBase::InsertIndexTableRows"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14369
14370 const uint32_t count = aIndexValues.Length();
14371 if (!count) {
14372 return NS_OK;
14373 }
14374
14375 auto insertUniqueStmt = DatabaseConnection::LazyStatement{
14376 *aConnection,
14377 "INSERT INTO unique_index_data "
14378 "(index_id, value, object_store_id, "
14379 "object_data_key, value_locale) "
14380 "VALUES (:"_ns +
14381 kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns +
14382 kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameObjectDataKey +
14383 ", :"_ns + kStmtParamNameValueLocale + ");"_ns};
14384 auto insertStmt = DatabaseConnection::LazyStatement{
14385 *aConnection,
14386 "INSERT OR IGNORE INTO index_data "
14387 "(index_id, value, object_data_key, "
14388 "object_store_id, value_locale) "
14389 "VALUES (:"_ns +
14390 kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns +
14391 kStmtParamNameObjectDataKey + ", :"_ns + kStmtParamNameObjectStoreId +
14392 ", :"_ns + kStmtParamNameValueLocale + ");"_ns};
14393
14394 for (uint32_t index = 0; index < count; index++) {
14395 const IndexDataValue& info = aIndexValues[index];
14396
14397 auto& stmt = info.mUnique ? insertUniqueStmt : insertStmt;
14398
14399 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1138 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1138.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1138.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14399, mozilla::dom::quota::Severity::Error); return tryResult1138
.propagateErr(); } const auto& borrowedStmt = tryResult1138
.inspect();
;
14400
14401 QM_TRY(MOZ_TO_RESULT({auto tryResult1139 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, info.mIndexId))); static_assert(std::
is_empty_v<typename decltype(tryResult1139)::ok_type>);
if ((__builtin_expect(!!(tryResult1139.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))"
, tryResult1139.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14402, mozilla::dom::quota::Severity::Error); return tryResult1139
.propagateErr(); }}
14402 borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))){auto tryResult1139 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, info.mIndexId))); static_assert(std::
is_empty_v<typename decltype(tryResult1139)::ok_type>);
if ((__builtin_expect(!!(tryResult1139.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))"
, tryResult1139.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14402, mozilla::dom::quota::Severity::Error); return tryResult1139
.propagateErr(); }}
;
14403 QM_TRY(MOZ_TO_RESULT({auto tryResult1140 = (ToResult(info.mPosition.BindToStatement
(&*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1140)::ok_type>
); if ((__builtin_expect(!!(tryResult1140.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))"
, tryResult1140.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14404, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14404 info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))){auto tryResult1140 = (ToResult(info.mPosition.BindToStatement
(&*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1140)::ok_type>
); if ((__builtin_expect(!!(tryResult1140.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))"
, tryResult1140.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14404, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
;
14405 QM_TRY(MOZ_TO_RESULT(info.mLocaleAwarePosition.BindToStatement({auto tryResult1141 = (ToResult(info.mLocaleAwarePosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert
(std::is_empty_v<typename decltype(tryResult1141)::ok_type
>); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))"
, tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14406, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); }}
14406 &*borrowedStmt, kStmtParamNameValueLocale))){auto tryResult1141 = (ToResult(info.mLocaleAwarePosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert
(std::is_empty_v<typename decltype(tryResult1141)::ok_type
>); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))"
, tryResult1141.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14406, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); }}
;
14407 QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName({auto tryResult1142 = (ToResult(borrowedStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1142)::ok_type
>); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1142.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14408, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14408 kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1142 = (ToResult(borrowedStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1142)::ok_type
>); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1142.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14408, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
;
14409 QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1143 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1143)::ok_type
>); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1143.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1143
.propagateErr(); }}
14410 &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1143 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1143)::ok_type
>); if ((__builtin_expect(!!(tryResult1143.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1143.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1143
.propagateErr(); }}
;
14411
14412 // QM_OR_ELSE_WARN_IF is not used here since we just want to log the
14413 // collision and not spam the reports.
14414 QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14415 // Expression.{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14416 MOZ_TO_RESULT(borrowedStmt->Execute()),{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14417 // Predicate.{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14418 ([&info, index, &aIndexValues](nsresult rv) {{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14419 if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) {{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14420 // If we're inserting multiple entries for the same unique{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14421 // index, then we might have failed to insert due to{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14422 // colliding with another entry for the same index in which{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14423 // case we should ignore it.{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14424 for (int32_t index2 = int32_t(index) - 1;{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14425 index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId;{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14426 --index2) {{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14427 if (info.mPosition == aIndexValues[index2].mPosition) {{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14428 // We found a key with the same value for the same{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14429 // index. So we must have had a collision with a value{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14430 // we just inserted.{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14431 return true;{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14432 }{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14433 }{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14434 }{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14435
14436 return false;{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14437 }),{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14438 // Fallback.{auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14439 ErrToDefaultOk<>)){auto tryResult1144 = (mozilla::dom::quota::OrElseIf( (ToResult
(borrowedStmt->Execute())), [&](const auto& firstRes
) { bool res = ([&info, index, &aIndexValues](nsresult
rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.
mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >=
0 && aIndexValues[index2].mIndexId == info.mIndexId;
--index2) { if (info.mPosition == aIndexValues[index2].mPosition
) { return true; } } } return false; })(firstRes); mozilla::dom
::quota::HandleError("\"ToResult(borrowedStmt->Execute())\""
, firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1144)::ok_type>); if ((__builtin_expect(!!(tryResult1144
.isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(borrowedStmt->Execute())), [&](const auto& firstRes) { bool res = ([&info, index, &aIndexValues](nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) { for (int32_t index2 = int32_t(index) - 1; index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId; --index2) { if (info.mPosition == aIndexValues[index2].mPosition) { return true; } } } return false; })(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(borrowedStmt->Execute())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14439, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1144.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
;
14440 }
14441
14442 return NS_OK;
14443}
14444
14445// static
14446nsresult DatabaseOperationBase::DeleteIndexDataTableRows(
14447 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
14448 const nsTArray<IndexDataValue>& aIndexValues) {
14449 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14449); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 14449); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14450 aConnection->AssertIsOnConnectionThread();
14451 MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14451
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 14451); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14452
14453 AUTO_PROFILER_LABEL("DatabaseOperationBase::DeleteIndexDataTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14453( "DatabaseOperationBase::DeleteIndexDataTableRows"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14454
14455 const uint32_t count = aIndexValues.Length();
14456 if (!count) {
14457 return NS_OK;
14458 }
14459
14460 auto deleteUniqueStmt = DatabaseConnection::LazyStatement{
14461 *aConnection, "DELETE FROM unique_index_data WHERE index_id = :"_ns +
14462 kStmtParamNameIndexId + " AND value = :"_ns +
14463 kStmtParamNameValue + ";"_ns};
14464 auto deleteStmt = DatabaseConnection::LazyStatement{
14465 *aConnection, "DELETE FROM index_data WHERE index_id = :"_ns +
14466 kStmtParamNameIndexId + " AND value = :"_ns +
14467 kStmtParamNameValue + " AND object_data_key = :"_ns +
14468 kStmtParamNameObjectDataKey + ";"_ns};
14469
14470 for (uint32_t index = 0; index < count; index++) {
14471 const IndexDataValue& indexValue = aIndexValues[index];
14472
14473 auto& stmt = indexValue.mUnique ? deleteUniqueStmt : deleteStmt;
14474
14475 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1145 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14475, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); } const auto& borrowedStmt = tryResult1145
.inspect();
;
14476
14477 QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1146 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, indexValue.mIndexId))); static_assert
(std::is_empty_v<typename decltype(tryResult1146)::ok_type
>); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); }}
14478 indexValue.mIndexId))){auto tryResult1146 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, indexValue.mIndexId))); static_assert
(std::is_empty_v<typename decltype(tryResult1146)::ok_type
>); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))"
, tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14478, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); }}
;
14479
14480 QM_TRY(MOZ_TO_RESULT(indexValue.mPosition.BindToStatement({auto tryResult1147 = (ToResult(indexValue.mPosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1147)::ok_type>
); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); }}
14481 &*borrowedStmt, kStmtParamNameValue))){auto tryResult1147 = (ToResult(indexValue.mPosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1147)::ok_type>
); if ((__builtin_expect(!!(tryResult1147.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))"
, tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14481, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); }}
;
14482
14483 if (!indexValue.mUnique) {
14484 QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1148 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1148.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14485, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}
14485 &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1148 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1148)::ok_type
>); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1148.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14485, mozilla::dom::quota::Severity::Error); return tryResult1148
.propagateErr(); }}
;
14486 }
14487
14488 QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1149 = (ToResult(borrowedStmt->Execute()));
static_assert(std::is_empty_v<typename decltype(tryResult1149
)::ok_type>); if ((__builtin_expect(!!(tryResult1149.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())"
, tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14488, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); }}
;
14489 }
14490
14491 return NS_OK;
14492}
14493
14494// static
14495nsresult DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes(
14496 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14497 const Maybe<SerializedKeyRange>& aKeyRange) {
14498 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 14498); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14499 aConnection->AssertIsOnConnectionThread();
14500 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14500
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 14500); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14501
14502#ifdef DEBUG1
14503 {
14504 QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult1150 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { auto
tryTempError = tryResult1150.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14506, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14506); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { MOZ_CrashSequence(__null, 14506); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)", tryTempError
, Err(tryTempError)); } const bool& hasIndexes = tryResult1150
.inspect();
14505 ObjectStoreHasIndexes(*aConnection, aObjectStoreId),auto tryResult1150 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { auto
tryTempError = tryResult1150.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14506, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14506); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { MOZ_CrashSequence(__null, 14506); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)", tryTempError
, Err(tryTempError)); } const bool& hasIndexes = tryResult1150
.inspect();
14506 QM_PROPAGATE, [](const auto&) { MOZ_ASSERT(false); })auto tryResult1150 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { auto
tryTempError = tryResult1150.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14506, mozilla::dom::quota::Severity::Error); [](const auto
&) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14506); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { MOZ_CrashSequence(__null, 14506); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return mozilla::dom::quota::HandleCustomRetVal(func
, "ObjectStoreHasIndexes(*aConnection, aObjectStoreId)", tryTempError
, Err(tryTempError)); } const bool& hasIndexes = tryResult1150
.inspect();
;
14507 MOZ_ASSERT(hasIndexes,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(hasIndexes)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14508
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") ("
"Don't use this slow method if there are no indexes!" ")"); do
{ MOZ_CrashSequence(__null, 14508); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
14508 "Don't use this slow method if there are no indexes!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(hasIndexes)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14508
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") ("
"Don't use this slow method if there are no indexes!" ")"); do
{ MOZ_CrashSequence(__null, 14508); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
;
14509 }
14510#endif
14511
14512 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject14513( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes"
, nullptr, JS::ProfilingCategoryPair::DOM)
14513 "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes", DOM)mozilla::AutoProfilerLabel raiiObject14513( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14514
14515 const bool singleRowOnly = aKeyRange.isSome() && aKeyRange.ref().isOnly();
14516
14517 const auto keyRangeClause =
14518 MaybeGetBindingClauseForKeyRange(aKeyRange, kColumnNameKey);
14519
14520 Key objectStoreKey;
14521 QM_TRY_INSPECT(auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14522 const auto& selectStmt,auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14523 ([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange,auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14524 &keyRangeClause]()auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14525 -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> {auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14526 if (singleRowOnly) {auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14527 QM_TRY_UNWRAP(auto selectStmt,auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14528 aConnection->BorrowCachedStatement(auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14529 "SELECT index_data_values "auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14530 "FROM object_data "auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14531 "WHERE object_store_id = :"_ns +auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14532 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14533 kStmtParamNameKey + ";"_ns));auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14534
14535 objectStoreKey = aKeyRange.ref().lower();auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14536
14537 QM_TRY(MOZ_TO_RESULT(auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14538 objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey)));auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14539
14540 return selectStmt;auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14541 }auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14542
14543 QM_TRY_UNWRAP(auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14544 auto selectStmt,auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14545 aConnection->BorrowCachedStatement(auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14546 "SELECT index_data_values, "_ns + kColumnNameKey +auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14547 " FROM object_data WHERE object_store_id = :"_ns +auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14548 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns));auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14549
14550 if (aKeyRange.isSome()) {auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14551 QM_TRY(MOZ_TO_RESULT(auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14552 BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt)));auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14553 }auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14554
14555 return selectStmt;auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
14556 }()))auto tryResult1155 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1151 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14533, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14538, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; return selectStmt; } auto tryResult1153 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14548, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } auto selectStmt = tryResult1153.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect
(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14552, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values \\\" \\\"FROM object_data \\\" \\\"WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + \\\" AND key = :\\\"_ns + kStmtParamNameKey + \\\";\\\"_ns)\", tryResult1151.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14533, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1152 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1152.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14538, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; return selectStmt; } auto tryResult1153 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError(\"aConnection->BorrowCachedStatement( \\\"SELECT index_data_values, \\\"_ns + kColumnNameKey + \\\" FROM object_data WHERE object_store_id = :\\\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \\\";\\\"_ns)\", tryResult1153.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14548, mozilla::dom::quota::Severity::Error); return tryResult1153.propagateErr(); } auto selectStmt = tryResult1153.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1154 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1154)::ok_type>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1154.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14552, mozilla::dom::quota::Severity::Error); return tryResult1154.propagateErr(); }}; } return selectStmt; }())"
, tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14556, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); } const auto& selectStmt = tryResult1155
.inspect();
;
14557
14558 QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1156 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14559, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
14559 aObjectStoreId))){auto tryResult1156 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1156)::ok_type
>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14559, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}
;
14560
14561 DebugOnly<uint32_t> resultCountDEBUG = 0;
14562
14563 QM_TRY(CollectWhileHasResult({auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14564 *selectStmt,{auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14565 [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG,{auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14566 indexValues = IndexDataValuesAutoArray{}]({auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14567 auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14568 if (!singleRowOnly) {{auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14569 QM_TRY({auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14570 MOZ_TO_RESULT(objectStoreKey.SetFromStatement(&selectStmt, 1)));{auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14571
14572 indexValues.ClearAndRetainStorage();{auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14573 }{auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14574
14575 QM_TRY(MOZ_TO_RESULT({auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14576 ReadCompressedIndexDataValues(selectStmt, 0, indexValues)));{auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14577 QM_TRY(MOZ_TO_RESULT(DeleteIndexDataTableRows({auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14578 aConnection, objectStoreKey, indexValues)));{auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14579
14580 resultCountDEBUG++;{auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14581
14582 return Ok{};{auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14583 })){auto tryResult1160 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1157)::ok_type>); if ((__builtin_expect
(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14570, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect
(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14576, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1159)::ok_type>
); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14578, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1157 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1157.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14570, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1158 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1158)::ok_type>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1158.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14576, mozilla::dom::quota::Severity::Error); return tryResult1158.propagateErr(); }}; {auto tryResult1159 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1159)::ok_type>); if ((__builtin_expect(!!(tryResult1159.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1159.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14578, mozilla::dom::quota::Severity::Error); return tryResult1159.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14583, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
;
14584
14585 MOZ_ASSERT_IF(singleRowOnly, resultCountDEBUG <= 1)do { if (singleRowOnly) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(resultCountDEBUG <= 1
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(resultCountDEBUG <= 1))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("resultCountDEBUG <= 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14585); AnnotateMozCrashReason("MOZ_ASSERT" "(" "resultCountDEBUG <= 1"
")"); do { MOZ_CrashSequence(__null, 14585); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14586
14587 QM_TRY_UNWRAP(auto tryResult1161 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1161
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1161.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14591, mozilla::dom::quota::Severity::Error); return tryResult1161
.propagateErr(); } auto deleteManyStmt = tryResult1161.unwrap
();
14588 auto deleteManyStmt,auto tryResult1161 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1161
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1161.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14591, mozilla::dom::quota::Severity::Error); return tryResult1161
.propagateErr(); } auto deleteManyStmt = tryResult1161.unwrap
();
14589 aConnection->BorrowCachedStatement(auto tryResult1161 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1161
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1161.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14591, mozilla::dom::quota::Severity::Error); return tryResult1161
.propagateErr(); } auto deleteManyStmt = tryResult1161.unwrap
();
14590 "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns +auto tryResult1161 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1161
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1161.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14591, mozilla::dom::quota::Severity::Error); return tryResult1161
.propagateErr(); } auto deleteManyStmt = tryResult1161.unwrap
();
14591 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns))auto tryResult1161 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1161
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1161.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14591, mozilla::dom::quota::Severity::Error); return tryResult1161
.propagateErr(); } auto deleteManyStmt = tryResult1161.unwrap
();
;
14592
14593 QM_TRY(MOZ_TO_RESULT(deleteManyStmt->BindInt64ByName({auto tryResult1162 = (ToResult(deleteManyStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1162)::ok_type
>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1162.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14594, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}
14594 kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1162 = (ToResult(deleteManyStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1162)::ok_type
>); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1162.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14594, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}
;
14595
14596 if (aKeyRange.isSome()) {
14597 QM_TRY(MOZ_TO_RESULT({auto tryResult1163 = (ToResult(BindKeyRangeToStatement(aKeyRange
.ref(), &*deleteManyStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect
(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))"
, tryResult1163.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14598, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}
14598 BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))){auto tryResult1163 = (ToResult(BindKeyRangeToStatement(aKeyRange
.ref(), &*deleteManyStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1163)::ok_type>); if ((__builtin_expect
(!!(tryResult1163.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))"
, tryResult1163.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14598, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); }}
;
14599 }
14600
14601 QM_TRY(MOZ_TO_RESULT(deleteManyStmt->Execute())){auto tryResult1164 = (ToResult(deleteManyStmt->Execute())
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->Execute())"
, tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14601, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}
;
14602
14603 return NS_OK;
14604}
14605
14606// static
14607nsresult DatabaseOperationBase::UpdateIndexValues(
14608 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14609 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) {
14610 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14610); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 14610); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14611 aConnection->AssertIsOnConnectionThread();
14612 MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14612
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 14612); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14613
14614 AUTO_PROFILER_LABEL("DatabaseOperationBase::UpdateIndexValues", DOM)mozilla::AutoProfilerLabel raiiObject14614( "DatabaseOperationBase::UpdateIndexValues"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14615
14616 QM_TRY_UNWRAP((auto [indexDataValues, indexDataValuesLength]),auto tryResult1165 = (MakeCompressedIndexDataValues(aIndexValues
)); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)"
, tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14617, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); } auto [indexDataValues, indexDataValuesLength
] = tryResult1165.unwrap();
14617 MakeCompressedIndexDataValues(aIndexValues))auto tryResult1165 = (MakeCompressedIndexDataValues(aIndexValues
)); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)"
, tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14617, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); } auto [indexDataValues, indexDataValuesLength
] = tryResult1165.unwrap();
;
14618
14619 MOZ_ASSERT(!indexDataValuesLength == !(indexDataValues.get()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!indexDataValuesLength == !(indexDataValues.get()))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!indexDataValuesLength == !(indexDataValues.get())))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexDataValuesLength == !(indexDataValues.get())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14619
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexDataValuesLength == !(indexDataValues.get())"
")"); do { MOZ_CrashSequence(__null, 14619); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14620
14621 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14622 "UPDATE object_data SET index_data_values = :"_ns +{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14623 kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns +{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14624 kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey +{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14625 ";"_ns,{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14626 [&indexDataValues = indexDataValues,{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14627 indexDataValuesLength = indexDataValuesLength, aObjectStoreId,{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14628 &aObjectStoreKey]({auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14629 mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> {{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14630 QM_TRY(MOZ_TO_RESULT({auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14631 indexDataValues{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14632 ? updateStmt.BindAdoptedBlobByName({auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14633 kStmtParamNameIndexDataValues, indexDataValues.release(),{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14634 indexDataValuesLength){auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14635 : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)));{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14636
14637 QM_TRY(MOZ_TO_RESULT(updateStmt.BindInt64ByName({auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14638 kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14639
14640 QM_TRY(MOZ_TO_RESULT({auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14641 aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey)));{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14642
14643 return Ok{};{auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
14644 }))){auto tryResult1169 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data SET index_data_values = :"_ns + kStmtParamNameIndexDataValues
+ " WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns, [&indexDataValues
= indexDataValues, indexDataValuesLength = indexDataValuesLength
, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement
& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1166
)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14635, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1167
)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14638, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1168)::ok_type
>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1168.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14641, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect
(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data SET index_data_values = :\"_ns + kStmtParamNameIndexDataValues + \" WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&indexDataValues = indexDataValues, indexDataValuesLength = indexDataValuesLength, aObjectStoreId, &aObjectStoreKey]( mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> { {auto tryResult1166 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14635, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; {auto tryResult1167 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14638, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14641, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }))"
, tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14644, mozilla::dom::quota::Severity::Error); return tryResult1169
.propagateErr(); }}
;
14645
14646 return NS_OK;
14647}
14648
14649// static
14650Result<bool, nsresult> DatabaseOperationBase::ObjectStoreHasIndexes(
14651 DatabaseConnection& aConnection,
14652 const IndexOrObjectStoreId aObjectStoreId) {
14653 aConnection.AssertIsOnConnectionThread();
14654 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14654
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 14654); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14655
14656 QM_TRY_RETURN(aConnection{auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
14657 .BorrowAndExecuteSingleStepStatement({auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
14658 "SELECT id "{auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
14659 "FROM object_store_index "{auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
14660 "WHERE object_store_id = :"_ns +{auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
14661 kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns,{auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
14662 [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
14663 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName({auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
14664 kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
14665 return Ok{};{auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
14666 }){auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
14667 .map(IsSome)){auto tryResult1171 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1170)::ok_type>); if ((__builtin_expect
(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1170.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14664, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection .BorrowAndExecuteSingleStepStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + kOpenLimit + \"1;\"_ns, [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1170 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1170.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14664, mozilla::dom::quota::Severity::Error); return tryResult1170.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14667, mozilla::dom::quota::Severity::Error); } return tryResult1171
;}
;
14668}
14669
14670NS_IMPL_ISUPPORTS_INHERITED(DatabaseOperationBase, Runnable,nsresult DatabaseOperationBase::QueryInterface(const nsIID&
aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak
(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!"
, "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14671); MOZ_PretendNoReturn(); } } while (0); nsresult rv =
NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE_INHERITED"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<DatabaseOperationBase, mozIStorageProgressHandler
>, int32_t( reinterpret_cast<char*>(static_cast<mozIStorageProgressHandler
*>((DatabaseOperationBase*)0x1000)) - reinterpret_cast<
char*>((DatabaseOperationBase*)0x1000))}, { nullptr, 0 } }
; static_assert(std::size(table) > 1, "need at least 1 interface"
); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID
, aInstancePtr, table); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl
(rv)), 1)))) return rv; return Runnable::QueryInterface(aIID,
aInstancePtr); } MozExternalRefCountType DatabaseOperationBase
::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseOperationBase
>, "Reference-counted class " "DatabaseOperationBase" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = Runnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<DatabaseOperationBase>) { NS_LogAddRef((this), (r), ("DatabaseOperationBase"
), (uint32_t)(sizeof(*this))); } return r; } MozExternalRefCountType
DatabaseOperationBase::Release(void) { nsrefcnt r = Runnable
::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<DatabaseOperationBase>) { NS_LogRelease((this), (r), (
"DatabaseOperationBase")); } return r; }
14671 mozIStorageProgressHandler)nsresult DatabaseOperationBase::QueryInterface(const nsIID&
aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak
(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!"
, "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14671); MOZ_PretendNoReturn(); } } while (0); nsresult rv =
NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE_INHERITED"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<DatabaseOperationBase, mozIStorageProgressHandler
>, int32_t( reinterpret_cast<char*>(static_cast<mozIStorageProgressHandler
*>((DatabaseOperationBase*)0x1000)) - reinterpret_cast<
char*>((DatabaseOperationBase*)0x1000))}, { nullptr, 0 } }
; static_assert(std::size(table) > 1, "need at least 1 interface"
); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID
, aInstancePtr, table); if (((bool)(__builtin_expect(!!(!NS_FAILED_impl
(rv)), 1)))) return rv; return Runnable::QueryInterface(aIID,
aInstancePtr); } MozExternalRefCountType DatabaseOperationBase
::AddRef(void) { static_assert(!std::is_destructible_v<DatabaseOperationBase
>, "Reference-counted class " "DatabaseOperationBase" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = Runnable
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<DatabaseOperationBase>) { NS_LogAddRef((this), (r), ("DatabaseOperationBase"
), (uint32_t)(sizeof(*this))); } return r; } MozExternalRefCountType
DatabaseOperationBase::Release(void) { nsrefcnt r = Runnable
::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<DatabaseOperationBase>) { NS_LogRelease((this), (r), (
"DatabaseOperationBase")); } return r; }
14672
14673NS_IMETHODIMPnsresult
14674DatabaseOperationBase::OnProgress(mozIStorageConnection* aConnection,
14675 bool* _retval) {
14676 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14676
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14676); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14677 MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(_retval)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("_retval", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14677); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { MOZ_CrashSequence(__null, 14677); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14678
14679 // This is intentionally racy.
14680 *_retval = QuotaClient::IsShuttingDownOnNonBackgroundThread() ||
14681 !OperationMayProceed();
14682 return NS_OK;
14683}
14684
14685DatabaseOperationBase::AutoSetProgressHandler::AutoSetProgressHandler()
14686 : mConnection(Nothing())
14687#ifdef DEBUG1
14688 ,
14689 mDEBUGDatabaseOp(nullptr)
14690#endif
14691{
14692 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14692
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14692); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14693}
14694
14695DatabaseOperationBase::AutoSetProgressHandler::~AutoSetProgressHandler() {
14696 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14696
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14696); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14697
14698 if (mConnection) {
14699 Unregister();
14700 }
14701}
14702
14703nsresult DatabaseOperationBase::AutoSetProgressHandler::Register(
14704 mozIStorageConnection& aConnection, DatabaseOperationBase* aDatabaseOp) {
14705 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14705
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14705); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14706 MOZ_ASSERT(aDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseOp))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aDatabaseOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseOp"
")"); do { MOZ_CrashSequence(__null, 14706); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14707 MOZ_ASSERT(!mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mConnection))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14707); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { MOZ_CrashSequence(__null, 14707); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14708
14709 QM_TRY_UNWRAP(auto tryResult1172 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1172.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14713, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1172
.unwrap();
14710 const DebugOnly oldProgressHandler,auto tryResult1172 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1172.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14713, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1172
.unwrap();
14711 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1172 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1172.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14713, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1172
.unwrap();
14712 nsCOMPtr<mozIStorageProgressHandler>, aConnection, SetProgressHandler,auto tryResult1172 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1172.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14713, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1172
.unwrap();
14713 kStorageProgressGranularity, aDatabaseOp))auto tryResult1172 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1172.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14713, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1172
.unwrap();
;
14714
14715 MOZ_ASSERT(!oldProgressHandler.inspect())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!oldProgressHandler.inspect())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!oldProgressHandler.inspect(
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!oldProgressHandler.inspect()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14715); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!oldProgressHandler.inspect()"
")"); do { MOZ_CrashSequence(__null, 14715); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14716
14717 mConnection = SomeRef(aConnection);
14718#ifdef DEBUG1
14719 mDEBUGDatabaseOp = aDatabaseOp;
14720#endif
14721
14722 return NS_OK;
14723}
14724
14725void DatabaseOperationBase::AutoSetProgressHandler::Unregister() {
14726 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14726
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14726); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14727 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14727); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 14727); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14728
14729 nsCOMPtr<mozIStorageProgressHandler> oldHandler;
14730 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler
)))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14731
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
")"); do { MOZ_CrashSequence(__null, 14731); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
14731 mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler
)))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14731
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
")"); do { MOZ_CrashSequence(__null, 14731); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14732 MOZ_ASSERT(oldHandler == mDEBUGDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(oldHandler == mDEBUGDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(oldHandler == mDEBUGDatabaseOp
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"oldHandler == mDEBUGDatabaseOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14732); AnnotateMozCrashReason("MOZ_ASSERT" "(" "oldHandler == mDEBUGDatabaseOp"
")"); do { MOZ_CrashSequence(__null, 14732); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14733
14734 mConnection = Nothing();
14735}
14736
14737FactoryOp::FactoryOp(SafeRefPtr<Factory> aFactory,
14738 const Maybe<ContentParentId>& aContentParentId,
14739 const PersistenceType aPersistenceType,
14740 const PrincipalInfo& aPrincipalInfo,
14741 const Maybe<nsString>& aDatabaseName, bool aDeleting)
14742 : DatabaseOperationBase(aFactory->GetLoggingInfo()->Id(),
14743 aFactory->GetLoggingInfo()->NextRequestSN()),
14744 mFactory(std::move(aFactory)),
14745 mContentParentId(aContentParentId),
14746 mPrincipalInfo(aPrincipalInfo),
14747 mDatabaseName(aDatabaseName),
14748 mDirectoryLockId(-1),
14749 mPersistenceType(aPersistenceType),
14750 mState(State::Initial),
14751 mWaitingForPermissionRetry(false),
14752 mEnforcingQuota(true),
14753 mDeleting(aDeleting) {
14754 AssertIsOnBackgroundThread();
14755 MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFactory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { MOZ_CrashSequence(__null, 14755); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14756 MOZ_ASSERT(!QuotaClient::IsShuttingDownOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!QuotaClient::IsShuttingDownOnBackgroundThread())>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!QuotaClient::IsShuttingDownOnBackgroundThread()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!QuotaClient::IsShuttingDownOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14756
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 14756); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14757}
14758
14759nsresult FactoryOp::DispatchThisAfterProcessingCurrentEvent(
14760 nsCOMPtr<nsIEventTarget> aEventTarget) {
14761 QM_TRY(MOZ_TO_RESULT(RunAfterProcessingCurrentEvent({auto tryResult1174 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1173 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1173)::ok_type
>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1173.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14764, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1174)::ok_type
>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1173 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1173)::ok_type>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1173.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}
14762 [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable {{auto tryResult1174 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1173 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1173)::ok_type
>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1173.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14764, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1174)::ok_type
>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1173 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1173)::ok_type>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1173.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}
14763 QM_WARNONLY_TRY(MOZ_TO_RESULT({auto tryResult1174 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1173 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1173)::ok_type
>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1173.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14764, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1174)::ok_type
>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1173 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1173)::ok_type>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1173.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}
14764 eventTarget->Dispatch(self.forget(), NS_DISPATCH_NORMAL)));{auto tryResult1174 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1173 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1173)::ok_type
>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1173.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14764, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1174)::ok_type
>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1173 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1173)::ok_type>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1173.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}
14765 }))){auto tryResult1174 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1173 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1173)::ok_type
>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1173.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14764, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1174)::ok_type
>); if ((__builtin_expect(!!(tryResult1174.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1173 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1173)::ok_type>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1173.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14764, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); }}
;
14766
14767 return NS_OK;
14768}
14769
14770void FactoryOp::NoteDatabaseBlocked(Database* aDatabase) {
14771 AssertIsOnOwningThread();
14772 MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase"
")"); do { MOZ_CrashSequence(__null, 14772); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14773 MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForOtherDatabasesToClose)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14773
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 14773); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14774 MOZ_ASSERT(!mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14774); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 14774); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14775 MOZ_ASSERT(mMaybeBlockedDatabases.Contains(aDatabase))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.Contains(aDatabase))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mMaybeBlockedDatabases.Contains(aDatabase)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mMaybeBlockedDatabases.Contains(aDatabase)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14775
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)"
")"); do { MOZ_CrashSequence(__null, 14775); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14776
14777 // Only send the blocked event if all databases have reported back. If the
14778 // database was closed then it will have been removed from the array.
14779 // Otherwise if it was blocked its |mBlocked| flag will be true.
14780 bool sendBlockedEvent = true;
14781
14782 for (auto& info : mMaybeBlockedDatabases) {
14783 if (info == aDatabase) {
14784 // This database was blocked, mark accordingly.
14785 info.mBlocked = true;
14786 } else if (!info.mBlocked) {
14787 // A database has not yet reported back yet, don't send the event yet.
14788 sendBlockedEvent = false;
14789 }
14790 }
14791
14792 if (sendBlockedEvent) {
14793 SendBlockedNotification();
14794 }
14795}
14796
14797void FactoryOp::NoteDatabaseClosed(Database* const aDatabase) {
14798 AssertIsOnOwningThread();
14799 MOZ_ASSERT(aDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14799); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase"
")"); do { MOZ_CrashSequence(__null, 14799); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14800 MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForOtherDatabasesToClose)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14800
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 14800); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14801 MOZ_ASSERT(!mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14801); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 14801); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14802 MOZ_ASSERT(mMaybeBlockedDatabases.Contains(aDatabase))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.Contains(aDatabase))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mMaybeBlockedDatabases.Contains(aDatabase)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mMaybeBlockedDatabases.Contains(aDatabase)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14802
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)"
")"); do { MOZ_CrashSequence(__null, 14802); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14803
14804 mMaybeBlockedDatabases.RemoveElement(aDatabase);
14805
14806 if (!mMaybeBlockedDatabases.IsEmpty()) {
14807 return;
14808 }
14809
14810 DatabaseActorInfo* info;
14811 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
mDatabaseId.ref(), &info)), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14811
); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
")"); do { MOZ_CrashSequence(__null, 14811); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14812 MOZ_ASSERT(info->mWaitingFactoryOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mWaitingFactoryOp == this)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(info->mWaitingFactoryOp ==
this))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("info->mWaitingFactoryOp == this", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mWaitingFactoryOp == this"
")"); do { MOZ_CrashSequence(__null, 14812); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14813
14814 if (AreActorsAlive()) {
14815 // The IPDL strong reference has not yet been released, so we can clear
14816 // mWaitingFactoryOp immediately.
14817 info->mWaitingFactoryOp = nullptr;
14818
14819 WaitForTransactions();
14820 return;
14821 }
14822
14823 // The IPDL strong reference has been released, mWaitingFactoryOp holds the
14824 // last strong reference to us, so we need to move it to a stack variable
14825 // instead of clearing it immediately (We could clear it immediately if only
14826 // the other actor is destroyed, but we don't need to optimize for that, and
14827 // move it anyway).
14828 const RefPtr<FactoryOp> waitingFactoryOp = std::move(info->mWaitingFactoryOp);
14829
14830 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14830, "UnknownErr")
;
14831 SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
14832
14833 // We hold a strong ref in waitingFactoryOp, so it's safe to call Run()
14834 // directly.
14835
14836 mState = State::SendingResults;
14837 MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14837); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())"
")"); do { MOZ_CrashSequence(__null, 14837); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
14838}
14839
14840void FactoryOp::StringifyState(nsACString& aResult) const {
14841 AssertIsOnOwningThread();
14842
14843 switch (mState) {
14844 case State::Initial:
14845 aResult.AppendLiteral("Initial");
14846 return;
14847
14848 case State::DirectoryOpenPending:
14849 aResult.AppendLiteral("DirectoryOpenPending");
14850 return;
14851
14852 case State::DirectoryWorkOpen:
14853 aResult.AppendLiteral("DirectoryWorkOpen");
14854 return;
14855
14856 case State::DirectoryWorkDone:
14857 aResult.AppendLiteral("DirectoryWorkDone");
14858 return;
14859
14860 case State::DatabaseOpenPending:
14861 aResult.AppendLiteral("DatabaseOpenPending");
14862 return;
14863
14864 case State::DatabaseWorkOpen:
14865 aResult.AppendLiteral("DatabaseWorkOpen");
14866 return;
14867
14868 case State::BeginVersionChange:
14869 aResult.AppendLiteral("BeginVersionChange");
14870 return;
14871
14872 case State::WaitingForOtherDatabasesToClose:
14873 aResult.AppendLiteral("WaitingForOtherDatabasesToClose");
14874 return;
14875
14876 case State::WaitingForTransactionsToComplete:
14877 aResult.AppendLiteral("WaitingForTransactionsToComplete");
14878 return;
14879
14880 case State::DatabaseWorkVersionChange:
14881 aResult.AppendLiteral("DatabaseWorkVersionChange");
14882 return;
14883
14884 case State::SendingResults:
14885 aResult.AppendLiteral("SendingResults");
14886 return;
14887
14888 case State::Completed:
14889 aResult.AppendLiteral("Completed");
14890 return;
14891
14892 default:
14893 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14893); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { MOZ_CrashSequence(__null, 14893); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
14894 }
14895}
14896
14897void FactoryOp::Stringify(nsACString& aResult) const {
14898 AssertIsOnOwningThread();
14899
14900 aResult.AppendLiteral("PersistenceType:");
14901 aResult.Append(PersistenceTypeToString(mPersistenceType));
14902 aResult.Append(kQuotaGenericDelimiter);
14903
14904 aResult.AppendLiteral("Origin:");
14905 aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin));
14906 aResult.Append(kQuotaGenericDelimiter);
14907
14908 aResult.AppendLiteral("State:");
14909 StringifyState(aResult);
14910}
14911
14912nsresult FactoryOp::Open() {
14913 AssertIsOnOwningThread();
14914 MOZ_ASSERT(mState == State::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::Initial)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::Initial))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14914
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { MOZ_CrashSequence(__null, 14914); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14915 MOZ_ASSERT(mOriginMetadata.mOrigin.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOriginMetadata.mOrigin.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mOrigin.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mOriginMetadata.mOrigin.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14915); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mOrigin.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 14915); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14916 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14916
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 14916); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14917
14918 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14918)
||
14919 IsActorDestroyed()) {
14920 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14920, "UnknownErr")
;
14921 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
14922 }
14923
14924 QM_TRY(QuotaManager::EnsureCreated()){auto tryResult1175 = (QuotaManager::EnsureCreated()); static_assert
(std::is_empty_v<typename decltype(tryResult1175)::ok_type
>); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) {
mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()"
, tryResult1175.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14924, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); }}
;
14925
14926 QuotaManager* const quotaManager = QuotaManager::Get();
14927 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14927); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 14927); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14928
14929 QM_TRY_UNWRAP(auto tryResult1176 = (quota::GetInfoFromValidatedPrincipalInfo
(*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1176
.isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)"
, tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14931, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); } auto principalMetadata = tryResult1176.unwrap
();
14930 auto principalMetadata,auto tryResult1176 = (quota::GetInfoFromValidatedPrincipalInfo
(*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1176
.isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)"
, tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14931, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); } auto principalMetadata = tryResult1176.unwrap
();
14931 quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo))auto tryResult1176 = (quota::GetInfoFromValidatedPrincipalInfo
(*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1176
.isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)"
, tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14931, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); } auto principalMetadata = tryResult1176.unwrap
();
;
14932
14933 mOriginMetadata = {std::move(principalMetadata), mPersistenceType};
14934
14935 if (mPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo) {
14936 MOZ_ASSERT(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14936
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 14936); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14937
14938 mEnforcingQuota = false;
14939 } else if (mPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo) {
14940 const ContentPrincipalInfo& contentPrincipalInfo =
14941 mPrincipalInfo.get_ContentPrincipalInfo();
14942
14943 MOZ_ASSERT_IF(do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo.
originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14945
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 14945); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
14944 QuotaManager::IsOriginInternal(contentPrincipalInfo.originNoSuffix()),do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo.
originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14945
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 14945); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
14945 mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)do { if (QuotaManager::IsOriginInternal(contentPrincipalInfo.
originNoSuffix())) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mPersistenceType == PERSISTENCE_TYPE_PERSISTENT))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 14945
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { MOZ_CrashSequence(__null, 14945); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14946
14947 mEnforcingQuota = mPersistenceType != PERSISTENCE_TYPE_PERSISTENT;
14948
14949 if (mOriginMetadata.mIsPrivate) {
14950 if (StaticPrefs::dom_indexedDB_privateBrowsing_enabled()) {
14951 // Explicitly disallow moz-extension urls from using the encrypted
14952 // indexedDB storage mode when the caller is an extension (see Bug
14953 // 1841806).
14954 if (StringBeginsWith(contentPrincipalInfo.originNoSuffix(),
14955 "moz-extension:"_ns)) {
14956 return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR;
14957 }
14958
14959 mInPrivateBrowsing.Flip();
14960 } else {
14961 return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR;
14962 }
14963 }
14964 } else {
14965 MOZ_ASSERT(false)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14965); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { MOZ_CrashSequence(__null, 14965); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14966 }
14967
14968 if (mDatabaseName.isSome()) {
14969 nsCString databaseId;
14970
14971 QuotaManager::GetStorageId(mPersistenceType, mOriginMetadata.mOrigin,
14972 Client::IDB, databaseId);
14973
14974 databaseId.Append('*');
14975 databaseId.Append(NS_ConvertUTF16toUTF8(mDatabaseName.ref()));
14976
14977 mDatabaseId = Some(std::move(databaseId));
14978
14979 // Need to get database file path before opening the directory.
14980 // XXX: For what reason?
14981 QM_TRY_UNWRAP(auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14982 auto databaseFilePath,auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14983 ([this, quotaManager]() -> mozilla::Result<nsString, nsresult> {auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14984 QM_TRY_INSPECT(const auto& dbFile,auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14985 quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14986
14987 QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14988 NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME))));auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14989
14990 QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14991 GetDatabaseFilenameBase(mDatabaseName.ref(),auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14992 mOriginMetadata.mIsPrivate) +auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14993 kSQLiteSuffix)));auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14994
14995 QM_TRY_RETURN(auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14996 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath));auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
14997 }()))auto tryResult1181 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1177 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1177
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14985, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); } const auto& dbFile = tryResult1177.inspect
();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1178
)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14988, mozilla::dom::quota::Severity::Error); return tryResult1178
.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect
(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14993, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180
;}; }())); if ((__builtin_expect(!!(tryResult1181.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1177 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1177.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14985, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); } const auto& dbFile = tryResult1177.inspect();; {auto tryResult1178 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1178)::ok_type>); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1178.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14988, mozilla::dom::quota::Severity::Error); return tryResult1178.propagateErr(); }}; {auto tryResult1179 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1179)::ok_type>); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1179.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14993, mozilla::dom::quota::Severity::Error); return tryResult1179.propagateErr(); }}; {auto tryResult1180 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1180.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14996, mozilla::dom::quota::Severity::Error); } return tryResult1180;}; }())"
, tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 14997, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); } auto databaseFilePath = tryResult1181.unwrap
();
;
14998
14999 mDatabaseFilePath = Some(std::move(databaseFilePath));
15000 }
15001
15002 // Open directory
15003 mState = State::DirectoryOpenPending;
15004
15005 quotaManager->OpenClientDirectory({mOriginMetadata, Client::IDB})
15006 ->Then(
15007 GetCurrentSerialEventTarget(), __func__,
15008 [self = RefPtr(this)](QuotaManager::ClientDirectoryLockHandlePromise::
15009 ResolveOrRejectValue&& aValue) {
15010 if (aValue.IsResolve()) {
15011 self->DirectoryLockAcquired(std::move(aValue.ResolveValue()));
15012 } else {
15013 self->DirectoryLockFailed();
15014 }
15015 });
15016
15017 return NS_OK;
15018}
15019
15020nsresult FactoryOp::DirectoryOpen() {
15021 AssertIsOnOwningThread();
15022 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15022
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 15022); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15023 MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15023
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 15023); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15024
15025 if (mDatabaseName.isNothing()) {
15026 QuotaManager* const quotaManager = QuotaManager::Get();
15027 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15027); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 15027); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15028
15029 // Must set this before dispatching otherwise we will race with the IO
15030 // thread.
15031 mState = State::DirectoryWorkOpen;
15032
15033 QM_TRY(MOZ_TO_RESULT({auto tryResult1182 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1182)::ok_type
>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) {
auto tryTempError = tryResult1182.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15035, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15035, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15034 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1182 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1182)::ok_type
>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) {
auto tryTempError = tryResult1182.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15035, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15035, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15035 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1182 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1182)::ok_type
>); if ((__builtin_expect(!!(tryResult1182.isErr()), 0))) {
auto tryTempError = tryResult1182.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15035, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15035, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
15036
15037 return NS_OK;
15038 }
15039
15040 mState = State::DirectoryWorkDone;
15041 MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15041); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())"
")"); do { MOZ_CrashSequence(__null, 15041); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15042
15043 return NS_OK;
15044}
15045
15046nsresult FactoryOp::DirectoryWorkDone() {
15047 AssertIsOnOwningThread();
15048 MOZ_ASSERT(mState == State::DirectoryWorkDone)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryWorkDone)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkDone
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DirectoryWorkDone", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkDone"
")"); do { MOZ_CrashSequence(__null, 15048); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15049 MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15049
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 15049); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15050 MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gFactoryOps)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15050); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { MOZ_CrashSequence(__null, 15050); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15051
15052 // See if this FactoryOp needs to wait.
15053 const bool blocked = [&self = *this] {
15054 bool foundThis = false;
15055 bool blocked = false;
15056
15057 // XXX LinkedList should support reverse iteration via rbegin() and rend(),
15058 // see bug 1964967.
15059 for (FactoryOp* existingOp = gFactoryOps->getLast(); existingOp;
15060 existingOp = existingOp->getPrevious()) {
15061 if (existingOp == &self) {
15062 foundThis = true;
15063 continue;
15064 }
15065
15066 if (foundThis && self.MustWaitFor(*existingOp)) {
15067 existingOp->AddBlockingOp(self);
15068 self.AddBlockedOnOp(*existingOp);
15069 blocked = true;
15070 }
15071 }
15072
15073 return blocked;
15074 }() || [&self = *this] {
15075 QuotaClient* quotaClient = QuotaClient::GetInstance();
15076 MOZ_ASSERT(quotaClient)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaClient)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaClient))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("quotaClient", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15076); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaClient"
")"); do { MOZ_CrashSequence(__null, 15076); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15077
15078 if (RefPtr<Maintenance> currentMaintenance =
15079 quotaClient->GetCurrentMaintenance()) {
15080 if (self.mDatabaseName.isSome()) {
15081 if (RefPtr<DatabaseMaintenance> databaseMaintenance =
15082 currentMaintenance->GetDatabaseMaintenance(
15083 self.mDatabaseFilePath.ref())) {
15084 databaseMaintenance->WaitForCompletion(&self);
15085 return true;
15086 }
15087 } else if (currentMaintenance->HasDatabaseMaintenances()) {
15088 currentMaintenance->WaitForCompletion(&self);
15089 return true;
15090 }
15091 }
15092
15093 return false;
15094 }();
15095
15096 mState = State::DatabaseOpenPending;
15097 if (!blocked) {
15098 QM_TRY(MOZ_TO_RESULT(DatabaseOpen())){auto tryResult1183 = (ToResult(DatabaseOpen())); static_assert
(std::is_empty_v<typename decltype(tryResult1183)::ok_type
>); if ((__builtin_expect(!!(tryResult1183.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(DatabaseOpen())",
tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15098, mozilla::dom::quota::Severity::Error); return tryResult1183
.propagateErr(); }}
;
15099 }
15100
15101 return NS_OK;
15102}
15103
15104nsresult FactoryOp::SendToIOThread() {
15105 AssertIsOnOwningThread();
15106 MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { MOZ_CrashSequence(__null, 15106); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15107
15108 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15108)
||
15109 !OperationMayProceed()) {
15110 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15110, "UnknownErr")
;
15111 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15112 }
15113
15114 QuotaManager* const quotaManager = QuotaManager::Get();
15115 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15115); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 15115); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15116
15117 // Must set this before dispatching otherwise we will race with the IO thread.
15118 mState = State::DatabaseWorkOpen;
15119
15120 QM_TRY(MOZ_TO_RESULT({auto tryResult1184 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1184)::ok_type
>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) {
auto tryTempError = tryResult1184.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15122, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15122, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15121 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1184 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1184)::ok_type
>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) {
auto tryTempError = tryResult1184.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15122, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15122, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15122 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1184 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1184)::ok_type
>); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) {
auto tryTempError = tryResult1184.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15122, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15122, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
15123
15124 NotifyDatabaseWorkStarted();
15125
15126 return NS_OK;
15127}
15128
15129void FactoryOp::WaitForTransactions() {
15130 AssertIsOnOwningThread();
15131 MOZ_ASSERT(mState == State::BeginVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange || mState == State
::WaitingForOtherDatabasesToClose)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange
|| mState == State::WaitingForOtherDatabasesToClose))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15132
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 15132); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
15132 mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange || mState == State
::WaitingForOtherDatabasesToClose)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange
|| mState == State::WaitingForOtherDatabasesToClose))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15132
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 15132); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15133 MOZ_ASSERT(!mDatabaseId.ref().IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseId.ref().IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseId.ref().IsEmpty()
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!mDatabaseId.ref().IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15133); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.ref().IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 15133); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15134 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15134
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 15134); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15135
15136 mState = State::WaitingForTransactionsToComplete;
15137
15138 RefPtr<WaitForTransactionsHelper> helper =
15139 new WaitForTransactionsHelper(mDatabaseId.ref(), this);
15140 helper->WaitForTransactions();
15141}
15142
15143void FactoryOp::CleanupMetadata() {
15144 AssertIsOnOwningThread();
15145
15146 for (const NotNull<RefPtr<FactoryOp>>& blockingOp : mBlocking) {
15147 blockingOp->MaybeUnblock(*this);
15148 }
15149 mBlocking.Clear();
15150
15151 MOZ_ASSERT(gFactoryOps)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(gFactoryOps)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(gFactoryOps))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("gFactoryOps", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15151); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { MOZ_CrashSequence(__null, 15151); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15152 removeFrom(*gFactoryOps);
15153
15154 // We might get here even after QuotaManagerOpen failed, so we need to check
15155 // if we have a quota manager.
15156 quota::QuotaManager::SafeMaybeRecordQuotaClientShutdownStep(
15157 quota::Client::IDB, "An element was removed from gFactoryOps"_ns);
15158
15159 // Match the IncreaseBusyCount in AllocPBackgroundIDBFactoryRequestParent().
15160 DecreaseBusyCount();
15161}
15162
15163void FactoryOp::FinishSendResults() {
15164 AssertIsOnOwningThread();
15165 MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15165); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 15165); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15166 MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFactory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15166); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { MOZ_CrashSequence(__null, 15166); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
15167
15168 mState = State::Completed;
15169
15170 // Make sure to release the factory on this thread.
15171 mFactory = nullptr;
15172}
15173
15174nsresult FactoryOp::SendVersionChangeMessages(
15175 DatabaseActorInfo* aDatabaseActorInfo, Maybe<Database&> aOpeningDatabase,
15176 uint64_t aOldVersion, const Maybe<uint64_t>& aNewVersion) {
15177 AssertIsOnOwningThread();
15178 MOZ_ASSERT(aDatabaseActorInfo)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDatabaseActorInfo)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDatabaseActorInfo))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("aDatabaseActorInfo"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15178
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseActorInfo"
")"); do { MOZ_CrashSequence(__null, 15178); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15179 MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15179); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { MOZ_CrashSequence(__null, 15179); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15180 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15180); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 15180); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15181 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15181
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 15181); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15182
15183 const uint32_t expectedCount = mDeleting ? 0 : 1;
15184 const uint32_t liveCount = aDatabaseActorInfo->mLiveDatabases.length();
15185 if (liveCount > expectedCount) {
15186 nsTArray<MaybeBlockedDatabaseInfo> maybeBlockedDatabases;
15187 for (Database* const database : aDatabaseActorInfo->mLiveDatabases) {
15188 if ((!aOpeningDatabase || database != &aOpeningDatabase.ref()) &&
15189 !database->IsClosed() &&
15190 NS_WARN_IF(!maybeBlockedDatabases.AppendElement(NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr
{database, AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database, AcquireStrongRefFromRawPtr{}}, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15191
)
15191 SafeRefPtr{database, AcquireStrongRefFromRawPtr{}}, fallible))NS_warn_if_impl(!maybeBlockedDatabases.AppendElement( SafeRefPtr
{database, AcquireStrongRefFromRawPtr{}}, fallible), "!maybeBlockedDatabases.AppendElement( SafeRefPtr{database, AcquireStrongRefFromRawPtr{}}, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15191
)
) {
15192 return NS_ERROR_OUT_OF_MEMORY;
15193 }
15194 }
15195
15196 mMaybeBlockedDatabases = std::move(maybeBlockedDatabases);
15197 }
15198
15199 // We don't want to wait forever if we were not able to send the
15200 // message.
15201 mMaybeBlockedDatabases.RemoveLastElements(
15202 mMaybeBlockedDatabases.end() -
15203 std::remove_if(mMaybeBlockedDatabases.begin(),
15204 mMaybeBlockedDatabases.end(),
15205 [aOldVersion, &aNewVersion](auto& maybeBlockedDatabase) {
15206 return !maybeBlockedDatabase->SendVersionChange(
15207 aOldVersion, aNewVersion);
15208 }));
15209
15210 return NS_OK;
15211} // namespace indexedDB
15212
15213bool FactoryOp::MustWaitFor(const FactoryOp& aExistingOp) {
15214 AssertIsOnOwningThread();
15215
15216 // If the persistence types don't overlap, the op can proceed.
15217 if (aExistingOp.mPersistenceType != mPersistenceType) {
15218 return false;
15219 }
15220
15221 // If the origins don't overlap, the op can proceed.
15222 if (aExistingOp.mOriginMetadata.mOrigin != mOriginMetadata.mOrigin) {
15223 return false;
15224 }
15225
15226 // If the database ids don't overlap, the op can proceed.
15227 if (!aExistingOp.mDatabaseId.isNothing() && !mDatabaseId.isNothing() &&
15228 aExistingOp.mDatabaseId.ref() != mDatabaseId.ref()) {
15229 return false;
15230 }
15231
15232 return true;
15233}
15234
15235// Run() assumes that the caller holds a strong reference to the object that
15236// can't be cleared while Run() is being executed.
15237// So if you call Run() directly (as opposed to dispatching to an event queue)
15238// you need to make sure there's such a reference.
15239// See bug 1356824 for more details.
15240NS_IMETHODIMPnsresult
15241FactoryOp::Run() {
15242 const auto handleError = [this](const nsresult rv) {
15243 if (mState != State::SendingResults) {
15244 SetFailureCodeIfUnset(rv);
15245
15246 // Must set mState before dispatching otherwise we will race with the
15247 // owning thread.
15248 mState = State::SendingResults;
15249
15250 if (IsOnOwningThread()) {
15251 SendResults();
15252 } else {
15253 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))
), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15254
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
")"); do { MOZ_CrashSequence(__null, 15254); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
15254 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))
), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15254
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
")"); do { MOZ_CrashSequence(__null, 15254); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15255 }
15256 }
15257 };
15258
15259 switch (mState) {
15260 case State::Initial:
15261 QM_WARNONLY_TRY(MOZ_TO_RESULT(Open()), handleError){auto tryResult1185 = (ToResult(Open())); static_assert(std::
is_empty_v<typename decltype(tryResult1185)::ok_type>);
if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { auto
tryTempError = tryResult1185.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(Open())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15261, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15262 break;
15263
15264 case State::DirectoryWorkOpen:
15265 QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDirectoryWork()), handleError){auto tryResult1186 = (ToResult(DoDirectoryWork())); static_assert
(std::is_empty_v<typename decltype(tryResult1186)::ok_type
>); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) {
auto tryTempError = tryResult1186.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DoDirectoryWork())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15265
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15266 break;
15267
15268 case State::DirectoryWorkDone:
15269 QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryWorkDone()), handleError){auto tryResult1187 = (ToResult(DirectoryWorkDone())); static_assert
(std::is_empty_v<typename decltype(tryResult1187)::ok_type
>); if ((__builtin_expect(!!(tryResult1187.isErr()), 0))) {
auto tryTempError = tryResult1187.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DirectoryWorkDone())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15269
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15270 break;
15271
15272 case State::DatabaseOpenPending:
15273 QM_WARNONLY_TRY(MOZ_TO_RESULT(DatabaseOpen()), handleError){auto tryResult1188 = (ToResult(DatabaseOpen())); static_assert
(std::is_empty_v<typename decltype(tryResult1188)::ok_type
>); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) {
auto tryTempError = tryResult1188.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DatabaseOpen())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15273, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15274 break;
15275
15276 case State::DatabaseWorkOpen:
15277 QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDatabaseWork()), handleError){auto tryResult1189 = (ToResult(DoDatabaseWork())); static_assert
(std::is_empty_v<typename decltype(tryResult1189)::ok_type
>); if ((__builtin_expect(!!(tryResult1189.isErr()), 0))) {
auto tryTempError = tryResult1189.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DoDatabaseWork())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15277
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15278 break;
15279
15280 case State::BeginVersionChange:
15281 QM_WARNONLY_TRY(MOZ_TO_RESULT(BeginVersionChange()), handleError){auto tryResult1190 = (ToResult(BeginVersionChange())); static_assert
(std::is_empty_v<typename decltype(tryResult1190)::ok_type
>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) {
auto tryTempError = tryResult1190.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(BeginVersionChange())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15281
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15282 break;
15283
15284 case State::WaitingForTransactionsToComplete:
15285 QM_WARNONLY_TRY(MOZ_TO_RESULT(DispatchToWorkThread()), handleError){auto tryResult1191 = (ToResult(DispatchToWorkThread())); static_assert
(std::is_empty_v<typename decltype(tryResult1191)::ok_type
>); if ((__builtin_expect(!!(tryResult1191.isErr()), 0))) {
auto tryTempError = tryResult1191.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DispatchToWorkThread())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15285
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15286 break;
15287
15288 case State::DatabaseWorkVersionUpdate:
15289 QM_WARNONLY_TRY(MOZ_TO_RESULT(DoVersionUpdate()), handleError){auto tryResult1192 = (ToResult(DoVersionUpdate())); static_assert
(std::is_empty_v<typename decltype(tryResult1192)::ok_type
>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) {
auto tryTempError = tryResult1192.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DoVersionUpdate())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15289
, mozilla::dom::quota::Severity::Warning); handleError(tryTempError
); }}
;
15290 break;
15291
15292 case State::SendingResults:
15293 SendResults();
15294 break;
15295
15296 default:
15297 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15297); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { MOZ_CrashSequence(__null, 15297); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
15298 }
15299
15300 return NS_OK;
15301}
15302
15303void FactoryOp::DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle) {
15304 AssertIsOnOwningThread();
15305 MOZ_ASSERT(aLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aLockHandle))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aLockHandle", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15305); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLockHandle"
")"); do { MOZ_CrashSequence(__null, 15305); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15306 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15306
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 15306); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15307 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 15307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15308
15309 mDirectoryLockHandle = std::move(aLockHandle);
15310
15311 MOZ_ASSERT(mDirectoryLockHandle->Id() >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle->Id() >= 0)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mDirectoryLockHandle->Id() >= 0))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDirectoryLockHandle->Id() >= 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15311
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle->Id() >= 0"
")"); do { MOZ_CrashSequence(__null, 15311); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15312 mDirectoryLockId = mDirectoryLockHandle->Id();
15313
15314 auto cleanupAndReturn = [self = RefPtr(this)](const nsresult rv) {
15315 self->SetFailureCodeIfUnset(rv);
15316
15317 // The caller holds a strong reference to us, no need for a self reference
15318 // before calling Run().
15319
15320 self->mState = State::SendingResults;
15321 MOZ_ALWAYS_SUCCEEDS(self->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(self->Run())), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(self->Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15321); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(self->Run())"
")"); do { MOZ_CrashSequence(__null, 15321); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15322 };
15323
15324 if (mDirectoryLockHandle->Invalidated()) {
15325 return cleanupAndReturn(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
15326 }
15327
15328 QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryOpen()), cleanupAndReturn){auto tryResult1193 = (ToResult(DirectoryOpen())); static_assert
(std::is_empty_v<typename decltype(tryResult1193)::ok_type
>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) {
auto tryTempError = tryResult1193.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DirectoryOpen())", tryTempError,
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15328,
mozilla::dom::quota::Severity::Warning); cleanupAndReturn(tryTempError
); }}
;
15329}
15330
15331void FactoryOp::DirectoryLockFailed() {
15332 AssertIsOnOwningThread();
15333 MOZ_ASSERT(mState == State::DirectoryOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryOpenPending)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(mState == State::DirectoryOpenPending))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mState == State::DirectoryOpenPending"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15333
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { MOZ_CrashSequence(__null, 15333); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15334 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15334
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 15334); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15335
15336 if (!HasFailed()) {
15337 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15337, "UnknownErr")
;
15338 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
15339 }
15340
15341 // The caller holds a strong reference to us, no need for a self reference
15342 // before calling Run().
15343
15344 mState = State::SendingResults;
15345 MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(Run())), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(Run())", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15345); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())"
")"); do { MOZ_CrashSequence(__null, 15345); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15346}
15347
15348nsresult FactoryRequestOp::DoDirectoryWork() {
15349 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15349
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 15349); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
15350}
15351
15352void FactoryRequestOp::ActorDestroy(ActorDestroyReason aWhy) {
15353 AssertIsOnBackgroundThread();
15354
15355 NoteActorDestroyed();
15356}
15357
15358OpenDatabaseOp::OpenDatabaseOp(SafeRefPtr<Factory> aFactory,
15359 const Maybe<ContentParentId>& aContentParentId,
15360 const CommonFactoryRequestParams& aParams)
15361 : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams,
15362 /* aDeleting */ false),
15363 mMetadata(MakeSafeRefPtr<FullDatabaseMetadata>(aParams.metadata())),
15364 mRequestedVersion(aParams.metadata().version()),
15365 mVersionChangeOp(nullptr),
15366 mTelemetryId(0) {}
15367
15368void OpenDatabaseOp::ActorDestroy(ActorDestroyReason aWhy) {
15369 AssertIsOnOwningThread();
15370
15371 FactoryRequestOp::ActorDestroy(aWhy);
15372
15373 if (mVersionChangeOp) {
15374 mVersionChangeOp->NoteActorDestroyed();
15375 }
15376}
15377
15378nsresult OpenDatabaseOp::DatabaseOpen() {
15379 AssertIsOnOwningThread();
15380 MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15380); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { MOZ_CrashSequence(__null, 15380); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15381
15382 nsresult rv = SendToIOThread();
15383 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15383)
) {
15384 return rv;
15385 }
15386
15387 return NS_OK;
15388}
15389
15390nsresult OpenDatabaseOp::DoDatabaseWork() {
15391 AssertIsOnIOThread();
15392 MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15392); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 15392); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15393
15394 AUTO_PROFILER_LABEL("OpenDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject15394( "OpenDatabaseOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
15395
15396 QM_TRY(OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread()),{auto tryResult1194 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult1194
)::ok_type>); if ((__builtin_expect(!!(tryResult1194.isErr
()), 0))) { auto tryTempError = tryResult1194.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15397, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15397, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15397 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1194 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult1194
)::ok_type>); if ((__builtin_expect(!!(tryResult1194.isErr
()), 0))) { auto tryTempError = tryResult1194.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15397, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15397, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
15398
15399 if (!OperationMayProceed()) {
15400 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15400, "UnknownErr")
;
15401 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15402 }
15403
15404 const nsAString& databaseName = mCommonParams.metadata().name();
15405 const PersistenceType persistenceType =
15406 mCommonParams.metadata().persistenceType();
15407
15408 QuotaManager* const quotaManager = QuotaManager::Get();
15409 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15409); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 15409); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15410
15411 QM_TRY_INSPECT(auto tryResult1197 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195
;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196
;}; }())); if ((__builtin_expect(!!(tryResult1197.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196;}; }())"
, tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& dbDirectory = tryResult1197
.inspect();
15412 const auto& dbDirectory,auto tryResult1197 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195
;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196
;}; }())); if ((__builtin_expect(!!(tryResult1197.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196;}; }())"
, tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& dbDirectory = tryResult1197
.inspect();
15413 ([persistenceType, &quotaManager,auto tryResult1197 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195
;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196
;}; }())); if ((__builtin_expect(!!(tryResult1197.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196;}; }())"
, tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& dbDirectory = tryResult1197
.inspect();
15414 this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> {auto tryResult1197 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195
;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196
;}; }())); if ((__builtin_expect(!!(tryResult1197.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196;}; }())"
, tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& dbDirectory = tryResult1197
.inspect();
15415 if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1197 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195
;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196
;}; }())); if ((__builtin_expect(!!(tryResult1197.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196;}; }())"
, tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& dbDirectory = tryResult1197
.inspect();
15416 QM_TRY_RETURN(quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult1197 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195
;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196
;}; }())); if ((__builtin_expect(!!(tryResult1197.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196;}; }())"
, tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& dbDirectory = tryResult1197
.inspect();
15417 }auto tryResult1197 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195
;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196
;}; }())); if ((__builtin_expect(!!(tryResult1197.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196;}; }())"
, tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& dbDirectory = tryResult1197
.inspect();
15418
15419 QM_TRY_RETURN(auto tryResult1197 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195
;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196
;}; }())); if ((__builtin_expect(!!(tryResult1197.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196;}; }())"
, tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& dbDirectory = tryResult1197
.inspect();
15420 quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata));auto tryResult1197 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195
;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196
;}; }())); if ((__builtin_expect(!!(tryResult1197.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196;}; }())"
, tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& dbDirectory = tryResult1197
.inspect();
15421 }()))auto tryResult1197 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult
> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {
auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195
;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196
;}; }())); if ((__builtin_expect(!!(tryResult1197.isErr()), 0
))) { mozilla::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1195 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); } return tryResult1195;}; } {auto tryResult1196 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15420, mozilla::dom::quota::Severity::Error); } return tryResult1196;}; }())"
, tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15421, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const auto& dbDirectory = tryResult1197
.inspect();
;
15422
15423 QM_TRY(MOZ_TO_RESULT({auto tryResult1198 = (ToResult(dbDirectory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1198
)::ok_type>); if ((__builtin_expect(!!(tryResult1198.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1198
.propagateErr(); }}
15424 dbDirectory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1198 = (ToResult(dbDirectory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1198
)::ok_type>); if ((__builtin_expect(!!(tryResult1198.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1198
.propagateErr(); }}
;
15425
15426 {
15427 QM_TRY_INSPECT(const bool& exists,auto tryResult1199 = (::mozilla::ToResultInvokeMember( (dbDirectory
), &::mozilla::detail::DerefedType<decltype(dbDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1199.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists)"
, tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15428, mozilla::dom::quota::Severity::Error); return tryResult1199
.propagateErr(); } const bool& exists = tryResult1199.inspect
();
15428 MOZ_TO_RESULT_INVOKE_MEMBER(dbDirectory, Exists))auto tryResult1199 = (::mozilla::ToResultInvokeMember( (dbDirectory
), &::mozilla::detail::DerefedType<decltype(dbDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1199.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists)"
, tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15428, mozilla::dom::quota::Severity::Error); return tryResult1199
.propagateErr(); } const bool& exists = tryResult1199.inspect
();
;
15429
15430 if (!exists) {
15431 QM_TRY(MOZ_TO_RESULT(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult1200 = (ToResult(dbDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1200)::ok_type>); if ((__builtin_expect
(!!(tryResult1200.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryResult1200.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15431, mozilla::dom::quota::Severity::Error); return tryResult1200
.propagateErr(); }}
;
15432 }
15433#ifdef DEBUG1
15434 else {
15435 bool isDirectory;
15436 MOZ_ASSERT(NS_SUCCEEDED(dbDirectory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory
->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory)
)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15436
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 15436); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15437 MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(isDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15437); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 15437); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15438 }
15439#endif
15440 }
15441
15442 const auto databaseFilenameBase =
15443 GetDatabaseFilenameBase(databaseName, mOriginMetadata.mIsPrivate);
15444
15445 QM_TRY_INSPECT(const auto& markerFile,auto tryResult1201 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1201
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)"
, tryResult1201.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15447, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); } const auto& markerFile = tryResult1201
.inspect();
15446 CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix +auto tryResult1201 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1201
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)"
, tryResult1201.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15447, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); } const auto& markerFile = tryResult1201
.inspect();
15447 databaseFilenameBase))auto tryResult1201 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1201
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)"
, tryResult1201.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15447, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); } const auto& markerFile = tryResult1201
.inspect();
;
15448
15449 QM_TRY_INSPECT(const bool& exists,auto tryResult1202 = (::mozilla::ToResultInvokeMember( (markerFile
), &::mozilla::detail::DerefedType<decltype(markerFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1202.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists)"
, tryResult1202.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15450, mozilla::dom::quota::Severity::Error); return tryResult1202
.propagateErr(); } const bool& exists = tryResult1202.inspect
();
15450 MOZ_TO_RESULT_INVOKE_MEMBER(markerFile, Exists))auto tryResult1202 = (::mozilla::ToResultInvokeMember( (markerFile
), &::mozilla::detail::DerefedType<decltype(markerFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1202.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists)"
, tryResult1202.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15450, mozilla::dom::quota::Severity::Error); return tryResult1202
.propagateErr(); } const bool& exists = tryResult1202.inspect
();
;
15451
15452 if (exists) {
15453 // Delete the database and directroy since they should be deleted in
15454 // previous operation.
15455 // Note: only update usage to the QuotaManager when mEnforcingQuota == true
15456 QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult1203 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1203
)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15459, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
15457 *dbDirectory, databaseFilenameBase,{auto tryResult1203 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1203
)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15459, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
15458 mEnforcingQuota ? quotaManager : nullptr, persistenceType,{auto tryResult1203 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1203
)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15459, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
15459 mOriginMetadata, databaseName))){auto tryResult1203 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1203
)::ok_type>); if ((__builtin_expect(!!(tryResult1203.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15459, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); }}
;
15460 }
15461
15462 QM_TRY_INSPECT(auto tryResult1204 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1204.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)"
, tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15464, mozilla::dom::quota::Severity::Error); return tryResult1204
.propagateErr(); } const auto& dbFile = tryResult1204.inspect
();
15463 const auto& dbFile,auto tryResult1204 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1204.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)"
, tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15464, mozilla::dom::quota::Severity::Error); return tryResult1204
.propagateErr(); } const auto& dbFile = tryResult1204.inspect
();
15464 CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix))auto tryResult1204 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1204.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)"
, tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15464, mozilla::dom::quota::Severity::Error); return tryResult1204
.propagateErr(); } const auto& dbFile = tryResult1204.inspect
();
;
15465
15466 mTelemetryId = TelemetryIdForFile(dbFile);
15467
15468#ifdef DEBUG1
15469 {
15470 QM_TRY_INSPECT(auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15472, mozilla::dom::quota::Severity::Error); return tryResult1205
.propagateErr(); } const auto& databaseFilePath = tryResult1205
.inspect();
15471 const auto& databaseFilePath,auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15472, mozilla::dom::quota::Severity::Error); return tryResult1205
.propagateErr(); } const auto& databaseFilePath = tryResult1205
.inspect();
15472 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1205 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15472, mozilla::dom::quota::Severity::Error); return tryResult1205
.propagateErr(); } const auto& databaseFilePath = tryResult1205
.inspect();
;
15473
15474 MOZ_ASSERT(databaseFilePath == mDatabaseFilePath.ref())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(databaseFilePath == mDatabaseFilePath.ref())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(databaseFilePath == mDatabaseFilePath.ref()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("databaseFilePath == mDatabaseFilePath.ref()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15474
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()"
")"); do { MOZ_CrashSequence(__null, 15474); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15475 }
15476#endif
15477
15478 QM_TRY_INSPECT(auto tryResult1206 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); return tryResult1206
.propagateErr(); } const auto& fmDirectory = tryResult1206
.inspect();
15479 const auto& fmDirectory,auto tryResult1206 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); return tryResult1206
.propagateErr(); } const auto& fmDirectory = tryResult1206
.inspect();
15480 CloneFileAndAppend(*dbDirectory, databaseFilenameBase +auto tryResult1206 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); return tryResult1206
.propagateErr(); } const auto& fmDirectory = tryResult1206
.inspect();
15481 kFileManagerDirectoryNameSuffix))auto tryResult1206 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15481, mozilla::dom::quota::Severity::Error); return tryResult1206
.propagateErr(); } const auto& fmDirectory = tryResult1206
.inspect();
;
15482
15483 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
15484 MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(idm)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("idm", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15484); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { MOZ_CrashSequence(__null, 15484); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
15485
15486 SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager(
15487 persistenceType, mOriginMetadata.mOrigin, databaseName);
15488
15489 if (!fileManager) {
15490 fileManager = MakeSafeRefPtr<DatabaseFileManager>(
15491 persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(),
15492 mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing);
15493 }
15494
15495 Maybe<const CipherKey> maybeKey =
15496 mInPrivateBrowsing
15497 ? Some(fileManager->MutableCipherKeyManagerRef().Ensure())
15498 : Nothing();
15499
15500 MOZ_RELEASE_ASSERT(mInPrivateBrowsing == maybeKey.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInPrivateBrowsing == maybeKey.isSome())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInPrivateBrowsing == maybeKey.isSome()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mInPrivateBrowsing == maybeKey.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15500
); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()"
")"); do { MOZ_CrashSequence(__null, 15500); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15501
15502 QM_TRY_UNWRAP(auto tryResult1207 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1207.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1207
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1207.unwrap();
15503 NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1207 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1207.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1207
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1207.unwrap();
15504 CreateStorageConnection(*dbFile, *fmDirectory, databaseName,auto tryResult1207 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1207.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1207
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1207.unwrap();
15505 mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1207 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1207.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1207
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1207.unwrap();
15506 mTelemetryId, maybeKey))auto tryResult1207 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1207.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15506, mozilla::dom::quota::Severity::Error); return tryResult1207
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1207.unwrap();
;
15507
15508 AutoSetProgressHandler asph;
15509 QM_TRY(MOZ_TO_RESULT(asph.Register(*connection, this))){auto tryResult1208 = (ToResult(asph.Register(*connection, this
))); static_assert(std::is_empty_v<typename decltype(tryResult1208
)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(asph.Register(*connection, this))"
, tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15509, mozilla::dom::quota::Severity::Error); return tryResult1208
.propagateErr(); }}
;
15510
15511 QM_TRY(MOZ_TO_RESULT(LoadDatabaseInformation(*connection))){auto tryResult1209 = (ToResult(LoadDatabaseInformation(*connection
))); static_assert(std::is_empty_v<typename decltype(tryResult1209
)::ok_type>); if ((__builtin_expect(!!(tryResult1209.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(LoadDatabaseInformation(*connection))"
, tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15511, mozilla::dom::quota::Severity::Error); return tryResult1209
.propagateErr(); }}
;
15512
15513 MOZ_ASSERT(mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mNextObjectStoreId > mMetadata->
mObjectStores.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata->mNextObjectStoreId
> mMetadata->mObjectStores.Count()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15513
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()"
")"); do { MOZ_CrashSequence(__null, 15513); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15514 MOZ_ASSERT(mMetadata->mNextIndexId > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mNextIndexId > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata->mNextIndexId >
0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMetadata->mNextIndexId > 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15514); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextIndexId > 0"
")"); do { MOZ_CrashSequence(__null, 15514); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15515
15516 // See if we need to do a versionchange transaction
15517
15518 // Optional version semantics.
15519 if (!mRequestedVersion) {
15520 // If the requested version was not specified and the database was created,
15521 // treat it as if version 1 were requested.
15522 // Otherwise, treat it as if the current version were requested.
15523 mRequestedVersion = mMetadata->mCommonMetadata.version() == 0
15524 ? 1
15525 : mMetadata->mCommonMetadata.version();
15526 }
15527
15528 QM_TRY(OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion),{auto tryResult1210 = (OkIf(mMetadata->mCommonMetadata.version
() <= mRequestedVersion)); static_assert(std::is_empty_v<
typename decltype(tryResult1210)::ok_type>); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1210.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15529, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }}
15529 NS_ERROR_DOM_INDEXEDDB_VERSION_ERR){auto tryResult1210 = (OkIf(mMetadata->mCommonMetadata.version
() <= mRequestedVersion)); static_assert(std::is_empty_v<
typename decltype(tryResult1210)::ok_type>); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1210.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15529, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }}
;
15530
15531 if (!fileManager->Initialized()) {
15532 QM_TRY(MOZ_TO_RESULT(fileManager->Init({auto tryResult1211 = (ToResult(fileManager->Init( fmDirectory
, mMetadata->mCommonMetadata.version(), *connection))); static_assert
(std::is_empty_v<typename decltype(tryResult1211)::ok_type
>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(fileManager->Init( fmDirectory, mMetadata->mCommonMetadata.version(), *connection))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15533, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}
15533 fmDirectory, mMetadata->mCommonMetadata.version(), *connection))){auto tryResult1211 = (ToResult(fileManager->Init( fmDirectory
, mMetadata->mCommonMetadata.version(), *connection))); static_assert
(std::is_empty_v<typename decltype(tryResult1211)::ok_type
>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(fileManager->Init( fmDirectory, mMetadata->mCommonMetadata.version(), *connection))"
, tryResult1211.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15533, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); }}
;
15534
15535 idm->AddFileManager(fileManager.clonePtr());
15536 }
15537
15538 mFileManager = std::move(fileManager);
15539
15540 // Must close connection before dispatching otherwise we might race with the
15541 // connection thread which needs to open the same database.
15542 asph.Unregister();
15543
15544 MOZ_ALWAYS_SUCCEEDS(connection->Close())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->Close())), 1)))), 1))) { } else { do { do { }
while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(connection->Close())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15544
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->Close())"
")"); do { MOZ_CrashSequence(__null, 15544); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
15545
15546 SleepIfEnabled(
15547 StaticPrefs::dom_indexedDB_databaseInitialization_pauseOnIOThreadMs());
15548
15549 // Must set mState before dispatching otherwise we will race with the owning
15550 // thread.
15551 mState = (mMetadata->mCommonMetadata.version() == mRequestedVersion)
15552 ? State::SendingResults
15553 : State::BeginVersionChange;
15554
15555 QM_TRY(MOZ_TO_RESULT({auto tryResult1212 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1212)::ok_type>); if ((__builtin_expect
(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15556, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); }}
15556 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1212 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1212)::ok_type>); if ((__builtin_expect
(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15556, mozilla::dom::quota::Severity::Error); return tryResult1212
.propagateErr(); }}
;
15557
15558 return NS_OK;
15559}
15560
15561nsresult OpenDatabaseOp::LoadDatabaseInformation(
15562 mozIStorageConnection& aConnection) {
15563 AssertIsOnIOThread();
15564 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15564); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { MOZ_CrashSequence(__null, 15564); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15565
15566 {
15567 // Load version information.
15568 QM_TRY_INSPECT(auto tryResult1213 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); } const auto& stmt = tryResult1213.inspect
();
15569 const auto& stmt,auto tryResult1213 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); } const auto& stmt = tryResult1213.inspect
();
15570 CreateAndExecuteSingleStepStatement<auto tryResult1213 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); } const auto& stmt = tryResult1213.inspect
();
15571 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1213 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); } const auto& stmt = tryResult1213.inspect
();
15572 aConnection, "SELECT name, origin, version FROM database"_ns))auto tryResult1213 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15572, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); } const auto& stmt = tryResult1213.inspect
();
;
15573
15574 QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1214 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1214)::ok_type>); if ((__builtin_expect
(!!(tryResult1214.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1214.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15574, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError
, NS_ERROR_FILE_CORRUPTED); }}
;
15575
15576 QM_TRY_INSPECT(const auto& databaseName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1215 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1215.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15577, mozilla::dom::quota::Severity::Error); return tryResult1215
.propagateErr(); } const auto& databaseName = tryResult1215
.inspect();
15577 nsString, stmt, GetString, 0))auto tryResult1215 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1215.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15577, mozilla::dom::quota::Severity::Error); return tryResult1215
.propagateErr(); } const auto& databaseName = tryResult1215
.inspect();
;
15578
15579 QM_TRY(OkIf(mCommonParams.metadata().name() == databaseName),{auto tryResult1216 = (OkIf(mCommonParams.metadata().name() ==
databaseName)); static_assert(std::is_empty_v<typename decltype
(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1216.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCommonParams.metadata().name() == databaseName)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15580
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(mCommonParams.metadata().name() == databaseName)"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
15580 NS_ERROR_FILE_CORRUPTED){auto tryResult1216 = (OkIf(mCommonParams.metadata().name() ==
databaseName)); static_assert(std::is_empty_v<typename decltype
(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1216.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mCommonParams.metadata().name() == databaseName)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15580
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(mCommonParams.metadata().name() == databaseName)"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
;
15581
15582 QM_TRY_INSPECT(const auto& origin, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1217 = (::mozilla::ToResultInvoke< nsCString
>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15583, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const auto& origin = tryResult1217.inspect
();
15583 nsCString, stmt, GetUTF8String, 1))auto tryResult1217 = (::mozilla::ToResultInvoke< nsCString
>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect
(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)"
, tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15583, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const auto& origin = tryResult1217.inspect
();
;
15584
15585 // We can't just compare these strings directly. See bug 1339081 comment 69.
15586 QM_TRY(OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin,{auto tryResult1218 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect
(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
15587 origin)),{auto tryResult1218 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect
(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
15588 NS_ERROR_FILE_CORRUPTED){auto tryResult1218 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1218)::ok_type>); if ((__builtin_expect
(!!(tryResult1218.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1218.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15588, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, NS_ERROR_FILE_CORRUPTED); }}
;
15589
15590 QM_TRY_INSPECT(const int64_t& version,auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 2)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 2)"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const int64_t& version = tryResult1219
.inspect();
15591 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 2))auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 2)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 2)"
, tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15591, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const int64_t& version = tryResult1219
.inspect();
;
15592
15593 mMetadata->mCommonMetadata.version() = uint64_t(version);
15594 }
15595
15596 ObjectStoreTable& objectStores = mMetadata->mObjectStores;
15597
15598 QM_TRY_INSPECT(auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15599 const auto& lastObjectStoreId,auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15600 ([&aConnection,auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15601 &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15602 // Load object store names and ids.auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15603 QM_TRY_INSPECT(auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15604 const auto& stmt,auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15605 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15606 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15607 "SELECT id, auto_increment, name, key_path "auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15608 "FROM object_store"_ns));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15609
15610 IndexOrObjectStoreId lastObjectStoreId = 0;auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15611
15612 QM_TRY(CollectWhileHasResult(auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15613 *stmt,auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15614 [&lastObjectStoreId, &objectStores,auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15615 usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15616 usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15617 auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15618 QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15619 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15620
15621 if (!usedIds) {auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15622 usedIds.emplace();auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15623 }auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15624
15625 QM_TRY(OkIf(objectStoreId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15626 QM_TRY(OkIf(!usedIds.ref().Contains(objectStoreId)),auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15627 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15628
15629 QM_TRY(OkIf(usedIds.ref().Insert(objectStoreId, fallible)),auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15630 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15631
15632 nsString name;auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15633 QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15634
15635 if (!usedNames) {auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15636 usedNames.emplace();auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15637 }auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15638
15639 QM_TRY(OkIf(!usedNames.ref().Contains(name)),auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15640 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15641
15642 QM_TRY(OkIf(usedNames.ref().Insert(name, fallible)),auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15643 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15644
15645 ObjectStoreMetadata commonMetadata;auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15646 commonMetadata.id() = objectStoreId;auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15647 commonMetadata.name() = std::move(name);auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15648
15649 QM_TRY_INSPECT(auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15650 const int32_t& columnType,auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15651 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetTypeOfIndex, 3));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15652
15653 if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) {auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15654 commonMetadata.keyPath() = KeyPath(0);auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15655 } else {auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15656 MOZ_ASSERT(columnType == mozIStorageStatement::VALUE_TYPE_TEXT);auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15657
15658 nsString keyPathSerialization;auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15659 QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15660
15661 commonMetadata.keyPath() =auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15662 KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15663 QM_TRY(OkIf(commonMetadata.keyPath().IsValid()),auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15664 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15665 }auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15666
15667 QM_TRY_INSPECT(const int64_t& nextAutoIncrementId,auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15668 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15669
15670 commonMetadata.autoIncrement() = !!nextAutoIncrementId;auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15671
15672 QM_TRY(OkIf(objectStores.InsertOrUpdate(auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15673 objectStoreId,auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15674 MakeSafeRefPtr<FullObjectStoreMetadata>(auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15675 std::move(commonMetadata),auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15676 FullObjectStoreMetadata::AutoIncrementIds{auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15677 nextAutoIncrementId, nextAutoIncrementId}),auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15678 fallible)),auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15679 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15680
15681 lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId);auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15682
15683 return Ok{};auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15684 }));auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15685
15686 return lastObjectStoreId;auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
15687 }()))auto tryResult1234 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1220
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1220.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15608, mozilla::dom::quota::Severity::Error); return tryResult1220
.propagateErr(); } const auto& stmt = tryResult1220.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15619, mozilla::dom::quota::Severity::Error); return tryResult1221
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1223
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15627, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1224)::ok_type
>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1225.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15633, mozilla::dom::quota::Severity::Error); return tryResult1225
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1226
)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1227)::ok_type
>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1227
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1228.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15651, mozilla::dom::quota::Severity::Error); return tryResult1228
.propagateErr(); } const int32_t& columnType = tryResult1228
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 15656); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect
(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1229
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15659, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15664
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1231.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15668, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15679, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1233
)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15684, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1220 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1220.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15608, mozilla::dom::quota::Severity::Error); return tryResult1220.propagateErr(); } const auto& stmt = tryResult1220.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1233 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1221.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1225.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1228.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15656); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1229.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1231.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1233)::ok_type>); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1221 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1221.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15619, mozilla::dom::quota::Severity::Error); return tryResult1221.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1221.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1222 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1223 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1223.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15627, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1224 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15630, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1225 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1225.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15633, mozilla::dom::quota::Severity::Error); return tryResult1225.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1226 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1226)::ok_type>); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1226.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15640, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1227 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1227.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15643, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1228 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1228.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15651, mozilla::dom::quota::Severity::Error); return tryResult1228.propagateErr(); } const int32_t& columnType = tryResult1228.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15656); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15656); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1229 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1229)::ok_type>); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1229.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15659, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1230 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15664, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1231 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1231.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15668, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1231.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1232 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1232)::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1232.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15679, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15684, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15687, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const auto& lastObjectStoreId = tryResult1234
.inspect();
;
15688
15689 QM_TRY_INSPECT(auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15690 const auto& lastIndexId,auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15691 ([this, &aConnection,auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15692 &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15693 // Load index informationauto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15694 QM_TRY_INSPECT(auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15695 const auto& stmt,auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15696 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15697 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15698 "SELECT "auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15699 "id, object_store_id, name, key_path, "auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15700 "unique_index, multientry, "auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15701 "locale, is_auto_locale "auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15702 "FROM object_store_index"_ns));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15703
15704 IndexOrObjectStoreId lastIndexId = 0;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15705
15706 QM_TRY(CollectWhileHasResult(auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15707 *stmt,auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15708 [this, &lastIndexId, &objectStores, &aConnection,auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15709 usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15710 usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15711 auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15712 QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15713 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15714
15715 // XXX Why does this return NS_ERROR_OUT_OF_MEMORY if we don'tauto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15716 // know the object store id?auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15717
15718 auto objectStoreMetadata = objectStores.Lookup(objectStoreId);auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15719 QM_TRY(OkIf(static_cast<bool>(objectStoreMetadata)),auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15720 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15721
15722 MOZ_ASSERT((*objectStoreMetadata)->mCommonMetadata.id() ==auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15723 objectStoreId);auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15724
15725 IndexOrObjectStoreId indexId;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15726 QM_TRY(MOZ_TO_RESULT(stmt.GetInt64(0, &indexId)));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15727
15728 if (!usedIds) {auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15729 usedIds.emplace();auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15730 }auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15731
15732 QM_TRY(OkIf(indexId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15733 QM_TRY(OkIf(!usedIds.ref().Contains(indexId)),auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15734 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15735
15736 QM_TRY(OkIf(usedIds.ref().Insert(indexId, fallible)),auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15737 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15738
15739 nsString name;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15740 QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15741
15742 const nsAutoString hashName =auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15743 IntToString(indexId) + u":"_ns + name;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15744
15745 if (!usedNames) {auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15746 usedNames.emplace();auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15747 }auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15748
15749 QM_TRY(OkIf(!usedNames.ref().Contains(hashName)),auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15750 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15751
15752 QM_TRY(OkIf(usedNames.ref().Insert(hashName, fallible)),auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15753 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15754
15755 auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>();auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15756 indexMetadata->mCommonMetadata.id() = indexId;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15757 indexMetadata->mCommonMetadata.name() = name;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15758
15759#ifdef DEBUGauto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15760 {auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15761 int32_t columnType;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15762 nsresult rv = stmt.GetTypeOfIndex(3, &columnType);auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15763 MOZ_ASSERT(NS_SUCCEEDED(rv));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15764 MOZ_ASSERT(columnType != mozIStorageStatement::VALUE_TYPE_NULL);auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15765 }auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15766#endifauto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15767
15768 nsString keyPathSerialization;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15769 QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15770
15771 indexMetadata->mCommonMetadata.keyPath() =auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15772 KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15773 QM_TRY(OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid()),auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15774 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15775
15776 int32_t scratch;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15777 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(4, &scratch)));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15778
15779 indexMetadata->mCommonMetadata.unique() = !!scratch;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15780
15781 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(5, &scratch)));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15782
15783 indexMetadata->mCommonMetadata.multiEntry() = !!scratch;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15784
15785 const bool localeAware = !stmt.IsNull(6);auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15786 if (localeAware) {auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15787 QM_TRY(MOZ_TO_RESULT(stmt.GetUTF8String(auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15788 6, indexMetadata->mCommonMetadata.locale())));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15789
15790 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(7, &scratch)));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15791
15792 indexMetadata->mCommonMetadata.autoLocale() = !!scratch;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15793
15794 // Update locale-aware indexes if necessaryauto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15795 const nsCString& indexedLocale =auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15796 indexMetadata->mCommonMetadata.locale();auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15797 const bool& isAutoLocale =auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15798 indexMetadata->mCommonMetadata.autoLocale();auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15799 const nsCString& systemLocale = mFactory->GetSystemLocale();auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15800 if (!systemLocale.IsEmpty() && isAutoLocale &&auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15801 !indexedLocale.Equals(systemLocale)) {auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15802 QM_TRY(MOZ_TO_RESULT(UpdateLocaleAwareIndex(auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15803 aConnection, indexMetadata->mCommonMetadata,auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15804 systemLocale)));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15805 }auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15806 }auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15807
15808 QM_TRY(OkIf((*objectStoreMetadata)auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15809 ->mIndexes.InsertOrUpdate(auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15810 indexId, std::move(indexMetadata), fallible)),auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15811 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15812
15813 lastIndexId = std::max(lastIndexId, indexId);auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15814
15815 return Ok{};auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15816 }));auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15817
15818 return lastIndexId;auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
15819 }()))auto tryResult1254 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15702, mozilla::dom::quota::Severity::Error); return tryResult1235
.propagateErr(); } const auto& stmt = tryResult1235.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15713, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1236.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15720, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15723
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { MOZ_CrashSequence(__null, 15723); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15726, mozilla::dom::quota::Severity::Error); return tryResult1238
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect
(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15732, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1240)::ok_type>
); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15734, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1241)::ok_type
>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15737, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15740, mozilla::dom::quota::Severity::Error); return tryResult1242
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1243
)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15750, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1244)::ok_type
>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1244
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15753, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { MOZ_CrashSequence(__null, 15763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15764
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { MOZ_CrashSequence(__null, 15764); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1245 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1245)::ok_type>
); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15769, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15774, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1247
)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15777, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1248.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15781
, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1249)::ok_type
>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15788, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1250)::ok_type>); if ((__builtin_expect
(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1250.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15790
, mozilla::dom::quota::Severity::Error); return tryResult1250
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1251
)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15804, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15811, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1253)::ok_type
>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15816, mozilla::dom::quota::Severity::Error); return tryResult1253
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1254.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1235 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1235.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15702, mozilla::dom::quota::Severity::Error); return tryResult1235.propagateErr(); } const auto& stmt = tryResult1235.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1253 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1236.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15723); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1238.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1242.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15763); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15764); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1245.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1247.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1248.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1249.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1250.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1251.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1253)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1236 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1236.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15713, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1236.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1237 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15720, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15723); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15723); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1238 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1238.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15726, mozilla::dom::quota::Severity::Error); return tryResult1238.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1239 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15732, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1240 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1240.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15734, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1241 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15737, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1242 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1242.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15740, mozilla::dom::quota::Severity::Error); return tryResult1242.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1243 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1243.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15750, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1244 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15753, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15763); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15763); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15764); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1245 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1245.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15769, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1246 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1246.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15774, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1247 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1247.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15777, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1248 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1248.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15781, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1249 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1249.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15788, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; {auto tryResult1250 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1250.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15790, mozilla::dom::quota::Severity::Error); return tryResult1250.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1251 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1251.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15804, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; } } {auto tryResult1252 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect(!!(tryResult1252.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15811, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1253.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15816, mozilla::dom::quota::Severity::Error); return tryResult1253.propagateErr(); }}; return lastIndexId; }())"
, tryResult1254.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15819, mozilla::dom::quota::Severity::Error); return tryResult1254
.propagateErr(); } const auto& lastIndexId = tryResult1254
.inspect();
;
15820
15821 QM_TRY(OkIf(lastObjectStoreId != INT64_MAX),{auto tryResult1255 = (OkIf(lastObjectStoreId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1255
)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { auto tryTempError = tryResult1255.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15822, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15822, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15822 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1255 = (OkIf(lastObjectStoreId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1255
)::ok_type>); if ((__builtin_expect(!!(tryResult1255.isErr
()), 0))) { auto tryTempError = tryResult1255.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15822, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15822, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
15823 QM_TRY(OkIf(lastIndexId != INT64_MAX), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1256 = (OkIf(lastIndexId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { auto tryTempError = tryResult1256.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15824, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15824, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
15824 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1256 = (OkIf(lastIndexId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1256
)::ok_type>); if ((__builtin_expect(!!(tryResult1256.isErr
()), 0))) { auto tryTempError = tryResult1256.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15824, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15824, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
15825
15826 mMetadata->mNextObjectStoreId = lastObjectStoreId + 1;
15827 mMetadata->mNextIndexId = lastIndexId + 1;
15828
15829 return NS_OK;
15830}
15831
15832/* static */
15833nsresult OpenDatabaseOp::UpdateLocaleAwareIndex(
15834 mozIStorageConnection& aConnection, const IndexMetadata& aIndexMetadata,
15835 const nsCString& aLocale) {
15836 const auto indexTable =
15837 aIndexMetadata.unique() ? "unique_index_data"_ns : "index_data"_ns;
15838
15839 // The parameter names are not used, parameters are bound by index only
15840 // locally in the same function.
15841 const nsCString readQuery = "SELECT value, object_data_key FROM "_ns +
15842 indexTable + " WHERE index_id = :index_id"_ns;
15843
15844 QM_TRY_INSPECT(const auto& readStmt,auto tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1257
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1257.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15847, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } const auto& readStmt = tryResult1257.inspect
();
15845 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1257
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1257.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15847, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } const auto& readStmt = tryResult1257.inspect
();
15846 nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1257
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1257.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15847, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } const auto& readStmt = tryResult1257.inspect
();
15847 CreateStatement, readQuery))auto tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1257
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1257.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15847, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } const auto& readStmt = tryResult1257.inspect
();
;
15848
15849 QM_TRY(MOZ_TO_RESULT(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))){auto tryResult1258 = (ToResult(readStmt->BindInt64ByIndex
(0, aIndexMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect
(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15849, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}
;
15850
15851 QM_TRY(CollectWhileHasResult({auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15852 *readStmt,{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15853 [&aConnection, &indexTable, &aIndexMetadata, &aLocale,{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15854 writeStmt = nsCOMPtr<mozIStorageStatement>{}]({auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15855 auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15856 if (!writeStmt) {{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15857 QM_TRY_UNWRAP({auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15858 writeStmt,{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15859 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15860 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15861 "UPDATE "_ns + indexTable + "SET value_locale = :"_ns +{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15862 kStmtParamNameValueLocale + " WHERE index_id = :"_ns +{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15863 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15864 kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15865 kStmtParamNameObjectDataKey));{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15866 }{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15867
15868 mozStorageStatementScoper scoper(writeStmt);{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15869 QM_TRY(MOZ_TO_RESULT(writeStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15870 aIndexMetadata.id())));{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15871
15872 Key oldKey, objectStorePosition;{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15873 QM_TRY(MOZ_TO_RESULT(oldKey.SetFromStatement(&readStmt, 0)));{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15874 QM_TRY(MOZ_TO_RESULT({auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15875 oldKey.BindToStatement(writeStmt, kStmtParamNameValue)));{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15876
15877 QM_TRY_INSPECT(const auto& newSortKey,{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15878 oldKey.ToLocaleAwareKey(aLocale));{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15879
15880 QM_TRY(MOZ_TO_RESULT({auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15881 newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale)));{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15882 QM_TRY({auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15883 MOZ_TO_RESULT(objectStorePosition.SetFromStatement(&readStmt, 1)));{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15884 QM_TRY(MOZ_TO_RESULT(objectStorePosition.BindToStatement({auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15885 writeStmt, kStmtParamNameObjectDataKey)));{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15886
15887 QM_TRY(MOZ_TO_RESULT(writeStmt->Execute()));{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15888
15889 return Ok{};{auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15890 })){auto tryResult1268 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable
+ "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)"
, tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15865, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1260
)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1260.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15870, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1261)::ok_type
>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1261.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15873, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect
(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1262.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15875, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15878, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); } const auto& newSortKey = tryResult1263
.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1264)::ok_type>);
if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1264.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15881, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect
(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1265.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15883, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1266)::ok_type
>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15885, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1267.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15887, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *readStmt, [&aConnection, &indexTable, &aIndexMetadata, &aLocale, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1259 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } writeStmt = tryResult1259.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1260 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1260.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15870, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1261 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1261.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15873, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); }}; {auto tryResult1262 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1262.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15875, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; auto tryResult1263 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15878, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); } const auto& newSortKey = tryResult1263.inspect();; {auto tryResult1264 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1264.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15881, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1265.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15883, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; {auto tryResult1266 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); }}; {auto tryResult1267 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15887, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; return Ok{}; })"
, tryResult1268.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15890, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
;
15891
15892 // The parameter names are not used, parameters are bound by index only
15893 // locally in the same function.
15894 static constexpr auto metaQuery =
15895 "UPDATE object_store_index SET "
15896 "locale = :locale WHERE id = :id"_ns;
15897
15898 QM_TRY_INSPECT(const auto& metaStmt,auto tryResult1269 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1269
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15901, mozilla::dom::quota::Severity::Error); return tryResult1269
.propagateErr(); } const auto& metaStmt = tryResult1269.inspect
();
15899 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1269 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1269
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15901, mozilla::dom::quota::Severity::Error); return tryResult1269
.propagateErr(); } const auto& metaStmt = tryResult1269.inspect
();
15900 nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1269 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1269
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15901, mozilla::dom::quota::Severity::Error); return tryResult1269
.propagateErr(); } const auto& metaStmt = tryResult1269.inspect
();
15901 CreateStatement, metaQuery))auto tryResult1269 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1269
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15901, mozilla::dom::quota::Severity::Error); return tryResult1269
.propagateErr(); } const auto& metaStmt = tryResult1269.inspect
();
;
15902
15903 QM_TRY(MOZ_TO_RESULT({auto tryResult1270 = (ToResult(metaStmt->BindStringByIndex
(0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v
<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect
(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))"
, tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15904, mozilla::dom::quota::Severity::Error); return tryResult1270
.propagateErr(); }}
15904 metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))){auto tryResult1270 = (ToResult(metaStmt->BindStringByIndex
(0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v
<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect
(!!(tryResult1270.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))"
, tryResult1270.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15904, mozilla::dom::quota::Severity::Error); return tryResult1270
.propagateErr(); }}
;
15905
15906 QM_TRY(MOZ_TO_RESULT(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))){auto tryResult1271 = (ToResult(metaStmt->BindInt64ByIndex
(1, aIndexMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect
(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))"
, tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15906, mozilla::dom::quota::Severity::Error); return tryResult1271
.propagateErr(); }}
;
15907
15908 QM_TRY(MOZ_TO_RESULT(metaStmt->Execute())){auto tryResult1272 = (ToResult(metaStmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1272)::ok_type
>); if ((__builtin_expect(!!(tryResult1272.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(metaStmt->Execute())"
, tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15908, mozilla::dom::quota::Severity::Error); return tryResult1272
.propagateErr(); }}
;
15909
15910 return NS_OK;
15911}
15912
15913nsresult OpenDatabaseOp::BeginVersionChange() {
15914 AssertIsOnOwningThread();
15915 MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15915); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { MOZ_CrashSequence(__null, 15915); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
1
Assuming field 'mState' is equal to BeginVersionChange
2
Taking false branch
3
Loop condition is false. Exiting loop
15916 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 15916); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
4
Taking false branch
5
Loop condition is false. Exiting loop
15917 MOZ_ASSERT(mMetadata->mCommonMetadata.version() <= mRequestedVersion)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mCommonMetadata.version() <= mRequestedVersion
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mMetadata->mCommonMetadata.version() <= mRequestedVersion
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mMetadata->mCommonMetadata.version() <= mRequestedVersion"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15917
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.version() <= mRequestedVersion"
")"); do { MOZ_CrashSequence(__null, 15917); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
6
Assuming the condition is true
7
Taking false branch
8
Loop condition is false. Exiting loop
15918 MOZ_ASSERT(!mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabase))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15918); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase"
")"); do { MOZ_CrashSequence(__null, 15918); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
9
Taking false branch
10
Loop condition is false. Exiting loop
15919 MOZ_ASSERT(!mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mVersionChangeTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mVersionChangeTransaction))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mVersionChangeTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15919
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction"
")"); do { MOZ_CrashSequence(__null, 15919); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11
Taking false branch
15920
15921 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15921)
||
12
Loop condition is false. Exiting loop
14
Taking false branch
15922 IsActorDestroyed()) {
13
Assuming the condition is false
15923 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15923, "UnknownErr")
;
15924 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1273 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1273
)::ok_type>); if ((__builtin_expect(!!(tryResult1273.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15924, mozilla::dom::quota::Severity::Error); return tryResult1273
.propagateErr(); }}
;
15925 }
15926
15927 EnsureDatabaseActor();
15928
15929 if (mDatabase->IsInvalidated()) {
15
Assuming the condition is false
16
Taking false branch
15930 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15930, "UnknownErr")
;
15931 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1274 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1274
)::ok_type>); if ((__builtin_expect(!!(tryResult1274.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15931, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); }}
;
15932 }
15933
15934 MOZ_ASSERT(!mDatabase->IsClosed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabase->IsClosed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabase->IsClosed())))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabase->IsClosed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15934
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase->IsClosed()"
")"); do { MOZ_CrashSequence(__null, 15934); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17
Assuming the condition is true
18
Taking false branch
19
Loop condition is false. Exiting loop
15935
15936 DatabaseActorInfo* info;
15937 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
mDatabaseId.ref(), &info)), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15937
); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
")"); do { MOZ_CrashSequence(__null, 15937); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
20
Assuming the condition is false
21
Taking true branch
22
Loop condition is false. Exiting loop
15938
15939 MOZ_ASSERT(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr
()))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr
())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15939
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())"
")"); do { MOZ_CrashSequence(__null, 15939); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
23
Assuming the condition is false
24
Taking false branch
25
Loop condition is false. Exiting loop
15940 MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15940
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 15940); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
26
Taking false branch
27
Loop condition is false. Exiting loop
15941 MOZ_ASSERT(info->mMetadata == mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mMetadata == mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(info->mMetadata == mMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"info->mMetadata == mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15941); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == mMetadata"
")"); do { MOZ_CrashSequence(__null, 15941); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
28
Taking false branch
29
Loop condition is false. Exiting loop
15942
15943 auto transaction = MakeSafeRefPtr<VersionChangeTransaction>(this);
15944
15945 if (NS_WARN_IF(!transaction->CopyDatabaseMetadata())NS_warn_if_impl(!transaction->CopyDatabaseMetadata(), "!transaction->CopyDatabaseMetadata()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15945
)
) {
30
Calling 'VersionChangeTransaction::CopyDatabaseMetadata'
15946 return NS_ERROR_OUT_OF_MEMORY;
15947 }
15948
15949 MOZ_ASSERT(info->mMetadata != mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(info->mMetadata != mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(info->mMetadata != mMetadata
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"info->mMetadata != mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15949); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata != mMetadata"
")"); do { MOZ_CrashSequence(__null, 15949); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15950 mMetadata = info->mMetadata.clonePtr();
15951
15952 const Maybe<uint64_t> newVersion = Some(mRequestedVersion);
15953
15954 QM_TRY(MOZ_TO_RESULT(SendVersionChangeMessages({auto tryResult1275 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1275.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15956, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); }}
15955 info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(),{auto tryResult1275 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1275.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15956, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); }}
15956 newVersion))){auto tryResult1275 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1275.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15956, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); }}
;
15957
15958 mVersionChangeTransaction = std::move(transaction);
15959
15960 if (mMaybeBlockedDatabases.IsEmpty()) {
15961 // We don't need to wait on any databases, just jump to the transaction
15962 // pool.
15963 WaitForTransactions();
15964 return NS_OK;
15965 }
15966
15967 // If the actor gets destroyed, mWaitingFactoryOp will hold the last strong
15968 // reference to us.
15969 info->mWaitingFactoryOp = this;
15970
15971 mState = State::WaitingForOtherDatabasesToClose;
15972 return NS_OK;
15973}
15974
15975bool OpenDatabaseOp::AreActorsAlive() {
15976 AssertIsOnOwningThread();
15977 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15977); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { MOZ_CrashSequence(__null, 15977); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15978
15979 return !(IsActorDestroyed() || mDatabase->IsActorDestroyed());
15980}
15981
15982void OpenDatabaseOp::SendBlockedNotification() {
15983 AssertIsOnOwningThread();
15984 MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForOtherDatabasesToClose)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15984
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 15984); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15985
15986 if (!IsActorDestroyed()) {
15987 Unused << SendBlocked(mMetadata->mCommonMetadata.version());
15988 }
15989}
15990
15991nsresult OpenDatabaseOp::DispatchToWorkThread() {
15992 AssertIsOnOwningThread();
15993 MOZ_ASSERT(mState == State::WaitingForTransactionsToComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForTransactionsToComplete)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForTransactionsToComplete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForTransactionsToComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15993
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete"
")"); do { MOZ_CrashSequence(__null, 15993); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15994 MOZ_ASSERT(mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mVersionChangeTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15994
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction"
")"); do { MOZ_CrashSequence(__null, 15994); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15995 MOZ_ASSERT(mVersionChangeTransaction->GetMode() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mVersionChangeTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 15996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
15996 IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mVersionChangeTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 15996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15997 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15997); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 15997); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15998
15999 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 15999)
||
16000 IsActorDestroyed() || mDatabase->IsInvalidated()) {
16001 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16001, "UnknownErr")
;
16002 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16003 }
16004
16005 mState = State::DatabaseWorkVersionChange;
16006
16007 // Intentionally empty.
16008 nsTArray<nsString> objectStoreNames;
16009
16010 const int64_t loggingSerialNumber =
16011 mVersionChangeTransaction->LoggingSerialNumber();
16012 const nsID& backgroundChildLoggingId =
16013 mVersionChangeTransaction->GetLoggingInfo()->Id();
16014
16015 if (NS_WARN_IF(!mDatabase->RegisterTransaction(*mVersionChangeTransaction))NS_warn_if_impl(!mDatabase->RegisterTransaction(*mVersionChangeTransaction
), "!mDatabase->RegisterTransaction(*mVersionChangeTransaction)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16015
)
) {
16016 return NS_ERROR_OUT_OF_MEMORY;
16017 }
16018
16019 if (!gConnectionPool) {
16020 gConnectionPool = new ConnectionPool();
16021 }
16022
16023 RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this);
16024
16025 uint64_t transactionId = versionChangeOp->StartOnConnectionPool(
16026 backgroundChildLoggingId, mVersionChangeTransaction->DatabaseId(),
16027 loggingSerialNumber, objectStoreNames,
16028 /* aIsWriteTransaction */ true);
16029
16030 mVersionChangeOp = versionChangeOp;
16031
16032 mVersionChangeTransaction->NoteActiveRequest();
16033 mVersionChangeTransaction->Init(transactionId);
16034
16035 return NS_OK;
16036}
16037
16038nsresult OpenDatabaseOp::SendUpgradeNeeded() {
16039 AssertIsOnOwningThread();
16040 MOZ_ASSERT(mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkVersionChange)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mState == State::DatabaseWorkVersionChange))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16040
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 16040); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16041 MOZ_ASSERT(mVersionChangeTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mVersionChangeTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mVersionChangeTransaction)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mVersionChangeTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16041
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction"
")"); do { MOZ_CrashSequence(__null, 16041); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16042 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16042); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16042); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16043 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16043); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16043); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16044 MOZ_ASSERT_IF(!IsActorDestroyed(), mDatabase)do { if (!IsActorDestroyed()) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mDatabase)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16044); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { MOZ_CrashSequence(__null, 16044); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16045
16046 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16046)
||
16047 IsActorDestroyed()) {
16048 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16048, "UnknownErr")
;
16049 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16050 }
16051
16052 const SafeRefPtr<VersionChangeTransaction> transaction =
16053 std::move(mVersionChangeTransaction);
16054
16055 nsresult rv = EnsureDatabaseActorIsAlive();
16056 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16056)
) {
16057 return rv;
16058 }
16059
16060 // Transfer ownership to IPDL.
16061 transaction->SetActorAlive();
16062
16063 if (!mDatabase->SendPBackgroundIDBVersionChangeTransactionConstructor(
16064 transaction.unsafeGetRawPtr(), mMetadata->mCommonMetadata.version(),
16065 mRequestedVersion, mMetadata->mNextObjectStoreId,
16066 mMetadata->mNextIndexId)) {
16067 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16067, "UnknownErr")
;
16068 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16069 }
16070
16071 return NS_OK;
16072}
16073
16074nsresult OpenDatabaseOp::DoVersionUpdate() {
16075 AssertIsOnIOThread();
16076 MOZ_ASSERT(mState == State::DatabaseWorkVersionUpdate)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkVersionUpdate)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mState == State::DatabaseWorkVersionUpdate))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionUpdate"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16076
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionUpdate"
")"); do { MOZ_CrashSequence(__null, 16076); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16077 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16077); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16077); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16078
16079 AUTO_PROFILER_LABEL("OpenDatabaseOp::DoVersionUpdate", DOM)mozilla::AutoProfilerLabel raiiObject16079( "OpenDatabaseOp::DoVersionUpdate"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16080
16081 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16081)
||
16082 !OperationMayProceed()) {
16083 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16083, "UnknownErr")
;
16084 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16085 }
16086
16087 mFileManager->UpdateDatabaseVersion(mRequestedVersion);
16088
16089 mState = State::SendingResults;
16090
16091 QM_TRY(MOZ_TO_RESULT({auto tryResult1276 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1276)::ok_type>); if ((__builtin_expect
(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16092, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); }}
16092 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1276 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1276)::ok_type>); if ((__builtin_expect
(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16092, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); }}
;
16093
16094 return NS_OK;
16095}
16096
16097void OpenDatabaseOp::SendResults() {
16098 AssertIsOnOwningThread();
16099 MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16099); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16100 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16100); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16100); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16101 MOZ_ASSERT_IF(!HasFailed(), !mVersionChangeTransaction)do { if (!HasFailed()) { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(!mVersionChangeTransaction
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mVersionChangeTransaction))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("!mVersionChangeTransaction"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16101
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction"
")"); do { MOZ_CrashSequence(__null, 16101); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16102
16103 if (mCompleteCallback) {
16104 auto completeCallback = std::move(mCompleteCallback);
16105 completeCallback();
16106 }
16107
16108 DebugOnly<DatabaseActorInfo*> info = nullptr;
16109 MOZ_ASSERT_IF(mDatabaseId.isSome() && gLiveDatabaseHashtable &&do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16111
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16111); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
16110 gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info),do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16111
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16111); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
16111 !info->mWaitingFactoryOp)do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16111
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16111); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16112
16113 if (mVersionChangeTransaction) {
16114 MOZ_ASSERT(HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasFailed()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16114); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16114); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16115
16116 mVersionChangeTransaction->Abort(ResultCode(), /* aForce */ true);
16117 mVersionChangeTransaction = nullptr;
16118 }
16119
16120 if (IsActorDestroyed()) {
16121 SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
16122 } else {
16123 FactoryRequestResponse response;
16124
16125 if (!HasFailed()) {
16126 // If we just successfully completed a versionchange operation then we
16127 // need to update the version in our metadata.
16128 mMetadata->mCommonMetadata.version() = mRequestedVersion;
16129
16130 nsresult rv = EnsureDatabaseActorIsAlive();
16131 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
16132 // We successfully opened a database so use its actor as the success
16133 // result for this request.
16134
16135 // XXX OpenDatabaseRequestResponse stores a raw pointer, can this be
16136 // avoided?
16137 response = OpenDatabaseRequestResponse{
16138 WrapNotNull(mDatabase.unsafeGetRawPtr())};
16139 } else {
16140 response = ClampResultCode(rv);
16141#ifdef DEBUG1
16142 SetFailureCode(response.get_nsresult());
16143#endif
16144 }
16145 } else {
16146#ifdef DEBUG1
16147 // If something failed then our metadata pointer is now bad. No one should
16148 // ever touch it again though so just null it out in DEBUG builds to make
16149 // sure we find such cases.
16150 mMetadata = nullptr;
16151#endif
16152 response = ClampResultCode(ResultCode());
16153 }
16154
16155 Unused << PBackgroundIDBFactoryRequestParent::Send__delete__(this,
16156 response);
16157 }
16158
16159 if (mDatabase) {
16160 MOZ_ASSERT(!mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDirectoryLockHandle))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("!mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16160
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 16160); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16161
16162 if (HasFailed()) {
16163 mDatabase->Invalidate();
16164 }
16165
16166 // Make sure to release the database on this thread.
16167 mDatabase = nullptr;
16168
16169 CleanupMetadata();
16170 } else if (mDirectoryLockHandle) {
16171 // ConnectionClosedCallback will call CleanupMetadata().
16172 nsCOMPtr<nsIRunnable> callback = NewRunnableMethod(
16173 "dom::indexedDB::OpenDatabaseOp::ConnectionClosedCallback", this,
16174 &OpenDatabaseOp::ConnectionClosedCallback);
16175
16176 RefPtr<WaitForTransactionsHelper> helper =
16177 new WaitForTransactionsHelper(mDatabaseId.ref(), callback);
16178 helper->WaitForTransactions();
16179 } else {
16180 CleanupMetadata();
16181 }
16182
16183 FinishSendResults();
16184}
16185
16186void OpenDatabaseOp::ConnectionClosedCallback() {
16187 AssertIsOnOwningThread();
16188 MOZ_ASSERT(HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(HasFailed()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16188); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16188); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16189 MOZ_ASSERT(mDirectoryLockHandle)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDirectoryLockHandle)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDirectoryLockHandle))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mDirectoryLockHandle"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16189
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle"
")"); do { MOZ_CrashSequence(__null, 16189); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16190
16191 {
16192 auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle);
16193 }
16194
16195 CleanupMetadata();
16196}
16197
16198void OpenDatabaseOp::EnsureDatabaseActor() {
16199 AssertIsOnOwningThread();
16200 MOZ_ASSERT(mState == State::BeginVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16202
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16202); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16201 mState == State::DatabaseWorkVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16202
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16202); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16202 mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::BeginVersionChange || mState == State
::DatabaseWorkVersionChange || mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16202
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16202); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16203 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16203); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16203); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16204 MOZ_ASSERT(mDatabaseFilePath.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabaseFilePath.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabaseFilePath.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseFilePath.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16204
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath.isSome()"
")"); do { MOZ_CrashSequence(__null, 16204); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16205 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16205
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 16205); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16206
16207 if (mDatabase) {
16208 return;
16209 }
16210
16211 MOZ_ASSERT(mMetadata->mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata->mDatabaseId.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMetadata->mDatabaseId.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16211); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16211); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16212 mMetadata->mDatabaseId = mDatabaseId.ref();
16213
16214 MOZ_ASSERT(mMetadata->mFilePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata->mFilePath.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata->mFilePath.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMetadata->mFilePath.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16214); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mFilePath.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16214); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16215 mMetadata->mFilePath = mDatabaseFilePath.ref();
16216
16217 DatabaseActorInfo* info;
16218 if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) {
16219 AssertMetadataConsistency(*info->mMetadata);
16220 mMetadata = info->mMetadata.clonePtr();
16221 }
16222
16223 Maybe<const CipherKey> maybeKey =
16224 mInPrivateBrowsing ? mFileManager->MutableCipherKeyManagerRef().Get()
16225 : Nothing();
16226
16227 MOZ_RELEASE_ASSERT(mInPrivateBrowsing == maybeKey.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInPrivateBrowsing == maybeKey.isSome())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInPrivateBrowsing == maybeKey.isSome()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mInPrivateBrowsing == maybeKey.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16227
); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()"
")"); do { MOZ_CrashSequence(__null, 16227); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16228
16229 const bool directoryLockInvalidated = mDirectoryLockHandle->Invalidated();
16230
16231 // XXX Shouldn't Manager() return already_AddRefed when
16232 // PBackgroundIDBFactoryParent is declared refcounted?
16233 mDatabase = MakeSafeRefPtr<Database>(
16234 SafeRefPtr{static_cast<Factory*>(Manager()),
16235 AcquireStrongRefFromRawPtr{}},
16236 mCommonParams.principalInfo(), mContentParentId, mOriginMetadata,
16237 mTelemetryId, mMetadata.clonePtr(), mFileManager.clonePtr(),
16238 std::move(mDirectoryLockHandle), mInPrivateBrowsing, maybeKey);
16239
16240 if (info) {
16241 info->mLiveDatabases.insertBack(mDatabase.unsafeGetRawPtr());
16242 } else {
16243 // XXX Maybe use LookupOrInsertWith above, to avoid a second lookup here?
16244 info = gLiveDatabaseHashtable
16245 ->InsertOrUpdate(
16246 mDatabaseId.ref(),
16247 MakeUnique<DatabaseActorInfo>(
16248 mMetadata.clonePtr(),
16249 WrapNotNullUnchecked(mDatabase.unsafeGetRawPtr())))
16250 .get();
16251 }
16252
16253 if (directoryLockInvalidated) {
16254 mDatabase->Invalidate();
16255 }
16256
16257 // Balanced in Database::CleanupMetadata().
16258 IncreaseBusyCount();
16259}
16260
16261nsresult OpenDatabaseOp::EnsureDatabaseActorIsAlive() {
16262 AssertIsOnOwningThread();
16263 MOZ_ASSERT(mState == State::DatabaseWorkVersionChange ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkVersionChange || mState
== State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkVersionChange
|| mState == State::SendingResults))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16264
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16264); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16264 mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkVersionChange || mState
== State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkVersionChange
|| mState == State::SendingResults))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16264
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16264); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16265 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16265); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 16265); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16266 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16266
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 16266); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16267
16268 EnsureDatabaseActor();
16269
16270 if (mDatabase->IsActorAlive()) {
16271 return NS_OK;
16272 }
16273
16274 auto* const factory = static_cast<Factory*>(Manager());
16275
16276 QM_TRY_INSPECT(const auto& spec, MetadataToSpec())auto tryResult1277 = (MetadataToSpec()); if ((__builtin_expect
(!!(tryResult1277.isErr()), 0))) { mozilla::dom::quota::HandleError
("MetadataToSpec()", tryResult1277.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16276, mozilla::dom::quota::Severity::Error); return tryResult1277
.propagateErr(); } const auto& spec = tryResult1277.inspect
();
;
16277
16278 mDatabase->SetActorAlive();
16279
16280 if (!factory->SendPBackgroundIDBDatabaseConstructor(
16281 mDatabase.unsafeGetRawPtr(), spec, WrapNotNull(this))) {
16282 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16282, "UnknownErr")
;
16283 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16284 }
16285
16286 if (mDatabase->IsInvalidated()) {
16287 Unused << mDatabase->SendInvalidate();
16288 }
16289
16290 return NS_OK;
16291}
16292
16293Result<DatabaseSpec, nsresult> OpenDatabaseOp::MetadataToSpec() const {
16294 AssertIsOnOwningThread();
16295 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16295); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { MOZ_CrashSequence(__null, 16295); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16296
16297 DatabaseSpec spec;
16298 spec.metadata() = mMetadata->mCommonMetadata;
16299
16300 QM_TRY_UNWRAP(spec.objectStores(),auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16301 TransformIntoNewArrayAbortOnErr(auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16302 mMetadata->mObjectStores,auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16303 [](const auto& objectStoreEntry)auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16304 -> mozilla::Result<ObjectStoreSpec, nsresult> {auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16305 FullObjectStoreMetadata* metadata =auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16306 objectStoreEntry.GetWeak();auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16307 MOZ_ASSERT(objectStoreEntry.GetKey());auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16308 MOZ_ASSERT(metadata);auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16309
16310 ObjectStoreSpec objectStoreSpec;auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16311 objectStoreSpec.metadata() = metadata->mCommonMetadata;auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16312
16313 QM_TRY_UNWRAP(auto indexes,auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16314 TransformIntoNewArray(auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16315 metadata->mIndexes,auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16316 [](const auto& indexEntry) {auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16317 FullIndexMetadata* indexMetadata =auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16318 indexEntry.GetWeak();auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16319 MOZ_ASSERT(indexEntry.GetKey());auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16320 MOZ_ASSERT(indexMetadata);auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16321
16322 return indexMetadata->mCommonMetadata;auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16323 },auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16324 fallible));auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16325
16326 objectStoreSpec.indexes() = std::move(indexes);auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16327
16328 return objectStoreSpec;auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16329 },auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
16330 fallible))auto tryResult1279 = (TransformIntoNewArrayAbortOnErr( mMetadata
->mObjectStores, [](const auto& objectStoreEntry) ->
mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata
* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(objectStoreEntry
.GetKey())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("objectStoreEntry.GetKey()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16307
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16307); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(metadata)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes
, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata
= indexEntry.GetWeak(); do { static_assert( mozilla::detail::
AssertionConditionType<decltype(indexEntry.GetKey())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false);
MOZ_ReportAssertionFailure("indexEntry.GetKey()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16319); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { MOZ_CrashSequence(__null, 16319); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(indexMetadata)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("indexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { MOZ_CrashSequence(__null, 16320); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1278.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16324, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( mMetadata->mObjectStores, [](const auto& objectStoreEntry) -> mozilla::Result<ObjectStoreSpec, nsresult> { FullObjectStoreMetadata* metadata = objectStoreEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(objectStoreEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(objectStoreEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"objectStoreEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16307); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16307); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(metadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"metadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16308); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16308); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1278 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexEntry.GetKey()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16319); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"indexMetadata\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16320); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexEntry.GetKey())>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexEntry.GetKey()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexEntry.GetKey()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16319); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16319); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(indexMetadata)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"indexMetadata\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16320); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16320); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1278.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16324, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); } auto indexes = tryResult1278.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1279.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16330, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); } spec.objectStores() = tryResult1279.unwrap
();
;
16331
16332 return spec;
16333}
16334
16335#ifdef DEBUG1
16336
16337void OpenDatabaseOp::AssertMetadataConsistency(
16338 const FullDatabaseMetadata& aMetadata) {
16339 AssertIsOnBackgroundThread();
16340
16341 const FullDatabaseMetadata& thisDB = *mMetadata;
16342 const FullDatabaseMetadata& otherDB = aMetadata;
16343
16344 MOZ_ASSERT(&thisDB != &otherDB)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(&thisDB != &otherDB)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(&thisDB != &otherDB)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("&thisDB != &otherDB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16344
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "&thisDB != &otherDB"
")"); do { MOZ_CrashSequence(__null, 16344); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16345
16346 MOZ_ASSERT(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata
.name())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata
.name()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16346
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name()"
")"); do { MOZ_CrashSequence(__null, 16346); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16347 MOZ_ASSERT(thisDB.mCommonMetadata.version() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata
.version())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.version() ==
otherDB.mCommonMetadata.version()))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16348
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
")"); do { MOZ_CrashSequence(__null, 16348); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16348 otherDB.mCommonMetadata.version())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata
.version())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.version() ==
otherDB.mCommonMetadata.version()))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16348
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
")"); do { MOZ_CrashSequence(__null, 16348); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16349 MOZ_ASSERT(thisDB.mCommonMetadata.persistenceType() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mCommonMetadata.persistenceType() == otherDB.
mCommonMetadata.persistenceType())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.persistenceType
() == otherDB.mCommonMetadata.persistenceType()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16350
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
")"); do { MOZ_CrashSequence(__null, 16350); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16350 otherDB.mCommonMetadata.persistenceType())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mCommonMetadata.persistenceType() == otherDB.
mCommonMetadata.persistenceType())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisDB.mCommonMetadata.persistenceType
() == otherDB.mCommonMetadata.persistenceType()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16350
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
")"); do { MOZ_CrashSequence(__null, 16350); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16351 MOZ_ASSERT(thisDB.mDatabaseId == otherDB.mDatabaseId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mDatabaseId == otherDB.mDatabaseId)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(thisDB.mDatabaseId == otherDB.mDatabaseId))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisDB.mDatabaseId == otherDB.mDatabaseId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16351
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mDatabaseId == otherDB.mDatabaseId"
")"); do { MOZ_CrashSequence(__null, 16351); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16352 MOZ_ASSERT(thisDB.mFilePath == otherDB.mFilePath)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mFilePath == otherDB.mFilePath)>::isValid,
"invalid assertion condition"); if ((__builtin_expect(!!(!(!
!(thisDB.mFilePath == otherDB.mFilePath))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thisDB.mFilePath == otherDB.mFilePath"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mFilePath == otherDB.mFilePath"
")"); do { MOZ_CrashSequence(__null, 16352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16353
16354 // |thisDB| reflects the latest objectStore and index ids that have committed
16355 // to disk. The in-memory metadata |otherDB| keeps track of objectStores and
16356 // indexes that were created and then removed as well, so the next ids for
16357 // |otherDB| may be higher than for |thisDB|.
16358 MOZ_ASSERT(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16358)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 16358); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16359 MOZ_ASSERT(thisDB.mNextIndexId <= otherDB.mNextIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mNextIndexId <= otherDB.mNextIndexId)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(thisDB.mNextIndexId <= otherDB.mNextIndexId))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("thisDB.mNextIndexId <= otherDB.mNextIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16359
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextIndexId <= otherDB.mNextIndexId"
")"); do { MOZ_CrashSequence(__null, 16359); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16360
16361 MOZ_ASSERT(thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisDB.mObjectStores.Count() == otherDB.mObjectStores
.Count())>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(thisDB.mObjectStores.Count() == otherDB
.mObjectStores.Count()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16361
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count()"
")"); do { MOZ_CrashSequence(__null, 16361); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16362
16363 for (const auto& thisObjectStore : thisDB.mObjectStores.Values()) {
16364 MOZ_ASSERT(thisObjectStore)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisObjectStore"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16364
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore" ")"
); do { MOZ_CrashSequence(__null, 16364); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16365 MOZ_ASSERT(!thisObjectStore->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!thisObjectStore->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!thisObjectStore->mDeleted
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!thisObjectStore->mDeleted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisObjectStore->mDeleted"
")"); do { MOZ_CrashSequence(__null, 16365); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16366
16367 auto otherObjectStore = MatchMetadataNameOrId(
16368 otherDB.mObjectStores, thisObjectStore->mCommonMetadata.id());
16369 MOZ_ASSERT(otherObjectStore)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(otherObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(otherObjectStore))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("otherObjectStore"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16369
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherObjectStore"
")"); do { MOZ_CrashSequence(__null, 16369); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16370
16371 MOZ_ASSERT(thisObjectStore != &otherObjectStore.ref())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore != &otherObjectStore.ref())>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(thisObjectStore != &otherObjectStore.ref()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore != &otherObjectStore.ref()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16371
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore != &otherObjectStore.ref()"
")"); do { MOZ_CrashSequence(__null, 16371); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16372
16373 MOZ_ASSERT(thisObjectStore->mCommonMetadata.id() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.id() == otherObjectStore
->mCommonMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.id() == otherObjectStore->mCommonMetadata.id()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16374
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
")"); do { MOZ_CrashSequence(__null, 16374); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16374 otherObjectStore->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.id() == otherObjectStore
->mCommonMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.id() == otherObjectStore->mCommonMetadata.id()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16374
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
")"); do { MOZ_CrashSequence(__null, 16374); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16375 MOZ_ASSERT(thisObjectStore->mCommonMetadata.name() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.name() == otherObjectStore
->mCommonMetadata.name())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.name() == otherObjectStore->mCommonMetadata.name()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16376
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
")"); do { MOZ_CrashSequence(__null, 16376); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16376 otherObjectStore->mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.name() == otherObjectStore
->mCommonMetadata.name())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.name() == otherObjectStore->mCommonMetadata.name()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16376
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
")"); do { MOZ_CrashSequence(__null, 16376); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16377 MOZ_ASSERT(thisObjectStore->mCommonMetadata.autoIncrement() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.autoIncrement() ==
otherObjectStore->mCommonMetadata.autoIncrement())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore
->mCommonMetadata.autoIncrement()))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16378
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
")"); do { MOZ_CrashSequence(__null, 16378); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16378 otherObjectStore->mCommonMetadata.autoIncrement())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.autoIncrement() ==
otherObjectStore->mCommonMetadata.autoIncrement())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore
->mCommonMetadata.autoIncrement()))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16378
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
")"); do { MOZ_CrashSequence(__null, 16378); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16379 MOZ_ASSERT(thisObjectStore->mCommonMetadata.keyPath() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore
->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.keyPath() == otherObjectStore->mCommonMetadata.keyPath())
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16380
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
")"); do { MOZ_CrashSequence(__null, 16380); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16380 otherObjectStore->mCommonMetadata.keyPath())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore
->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mCommonMetadata
.keyPath() == otherObjectStore->mCommonMetadata.keyPath())
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16380
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
")"); do { MOZ_CrashSequence(__null, 16380); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16381 // mNextAutoIncrementId and mCommittedAutoIncrementId may be modified
16382 // concurrently with this OpenOp, so it is not possible to assert equality
16383 // here. It's also possible that we've written the new ids to disk but not
16384 // yet updated the in-memory count.
16385 // TODO The first part of the comment should probably be rephrased. I think
16386 // it still applies but it sounds as if this were thread-unsafe like it was
16387 // before, which isn't true anymore.
16388 {
16389 const auto&& thisAutoIncrementIds =
16390 thisObjectStore->mAutoIncrementIds.Lock();
16391 const auto&& otherAutoIncrementIds =
16392 otherObjectStore->mAutoIncrementIds.Lock();
16393
16394 MOZ_ASSERT(thisAutoIncrementIds->next <= otherAutoIncrementIds->next)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisAutoIncrementIds->next <= otherAutoIncrementIds
->next)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisAutoIncrementIds->next <=
otherAutoIncrementIds->next))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("thisAutoIncrementIds->next <= otherAutoIncrementIds->next"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16394
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->next <= otherAutoIncrementIds->next"
")"); do { MOZ_CrashSequence(__null, 16394); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16395 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds
->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds
->next)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <=
otherAutoIncrementIds->committed || thisAutoIncrementIds->
committed == otherAutoIncrementIds->next))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16397
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { MOZ_CrashSequence(__null, 16397); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16396 thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds
->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds
->next)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <=
otherAutoIncrementIds->committed || thisAutoIncrementIds->
committed == otherAutoIncrementIds->next))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16397
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { MOZ_CrashSequence(__null, 16397); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16397 thisAutoIncrementIds->committed == otherAutoIncrementIds->next)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisAutoIncrementIds->committed <= otherAutoIncrementIds
->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds
->next)>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(thisAutoIncrementIds->committed <=
otherAutoIncrementIds->committed || thisAutoIncrementIds->
committed == otherAutoIncrementIds->next))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16397
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { MOZ_CrashSequence(__null, 16397); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16398 }
16399 MOZ_ASSERT(!otherObjectStore->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!otherObjectStore->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!otherObjectStore->mDeleted
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!otherObjectStore->mDeleted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16399); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherObjectStore->mDeleted"
")"); do { MOZ_CrashSequence(__null, 16399); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16400
16401 MOZ_ASSERT(thisObjectStore->mIndexes.Count() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mIndexes.Count() == otherObjectStore
->mIndexes.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mIndexes
.Count() == otherObjectStore->mIndexes.Count()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16402
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
")"); do { MOZ_CrashSequence(__null, 16402); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16402 otherObjectStore->mIndexes.Count())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisObjectStore->mIndexes.Count() == otherObjectStore
->mIndexes.Count())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisObjectStore->mIndexes
.Count() == otherObjectStore->mIndexes.Count()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16402
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
")"); do { MOZ_CrashSequence(__null, 16402); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16403
16404 for (const auto& thisIndex : thisObjectStore->mIndexes.Values()) {
16405 MOZ_ASSERT(thisIndex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("thisIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16405); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex"
")"); do { MOZ_CrashSequence(__null, 16405); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16406 MOZ_ASSERT(!thisIndex->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!thisIndex->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!thisIndex->mDeleted))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!thisIndex->mDeleted"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16406
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisIndex->mDeleted"
")"); do { MOZ_CrashSequence(__null, 16406); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16407
16408 auto otherIndex = MatchMetadataNameOrId(otherObjectStore->mIndexes,
16409 thisIndex->mCommonMetadata.id());
16410 MOZ_ASSERT(otherIndex)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(otherIndex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(otherIndex))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("otherIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16410); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherIndex"
")"); do { MOZ_CrashSequence(__null, 16410); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16411
16412 MOZ_ASSERT(thisIndex != &otherIndex.ref())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex != &otherIndex.ref())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex != &otherIndex
.ref()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("thisIndex != &otherIndex.ref()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16412); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex != &otherIndex.ref()"
")"); do { MOZ_CrashSequence(__null, 16412); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16413
16414 MOZ_ASSERT(thisIndex->mCommonMetadata.id() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.id() == otherIndex->
mCommonMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.id() == otherIndex->mCommonMetadata.id()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16415
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
")"); do { MOZ_CrashSequence(__null, 16415); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16415 otherIndex->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.id() == otherIndex->
mCommonMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.id() == otherIndex->mCommonMetadata.id()))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16415
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
")"); do { MOZ_CrashSequence(__null, 16415); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16416 MOZ_ASSERT(thisIndex->mCommonMetadata.name() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.name() == otherIndex->
mCommonMetadata.name())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.name() == otherIndex->mCommonMetadata.name()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16417
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
")"); do { MOZ_CrashSequence(__null, 16417); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16417 otherIndex->mCommonMetadata.name())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.name() == otherIndex->
mCommonMetadata.name())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.name() == otherIndex->mCommonMetadata.name()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16417
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
")"); do { MOZ_CrashSequence(__null, 16417); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16418 MOZ_ASSERT(thisIndex->mCommonMetadata.keyPath() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.keyPath() == otherIndex
->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.keyPath() == otherIndex->mCommonMetadata.keyPath()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16419
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
")"); do { MOZ_CrashSequence(__null, 16419); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16419 otherIndex->mCommonMetadata.keyPath())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.keyPath() == otherIndex
->mCommonMetadata.keyPath())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.keyPath() == otherIndex->mCommonMetadata.keyPath()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16419
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
")"); do { MOZ_CrashSequence(__null, 16419); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16420 MOZ_ASSERT(thisIndex->mCommonMetadata.unique() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.unique() == otherIndex
->mCommonMetadata.unique())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.unique() == otherIndex->mCommonMetadata.unique()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16421
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
")"); do { MOZ_CrashSequence(__null, 16421); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16421 otherIndex->mCommonMetadata.unique())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.unique() == otherIndex
->mCommonMetadata.unique())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.unique() == otherIndex->mCommonMetadata.unique()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16421
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
")"); do { MOZ_CrashSequence(__null, 16421); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16422 MOZ_ASSERT(thisIndex->mCommonMetadata.multiEntry() ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.multiEntry() == otherIndex
->mCommonMetadata.multiEntry())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.multiEntry() == otherIndex->mCommonMetadata.multiEntry())
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16423
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
")"); do { MOZ_CrashSequence(__null, 16423); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16423 otherIndex->mCommonMetadata.multiEntry())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(thisIndex->mCommonMetadata.multiEntry() == otherIndex
->mCommonMetadata.multiEntry())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(thisIndex->mCommonMetadata
.multiEntry() == otherIndex->mCommonMetadata.multiEntry())
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16423
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
")"); do { MOZ_CrashSequence(__null, 16423); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16424 MOZ_ASSERT(!otherIndex->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!otherIndex->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!otherIndex->mDeleted))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("!otherIndex->mDeleted"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16424
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherIndex->mDeleted"
")"); do { MOZ_CrashSequence(__null, 16424); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16425 }
16426 }
16427}
16428
16429#endif // DEBUG
16430
16431nsresult OpenDatabaseOp::VersionChangeOp::DoDatabaseWork(
16432 DatabaseConnection* aConnection) {
16433 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16433); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 16433); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16434 aConnection->AssertIsOnConnectionThread();
16435 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16435
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 16435); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16436 MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16436
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 16436); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16437
16438 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16438)
||
16439 !OperationMayProceed()) {
16440 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16440, "UnknownErr")
;
16441 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16442 }
16443
16444 AUTO_PROFILER_LABEL("OpenDatabaseOp::VersionChangeOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16444( "OpenDatabaseOp::VersionChangeOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16445
16446 IDB_LOG_MARK_PARENT_TRANSACTION("Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
16447 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
16448 mTransactionLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Beginning database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB Start",
mozilla::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber)
;
16449
16450 Transaction().SetActiveOnConnectionThread();
16451
16452 QM_TRY(MOZ_TO_RESULT({auto tryResult1280 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect
(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16453, mozilla::dom::quota::Severity::Error); return tryResult1280
.propagateErr(); }}
16453 aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult1280 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect
(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16453, mozilla::dom::quota::Severity::Error); return tryResult1280
.propagateErr(); }}
;
16454
16455 // The parameter names are not used, parameters are bound by index only
16456 // locally in the same function.
16457 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1282 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1281
)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16462, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect
(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16462, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); }}; return Ok{}; })))"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16465, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); }}
16458 "UPDATE database SET version = :version;"_ns,{auto tryResult1282 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1281
)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16462, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect
(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16462, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); }}; return Ok{}; })))"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16465, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); }}
16459 ([&self = *this]({auto tryResult1282 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1281
)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16462, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect
(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16462, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); }}; return Ok{}; })))"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16465, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); }}
16460 mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1282 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1281
)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16462, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect
(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16462, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); }}; return Ok{}; })))"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16465, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); }}
16461 QM_TRY(MOZ_TO_RESULT({auto tryResult1282 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1281
)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16462, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect
(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16462, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); }}; return Ok{}; })))"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16465, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); }}
16462 updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion))));{auto tryResult1282 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1281
)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16462, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect
(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16462, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); }}; return Ok{}; })))"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16465, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); }}
16463
16464 return Ok{};{auto tryResult1282 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1281
)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16462, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect
(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16462, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); }}; return Ok{}; })))"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16465, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); }}
16465 })))){auto tryResult1282 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1281
)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1281.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16462, mozilla::dom::quota::Severity::Error); return tryResult1281
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect
(!!(tryResult1282.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1281 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1281.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16462, mozilla::dom::quota::Severity::Error); return tryResult1281.propagateErr(); }}; return Ok{}; })))"
, tryResult1282.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16465, mozilla::dom::quota::Severity::Error); return tryResult1282
.propagateErr(); }}
;
16466
16467 return NS_OK;
16468}
16469
16470nsresult OpenDatabaseOp::VersionChangeOp::SendSuccessResult() {
16471 AssertIsOnOwningThread();
16472 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16472
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 16472); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16473 MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16473
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 16473); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16474 MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16474
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { MOZ_CrashSequence(__null, 16474); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16475
16476 nsresult rv = mOpenDatabaseOp->SendUpgradeNeeded();
16477 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16477)
) {
16478 return rv;
16479 }
16480
16481 return NS_OK;
16482}
16483
16484bool OpenDatabaseOp::VersionChangeOp::SendFailureResult(nsresult aResultCode) {
16485 AssertIsOnOwningThread();
16486 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16486
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 16486); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16487 MOZ_ASSERT(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16487
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 16487); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16488 MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16488
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { MOZ_CrashSequence(__null, 16488); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16489
16490 mOpenDatabaseOp->SetFailureCode(aResultCode);
16491 mOpenDatabaseOp->mState = State::SendingResults;
16492
16493 MOZ_ALWAYS_SUCCEEDS(mOpenDatabaseOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mOpenDatabaseOp->Run())), 1)))), 1))) { } else { do { do {
} while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(mOpenDatabaseOp->Run())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16493
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOpenDatabaseOp->Run())"
")"); do { MOZ_CrashSequence(__null, 16493); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
16494
16495 return false;
16496}
16497
16498void OpenDatabaseOp::VersionChangeOp::Cleanup() {
16499 AssertIsOnOwningThread();
16500 MOZ_ASSERT(mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOpenDatabaseOp))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16500
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")"
); do { MOZ_CrashSequence(__null, 16500); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16501 MOZ_ASSERT(mOpenDatabaseOp->mVersionChangeOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOpenDatabaseOp->mVersionChangeOp == this)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mOpenDatabaseOp->mVersionChangeOp == this))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mOpenDatabaseOp->mVersionChangeOp == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16501
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { MOZ_CrashSequence(__null, 16501); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16502
16503 mOpenDatabaseOp->mVersionChangeOp = nullptr;
16504 mOpenDatabaseOp = nullptr;
16505
16506#ifdef DEBUG1
16507 // A bit hacky but the VersionChangeOp is not generated in response to a
16508 // child request like most other database operations. Do this to make our
16509 // assertions happy.
16510 //
16511 // XXX: Depending on timing, in most cases, NoteActorDestroyed will not have
16512 // been destroyed before, but in some cases it has. This should be reworked in
16513 // a way this hack is not necessary. There are also several similar cases in
16514 // other *Op classes.
16515 if (!IsActorDestroyed()) {
16516 NoteActorDestroyed();
16517 }
16518#endif
16519
16520 TransactionDatabaseOperationBase::Cleanup();
16521}
16522
16523void DeleteDatabaseOp::LoadPreviousVersion(nsIFile& aDatabaseFile) {
16524 AssertIsOnIOThread();
16525 MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16525); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 16525); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16526 MOZ_ASSERT(!mPreviousVersion)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mPreviousVersion)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mPreviousVersion))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!mPreviousVersion"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16526
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPreviousVersion"
")"); do { MOZ_CrashSequence(__null, 16526); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16527
16528 AUTO_PROFILER_LABEL("DeleteDatabaseOp::LoadPreviousVersion", DOM)mozilla::AutoProfilerLabel raiiObject16528( "DeleteDatabaseOp::LoadPreviousVersion"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16529
16530 nsresult rv;
16531
16532 nsCOMPtr<mozIStorageService> ss =
16533 do_GetService(MOZ_STORAGE_SERVICE_CONTRACTID"@mozilla.org/storage" "/service;1", &rv);
16534 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16534)
) {
16535 return;
16536 }
16537
16538 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
16539 MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(idm)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("idm", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16539); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { MOZ_CrashSequence(__null, 16539); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16540
16541 const PersistenceType persistenceType =
16542 mCommonParams.metadata().persistenceType();
16543 const nsAString& databaseName = mCommonParams.metadata().name();
16544
16545 SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager(
16546 persistenceType, mOriginMetadata.mOrigin, databaseName);
16547
16548 if (!fileManager) {
16549 fileManager = MakeSafeRefPtr<DatabaseFileManager>(
16550 persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(),
16551 mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing);
16552 }
16553
16554 const auto maybeKey =
16555 mInPrivateBrowsing
16556 ? Some(fileManager->MutableCipherKeyManagerRef().Ensure())
16557 : Nothing();
16558
16559 MOZ_RELEASE_ASSERT(mInPrivateBrowsing == maybeKey.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInPrivateBrowsing == maybeKey.isSome())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInPrivateBrowsing == maybeKey.isSome()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mInPrivateBrowsing == maybeKey.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16559
); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()"
")"); do { MOZ_CrashSequence(__null, 16559); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16560
16561 // Pass -1 as the directoryLockId to disable quota checking, since we might
16562 // temporarily exceed quota before deleting the database.
16563 QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult1283 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey
)); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16564, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& dbFileUrl = tryResult1283.inspect();
16564 GetDatabaseFileURL(aDatabaseFile, -1, maybeKey), QM_VOID)auto tryResult1283 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey
)); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1283.unwrapErr
(); mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16564, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& dbFileUrl = tryResult1283.inspect();
;
16565
16566 QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1284 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl
)); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16567, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1284.unwrap();
16567 OpenDatabaseAndHandleBusy(*ss, *dbFileUrl), QM_VOID)auto tryResult1284 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl
)); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1284.unwrapErr
(); mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16567, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1284.unwrap();
;
16568
16569#ifdef DEBUG1
16570 {
16571 QM_TRY_INSPECT(const auto& stmt,auto tryResult1285 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1285.inspect();
16572 CreateAndExecuteSingleStepStatement<auto tryResult1285 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1285.inspect();
16573 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1285 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1285.inspect();
16574 *connection, "SELECT name FROM database"_ns),auto tryResult1285 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1285.inspect();
16575 QM_VOID)auto tryResult1285 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1285.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16575, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1285.inspect();
;
16576
16577 QM_TRY(OkIf(stmt), QM_VOID){auto tryResult1286 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect
(!!(tryResult1286.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1286.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16577, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
;
16578
16579 nsString databaseName;
16580 rv = stmt->GetString(0, databaseName);
16581 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16581)
) {
16582 return;
16583 }
16584
16585 MOZ_ASSERT(mCommonParams.metadata().name() == databaseName)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCommonParams.metadata().name() == databaseName)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mCommonParams.metadata().name() == databaseName))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mCommonParams.metadata().name() == databaseName"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16585
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommonParams.metadata().name() == databaseName"
")"); do { MOZ_CrashSequence(__null, 16585); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16586 }
16587#endif
16588
16589 QM_TRY_INSPECT(const auto& stmt,auto tryResult1287 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1287.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16593, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1287.inspect();
16590 CreateAndExecuteSingleStepStatement<auto tryResult1287 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1287.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16593, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1287.inspect();
16591 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1287 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1287.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16593, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1287.inspect();
16592 *connection, "SELECT version FROM database"_ns),auto tryResult1287 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1287.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16593, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1287.inspect();
16593 QM_VOID)auto tryResult1287 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1287.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16593, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1287.inspect();
;
16594
16595 QM_TRY(OkIf(stmt), QM_VOID){auto tryResult1288 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect
(!!(tryResult1288.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1288.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16595, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
;
16596
16597 int64_t version;
16598 rv = stmt->GetInt64(0, &version);
16599 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16599)
) {
16600 return;
16601 }
16602
16603 mPreviousVersion = uint64_t(version);
16604}
16605
16606nsresult DeleteDatabaseOp::DatabaseOpen() {
16607 AssertIsOnOwningThread();
16608 MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16608); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { MOZ_CrashSequence(__null, 16608); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16609
16610 nsresult rv = SendToIOThread();
16611 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16611)
) {
16612 return rv;
16613 }
16614
16615 return NS_OK;
16616}
16617
16618nsresult DeleteDatabaseOp::DoDatabaseWork() {
16619 AssertIsOnIOThread();
16620 MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16620); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 16620); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16621 MOZ_ASSERT(mOriginMetadata.mPersistenceType ==do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOriginMetadata.mPersistenceType == mCommonParams.metadata
().persistenceType())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mPersistenceType
== mCommonParams.metadata().persistenceType()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16622
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
")"); do { MOZ_CrashSequence(__null, 16622); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16622 mCommonParams.metadata().persistenceType())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOriginMetadata.mPersistenceType == mCommonParams.metadata
().persistenceType())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOriginMetadata.mPersistenceType
== mCommonParams.metadata().persistenceType()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16622
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
")"); do { MOZ_CrashSequence(__null, 16622); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16623
16624 AUTO_PROFILER_LABEL("DeleteDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16624( "DeleteDatabaseOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16625
16626 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16626)
||
16627 !OperationMayProceed()) {
16628 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16628, "UnknownErr")
;
16629 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16630 }
16631
16632 const nsAString& databaseName = mCommonParams.metadata().name();
16633
16634 QuotaManager* const quotaManager = QuotaManager::Get();
16635 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16635); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 16635); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16636
16637 QM_TRY_UNWRAP(auto directory,auto tryResult1289 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16638, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } auto directory = tryResult1289.unwrap();
16638 quotaManager->GetOriginDirectory(mOriginMetadata))auto tryResult1289 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16638, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } auto directory = tryResult1289.unwrap();
;
16639
16640 QM_TRY(MOZ_TO_RESULT({auto tryResult1290 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1290
)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16641, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}
16641 directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1290 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1290
)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1290.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16641, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); }}
;
16642
16643 QM_TRY_UNWRAP(mDatabaseDirectoryPath, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1291 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(directory)>::GetPath), (directory))); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory))"
, tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16644, mozilla::dom::quota::Severity::Error); return tryResult1291
.propagateErr(); } mDatabaseDirectoryPath = tryResult1291.unwrap
();
16644 nsString, directory, GetPath))auto tryResult1291 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(directory)>::GetPath), (directory))); if ((__builtin_expect
(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory))"
, tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16644, mozilla::dom::quota::Severity::Error); return tryResult1291
.propagateErr(); } mDatabaseDirectoryPath = tryResult1291.unwrap
();
;
16645
16646 mDatabaseFilenameBase =
16647 GetDatabaseFilenameBase(databaseName, mOriginMetadata.mIsPrivate);
16648
16649 QM_TRY_INSPECT(auto tryResult1292 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1292.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16651, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const auto& dbFile = tryResult1292.inspect
();
16650 const auto& dbFile,auto tryResult1292 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1292.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16651, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const auto& dbFile = tryResult1292.inspect
();
16651 CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix))auto tryResult1292 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1292.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16651, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); } const auto& dbFile = tryResult1292.inspect
();
;
16652
16653#ifdef DEBUG1
16654 {
16655 QM_TRY_INSPECT(auto tryResult1293 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1293.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16657, mozilla::dom::quota::Severity::Error); return tryResult1293
.propagateErr(); } const auto& databaseFilePath = tryResult1293
.inspect();
16656 const auto& databaseFilePath,auto tryResult1293 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1293.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16657, mozilla::dom::quota::Severity::Error); return tryResult1293
.propagateErr(); } const auto& databaseFilePath = tryResult1293
.inspect();
16657 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1293 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1293.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1293.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16657, mozilla::dom::quota::Severity::Error); return tryResult1293
.propagateErr(); } const auto& databaseFilePath = tryResult1293
.inspect();
;
16658
16659 MOZ_ASSERT(databaseFilePath == mDatabaseFilePath.ref())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(databaseFilePath == mDatabaseFilePath.ref())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(databaseFilePath == mDatabaseFilePath.ref()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("databaseFilePath == mDatabaseFilePath.ref()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16659
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()"
")"); do { MOZ_CrashSequence(__null, 16659); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16660 }
16661#endif
16662
16663 QM_TRY_INSPECT(const bool& exists,auto tryResult1294 = (::mozilla::ToResultInvokeMember( (dbFile
), &::mozilla::detail::DerefedType<decltype(dbFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1294.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists)"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16664, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); } const bool& exists = tryResult1294.inspect
();
16664 MOZ_TO_RESULT_INVOKE_MEMBER(dbFile, Exists))auto tryResult1294 = (::mozilla::ToResultInvokeMember( (dbFile
), &::mozilla::detail::DerefedType<decltype(dbFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1294.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists)"
, tryResult1294.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16664, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); } const bool& exists = tryResult1294.inspect
();
;
16665
16666 if (exists) {
16667 // Parts of this function may fail but that shouldn't prevent us from
16668 // deleting the file eventually.
16669 LoadPreviousVersion(*dbFile);
16670
16671 mState = State::BeginVersionChange;
16672 } else {
16673 mState = State::SendingResults;
16674 }
16675
16676 QM_TRY(MOZ_TO_RESULT({auto tryResult1295 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1295)::ok_type>); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16677, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); }}
16677 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1295 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1295)::ok_type>); if ((__builtin_expect
(!!(tryResult1295.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16677, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); }}
;
16678
16679 return NS_OK;
16680}
16681
16682nsresult DeleteDatabaseOp::BeginVersionChange() {
16683 AssertIsOnOwningThread();
16684 MOZ_ASSERT(mState == State::BeginVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::BeginVersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::BeginVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::BeginVersionChange", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { MOZ_CrashSequence(__null, 16684); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16685 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16685); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16685); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16686
16687 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16687)
||
16688 IsActorDestroyed()) {
16689 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16689, "UnknownErr")
;
16690 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1296 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1296
)::ok_type>); if ((__builtin_expect(!!(tryResult1296.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16690, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); }}
;
16691 }
16692
16693 DatabaseActorInfo* info;
16694 if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) {
16695 MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16695
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16695); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16696
16697 nsresult rv =
16698 SendVersionChangeMessages(info, Nothing(), mPreviousVersion, Nothing());
16699 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16699)
) {
16700 return rv;
16701 }
16702
16703 if (!mMaybeBlockedDatabases.IsEmpty()) {
16704 // If the actor gets destroyed, mWaitingFactoryOp will hold the last
16705 // strong reference to us.
16706 info->mWaitingFactoryOp = this;
16707
16708 mState = State::WaitingForOtherDatabasesToClose;
16709 return NS_OK;
16710 }
16711 }
16712
16713 // No other databases need to be notified, just make sure that all
16714 // transactions are complete.
16715 WaitForTransactions();
16716 return NS_OK;
16717}
16718
16719bool DeleteDatabaseOp::AreActorsAlive() {
16720 AssertIsOnOwningThread();
16721
16722 return !IsActorDestroyed();
16723}
16724
16725nsresult DeleteDatabaseOp::DispatchToWorkThread() {
16726 AssertIsOnOwningThread();
16727 MOZ_ASSERT(mState == State::WaitingForTransactionsToComplete)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForTransactionsToComplete)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForTransactionsToComplete)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForTransactionsToComplete"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16727
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete"
")"); do { MOZ_CrashSequence(__null, 16727); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16728 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16728); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16728); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16729
16730 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread
(), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16730)
||
16731 IsActorDestroyed()) {
16732 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16732, "UnknownErr")
;
16733 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16734 }
16735
16736 mState = State::DatabaseWorkVersionChange;
16737
16738 RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this);
16739
16740 QuotaManager* const quotaManager = QuotaManager::Get();
16741 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16741); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 16741); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16742
16743 nsresult rv = quotaManager->IOThread()->Dispatch(versionChangeOp.forget(),
16744 NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
16745 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16745)
) {
16746 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16746, "UnknownErr")
;
16747 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16748 }
16749
16750 return NS_OK;
16751}
16752
16753void DeleteDatabaseOp::SendBlockedNotification() {
16754 AssertIsOnOwningThread();
16755 MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::WaitingForOtherDatabasesToClose)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mState == State::WaitingForOtherDatabasesToClose))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::WaitingForOtherDatabasesToClose"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16755
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { MOZ_CrashSequence(__null, 16755); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16756
16757 if (!IsActorDestroyed()) {
16758 Unused << SendBlocked(mPreviousVersion);
16759 }
16760}
16761
16762nsresult DeleteDatabaseOp::DoVersionUpdate() {
16763 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16763
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 16763); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16764}
16765
16766void DeleteDatabaseOp::SendResults() {
16767 AssertIsOnOwningThread();
16768 MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16768); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 16768); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16769 MOZ_ASSERT(mMaybeBlockedDatabases.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeBlockedDatabases.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeBlockedDatabases.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeBlockedDatabases.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16769); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 16769); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16770
16771 DebugOnly<DatabaseActorInfo*> info = nullptr;
16772 MOZ_ASSERT_IF(mDatabaseId.isSome() && gLiveDatabaseHashtable &&do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16774
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16774); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
16773 gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info),do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16774
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16774); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
16774 !info->mWaitingFactoryOp)do { if (mDatabaseId.isSome() && gLiveDatabaseHashtable
&& gLiveDatabaseHashtable->Get(mDatabaseId.ref(),
&info)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16774
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16774); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16775
16776 if (!IsActorDestroyed()) {
16777 FactoryRequestResponse response;
16778
16779 if (!HasFailed()) {
16780 response = DeleteDatabaseRequestResponse(mPreviousVersion);
16781 } else {
16782 response = ClampResultCode(ResultCode());
16783 }
16784
16785 Unused << PBackgroundIDBFactoryRequestParent::Send__delete__(this,
16786 response);
16787 }
16788
16789 {
16790 auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle);
16791 }
16792
16793 CleanupMetadata();
16794
16795 FinishSendResults();
16796}
16797
16798nsresult DeleteDatabaseOp::VersionChangeOp::RunOnIOThread() {
16799 AssertIsOnIOThread();
16800 MOZ_ASSERT(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16800
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 16800); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16801
16802 AUTO_PROFILER_LABEL("DeleteDatabaseOp::VersionChangeOp::RunOnIOThread", DOM)mozilla::AutoProfilerLabel raiiObject16802( "DeleteDatabaseOp::VersionChangeOp::RunOnIOThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16803
16804 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16804)
||
16805 !OperationMayProceed()) {
16806 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16806, "UnknownErr")
;
16807 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16808 }
16809
16810 const PersistenceType& persistenceType =
16811 mDeleteDatabaseOp->mCommonParams.metadata().persistenceType();
16812
16813 QuotaManager* quotaManager =
16814 mDeleteDatabaseOp->mEnforcingQuota ? QuotaManager::Get() : nullptr;
16815
16816 MOZ_ASSERT_IF(mDeleteDatabaseOp->mEnforcingQuota, quotaManager)do { if (mDeleteDatabaseOp->mEnforcingQuota) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(quotaManager
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(quotaManager))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 16816); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16817
16818 nsCOMPtr<nsIFile> directory =
16819 GetFileForPath(mDeleteDatabaseOp->mDatabaseDirectoryPath);
16820 if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16820)
) {
16821 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16821, "UnknownErr")
;
16822 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16823 }
16824
16825 nsresult rv = RemoveDatabaseFilesAndDirectory(
16826 *directory, mDeleteDatabaseOp->mDatabaseFilenameBase, quotaManager,
16827 persistenceType, mDeleteDatabaseOp->mOriginMetadata,
16828 mDeleteDatabaseOp->mCommonParams.metadata().name());
16829 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16829)
) {
16830 return rv;
16831 }
16832
16833 rv = mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
16834 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16834)
) {
16835 return rv;
16836 }
16837
16838 return NS_OK;
16839}
16840
16841void DeleteDatabaseOp::VersionChangeOp::RunOnOwningThread() {
16842 AssertIsOnOwningThread();
16843 MOZ_ASSERT(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16843
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { MOZ_CrashSequence(__null, 16843); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16844
16845 const RefPtr<DeleteDatabaseOp> deleteOp = std::move(mDeleteDatabaseOp);
16846
16847 if (deleteOp->IsActorDestroyed()) {
16848 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16848, "UnknownErr")
;
16849 deleteOp->SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
16850 } else if (HasFailed()) {
16851 deleteOp->SetFailureCodeIfUnset(ResultCode());
16852 } else {
16853 DatabaseActorInfo* info;
16854
16855 // Inform all the other databases that they are now invalidated. That
16856 // should remove the previous metadata from our table.
16857 if (gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref(), &info)) {
16858 MOZ_ASSERT(!info->mLiveDatabases.isEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mLiveDatabases.isEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mLiveDatabases.isEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!info->mLiveDatabases.isEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16858); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()"
")"); do { MOZ_CrashSequence(__null, 16858); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16859 MOZ_ASSERT(!info->mWaitingFactoryOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!info->mWaitingFactoryOp)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!info->mWaitingFactoryOp)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!info->mWaitingFactoryOp"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16859
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { MOZ_CrashSequence(__null, 16859); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16860
16861 nsTArray<SafeRefPtr<Database>> liveDatabases;
16862 if (NS_WARN_IF(!liveDatabases.SetCapacity(info->mLiveDatabases.length(),NS_warn_if_impl(!liveDatabases.SetCapacity(info->mLiveDatabases
.length(), fallible), "!liveDatabases.SetCapacity(info->mLiveDatabases.length(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16863
)
16863 fallible))NS_warn_if_impl(!liveDatabases.SetCapacity(info->mLiveDatabases
.length(), fallible), "!liveDatabases.SetCapacity(info->mLiveDatabases.length(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16863
)
) {
16864 deleteOp->SetFailureCode(NS_ERROR_OUT_OF_MEMORY);
16865 } else {
16866 std::transform(info->mLiveDatabases.begin(), info->mLiveDatabases.end(),
16867 MakeBackInserter(liveDatabases),
16868 [](Database* const aDatabase) -> SafeRefPtr<Database> {
16869 return {aDatabase, AcquireStrongRefFromRawPtr{}};
16870 });
16871
16872#ifdef DEBUG1
16873 // The code below should result in the deletion of |info|. Set to null
16874 // here to make sure we find invalid uses later.
16875 info = nullptr;
16876#endif
16877
16878 for (const auto& database : liveDatabases) {
16879 database->Invalidate();
16880 }
16881
16882 MOZ_ASSERT(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId
.ref()))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId
.ref())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16882
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref())"
")"); do { MOZ_CrashSequence(__null, 16882); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16883 }
16884 }
16885 }
16886
16887 // We hold a strong ref to the deleteOp, so it's safe to call Run() directly.
16888
16889 deleteOp->mState = State::SendingResults;
16890 MOZ_ALWAYS_SUCCEEDS(deleteOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(deleteOp->Run())), 1)))), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "NS_SUCCEEDED(deleteOp->Run())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16890
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(deleteOp->Run())"
")"); do { MOZ_CrashSequence(__null, 16890); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
16891
16892#ifdef DEBUG1
16893 // A bit hacky but the DeleteDatabaseOp::VersionChangeOp is not really a
16894 // normal database operation that is tied to an actor. Do this to make our
16895 // assertions happy.
16896 NoteActorDestroyed();
16897#endif
16898}
16899
16900nsresult DeleteDatabaseOp::VersionChangeOp::Run() {
16901 nsresult rv;
16902
16903 if (IsOnIOThread()) {
16904 rv = RunOnIOThread();
16905 } else {
16906 RunOnOwningThread();
16907 rv = NS_OK;
16908 }
16909
16910 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16910)
) {
16911 SetFailureCodeIfUnset(rv);
16912
16913 MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16913
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 16913); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
16914 }
16915
16916 return NS_OK;
16917}
16918
16919nsresult GetDatabasesOp::DatabasesNotAvailable() {
16920 AssertIsOnIOThread();
16921 MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16921); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 16921); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16922
16923 mState = State::SendingResults;
16924
16925 QM_TRY(MOZ_TO_RESULT({auto tryResult1297 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1297)::ok_type>); if ((__builtin_expect
(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16926, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); }}
16926 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1297 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1297)::ok_type>); if ((__builtin_expect
(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16926, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); }}
;
16927
16928 return NS_OK;
16929}
16930
16931nsresult GetDatabasesOp::DoDirectoryWork() {
16932 AssertIsOnIOThread();
16933 MOZ_ASSERT(mState == State::DirectoryWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DirectoryWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DirectoryWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DirectoryWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16933); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen"
")"); do { MOZ_CrashSequence(__null, 16933); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16934
16935 // This state (DirectoryWorkOpen) runs immediately on the I/O thread, before
16936 // waiting for existing factory operations to complete (at which point
16937 // DoDatabaseWork will be invoked). To match the spec, we must snapshot the
16938 // current state of any databases that are being created (version = 0) or
16939 // upgraded (version >= 1) now. If we only sampled these values in
16940 // DoDatabaseWork, we would only see their post-creation/post-upgrade
16941 // versions, which would be incorrect.
16942
16943 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
16944 MOZ_ASSERT(idm)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(idm)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(idm))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("idm", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16944); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { MOZ_CrashSequence(__null, 16944); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16945
16946 const auto& fileManagers =
16947 idm->GetFileManagers(mPersistenceType, mOriginMetadata.mOrigin);
16948
16949 for (const auto& fileManager : fileManagers) {
16950 auto& metadata =
16951 mDatabaseMetadataTable.LookupOrInsert(fileManager->DatabaseFilePath());
16952 metadata.name() = fileManager->DatabaseName();
16953 metadata.version() = fileManager->DatabaseVersion();
16954 }
16955
16956 // Must set this before dispatching otherwise we will race with the IO thread.
16957 mState = State::DirectoryWorkDone;
16958
16959 QM_TRY(MOZ_TO_RESULT(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))){auto tryResult1298 = (ToResult(mOwningEventTarget->Dispatch
(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::
is_empty_v<typename decltype(tryResult1298)::ok_type>);
if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16959, mozilla::dom::quota::Severity::Error); return tryResult1298
.propagateErr(); }}
;
16960
16961 return NS_OK;
16962}
16963
16964nsresult GetDatabasesOp::DatabaseOpen() {
16965 AssertIsOnOwningThread();
16966 MOZ_ASSERT(mState == State::DatabaseOpenPending)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseOpenPending)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseOpenPending
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseOpenPending", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16966); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { MOZ_CrashSequence(__null, 16966); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16967
16968 nsresult rv = SendToIOThread();
16969 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16969)
) {
16970 return rv;
16971 }
16972
16973 return NS_OK;
16974}
16975
16976nsresult GetDatabasesOp::DoDatabaseWork() {
16977 AssertIsOnIOThread();
16978 MOZ_ASSERT(mState == State::DatabaseWorkOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::DatabaseWorkOpen)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::DatabaseWorkOpen
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::DatabaseWorkOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16978); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { MOZ_CrashSequence(__null, 16978); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16979
16980 AUTO_PROFILER_LABEL("GetDatabasesOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16980( "GetDatabasesOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16981
16982 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16982)
||
16983 !OperationMayProceed()) {
16984 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16984, "UnknownErr")
;
16985 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16986 }
16987
16988 QuotaManager* const quotaManager = QuotaManager::Get();
16989 MOZ_ASSERT(quotaManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(quotaManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(quotaManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("quotaManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16989); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { MOZ_CrashSequence(__null, 16989); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16990
16991 {
16992 QM_TRY_INSPECT(const bool& exists,auto tryResult1299 = (quotaManager->DoesOriginDirectoryExist
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16993, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); } const bool& exists = tryResult1299.inspect
();
16993 quotaManager->DoesOriginDirectoryExist(mOriginMetadata))auto tryResult1299 = (quotaManager->DoesOriginDirectoryExist
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)"
, tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 16993, mozilla::dom::quota::Severity::Error); return tryResult1299
.propagateErr(); } const bool& exists = tryResult1299.inspect
();
;
16994 if (!exists) {
16995 return DatabasesNotAvailable();
16996 }
16997 }
16998
16999 // XXX Is this really needed ?
17000 QM_TRY(([&quotaManager,{auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1300
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17009, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); }}
17001 this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> {{auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1300
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17009, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); }}
17002 if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {{auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1300
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17009, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); }}
17003 QM_TRY_RETURN(quotaManager->GetOriginDirectory(mOriginMetadata));{auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1300
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17009, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); }}
17004 }{auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1300
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17009, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); }}
17005
17006 QM_TRY_RETURN({auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1300
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17009, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); }}
17007 quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata));{auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1300
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17009, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); }}
17008 }(){auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1300
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17009, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); }}
17009 .map([](const auto& res) { return Ok{}; }))){auto tryResult1302 = (([&quotaManager, this]() -> mozilla
::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType
== PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1300
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300
;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)"
, tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1302)::ok_type
>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1300 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17003, mozilla::dom::quota::Severity::Error); } return tryResult1300;}; } {auto tryResult1301 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17007, mozilla::dom::quota::Severity::Error); } return tryResult1301;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17009, mozilla::dom::quota::Severity::Error); return tryResult1302
.propagateErr(); }}
;
17010
17011 {
17012 QM_TRY_INSPECT(const bool& exists,auto tryResult1303 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17014, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); } const bool& exists = tryResult1303.inspect
();
17013 quotaManager->DoesClientDirectoryExist(auto tryResult1303 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17014, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); } const bool& exists = tryResult1303.inspect
();
17014 ClientMetadata{mOriginMetadata, Client::IDB}))auto tryResult1303 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17014, mozilla::dom::quota::Severity::Error); return tryResult1303
.propagateErr(); } const bool& exists = tryResult1303.inspect
();
;
17015 if (!exists) {
17016 return DatabasesNotAvailable();
17017 }
17018 }
17019
17020 QM_TRY_INSPECT(auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17021 const auto& clientDirectory,auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17022 ([&quotaManager, this]()auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17023 -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> {auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17024 if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17025 QM_TRY_RETURN(quotaManager->EnsurePersistentClientIsInitialized(auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17026 ClientMetadata{mOriginMetadata, Client::IDB}));auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17027 }auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17028
17029 QM_TRY_RETURN(quotaManager->EnsureTemporaryClientIsInitialized(auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17030 ClientMetadata{mOriginMetadata, Client::IDB},auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17031 /* aCreateIfNonExistent */ true));auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17032 }()auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
17033 .map([](const auto& res) { return res.first; })))auto tryResult1306 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304
;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((
__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom
::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)"
, tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1306.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1304 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17026, mozilla::dom::quota::Severity::Error); } return tryResult1304;}; } {auto tryResult1305 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17031, mozilla::dom::quota::Severity::Error); } return tryResult1305;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17033, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& clientDirectory = tryResult1306
.inspect();
;
17034
17035 QM_TRY_INSPECT(auto tryResult1307 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17038, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1307.inspect();
17036 (const auto& [subdirsToProcess, databaseFilenames]),auto tryResult1307 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17038, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1307.inspect();
17037 QuotaClient::GetDatabaseFilenames(*clientDirectory,auto tryResult1307 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17038, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1307.inspect();
17038 /* aCanceled */ Atomic<bool>{false}))auto tryResult1307 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1307
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17038, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1307.inspect();
;
17039
17040 for (const auto& databaseFilename : databaseFilenames) {
17041 QM_TRY_INSPECT(auto tryResult1308 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17043, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); } const auto& databaseFile = tryResult1308
.inspect();
17042 const auto& databaseFile,auto tryResult1308 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17043, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); } const auto& databaseFile = tryResult1308
.inspect();
17043 CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix))auto tryResult1308 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1308.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17043, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); } const auto& databaseFile = tryResult1308
.inspect();
;
17044
17045 nsString path;
17046 databaseFile->GetPath(path);
17047
17048 // Use the snapshotted values from DoDirectoryWork which correctly
17049 // snapshotted the state of any pending creations/upgrades. This does mean
17050 // that we need to skip reporting databases that had a version of 0 at that
17051 // time because they were still being created. In the event that any other
17052 // creation or upgrade requests are made after our operation is created,
17053 // this operation will block those, so it's not possible for this set of
17054 // data to get out of sync. The snapshotting (using cached database name
17055 // and version in DatabaseFileManager) also guarantees that we are not
17056 // touching the SQLite database here on the QuotaManager I/O thread which
17057 // is already open on the connection thread.
17058
17059 auto metadata = mDatabaseMetadataTable.Lookup(path);
17060 if (metadata) {
17061 if (metadata->version() != 0) {
17062 mDatabaseMetadataArray.AppendElement(DatabaseMetadata(
17063 metadata->name(), metadata->version(), mPersistenceType));
17064 }
17065
17066 continue;
17067 }
17068
17069 // Since the database is not already open (there was no DatabaseFileManager
17070 // for snapshotting in DoDirectoryWork which could provide us with the
17071 // database name and version without needing to open the SQLite database),
17072 // it is safe and necessary for us to open the database on this thread and
17073 // retrieve its name and version. We do not need to worry about racing a
17074 // database open because database opens can only be processed on this
17075 // thread and we are performing the steps below synchronously.
17076
17077 QM_TRY_INSPECT(auto tryResult1309 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1309.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17080, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); } const auto& fmDirectory = tryResult1309
.inspect();
17078 const auto& fmDirectory,auto tryResult1309 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1309.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17080, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); } const auto& fmDirectory = tryResult1309
.inspect();
17079 CloneFileAndAppend(*clientDirectory,auto tryResult1309 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1309.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17080, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); } const auto& fmDirectory = tryResult1309
.inspect();
17080 databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult1309 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1309.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17080, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); } const auto& fmDirectory = tryResult1309
.inspect();
;
17081
17082 QM_TRY_UNWRAP(auto tryResult1310 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17086, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1310.unwrap();
17083 const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1310 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17086, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1310.unwrap();
17084 CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(),auto tryResult1310 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17086, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1310.unwrap();
17085 mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1310 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17086, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1310.unwrap();
17086 TelemetryIdForFile(databaseFile), Nothing{}))auto tryResult1310 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17086, mozilla::dom::quota::Severity::Error); return tryResult1310
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1310.unwrap();
;
17087
17088 {
17089 // Load version information.
17090 QM_TRY_INSPECT(const auto& stmt,auto tryResult1311 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1311.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17093, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); } const auto& stmt = tryResult1311.inspect
();
17091 CreateAndExecuteSingleStepStatement<auto tryResult1311 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1311.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17093, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); } const auto& stmt = tryResult1311.inspect
();
17092 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1311 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1311.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17093, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); } const auto& stmt = tryResult1311.inspect
();
17093 *connection, "SELECT name, version FROM database"_ns))auto tryResult1311 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1311.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1311.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17093, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); } const auto& stmt = tryResult1311.inspect
();
;
17094
17095 QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1312 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1312)::ok_type>); if ((__builtin_expect
(!!(tryResult1312.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1312.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17095, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError
, NS_ERROR_FILE_CORRUPTED); }}
;
17096
17097 QM_TRY_INSPECT(auto tryResult1313 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1313.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1313.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17099, mozilla::dom::quota::Severity::Error); return tryResult1313
.propagateErr(); } const auto& databaseName = tryResult1313
.inspect();
17098 const auto& databaseName,auto tryResult1313 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1313.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1313.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17099, mozilla::dom::quota::Severity::Error); return tryResult1313
.propagateErr(); } const auto& databaseName = tryResult1313
.inspect();
17099 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, stmt, GetString, 0))auto tryResult1313 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1313.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1313.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17099, mozilla::dom::quota::Severity::Error); return tryResult1313
.propagateErr(); } const auto& databaseName = tryResult1313
.inspect();
;
17100
17101 QM_TRY_INSPECT(const int64_t& version,auto tryResult1314 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 1)); if ((__builtin_expect(!!(tryResult1314.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17102, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); } const int64_t& version = tryResult1314
.inspect();
17102 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1))auto tryResult1314 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 1)); if ((__builtin_expect(!!(tryResult1314.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17102, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); } const int64_t& version = tryResult1314
.inspect();
;
17103
17104 mDatabaseMetadataArray.AppendElement(
17105 DatabaseMetadata(databaseName, version, mPersistenceType));
17106 }
17107 }
17108
17109 mState = State::SendingResults;
17110
17111 QM_TRY(MOZ_TO_RESULT({auto tryResult1315 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1315)::ok_type>); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17112, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); }}
17112 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1315 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1315)::ok_type>); if ((__builtin_expect
(!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17112, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); }}
;
17113
17114 return NS_OK;
17115}
17116
17117nsresult GetDatabasesOp::BeginVersionChange() {
17118 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17118
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 17118); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
17119}
17120
17121bool GetDatabasesOp::AreActorsAlive() {
17122 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17122
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 17122); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
17123}
17124
17125void GetDatabasesOp::SendBlockedNotification() {
17126 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17126
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 17126); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
17127}
17128
17129nsresult GetDatabasesOp::DispatchToWorkThread() {
17130 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17130
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 17130); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
17131}
17132
17133nsresult GetDatabasesOp::DoVersionUpdate() {
17134 MOZ_CRASH("Not implemented because this should be unreachable.")do { do { } while (false); MOZ_ReportCrash("" "Not implemented because this should be unreachable."
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17134
); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { MOZ_CrashSequence(__null, 17134); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
17135}
17136
17137void GetDatabasesOp::SendResults() {
17138 AssertIsOnOwningThread();
17139 MOZ_ASSERT(mState == State::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mState == State::SendingResults)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mState == State::SendingResults
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mState == State::SendingResults", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17139); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { MOZ_CrashSequence(__null, 17139); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17140
17141#ifdef DEBUG1
17142 NoteActorDestroyed();
17143#endif
17144
17145 if (HasFailed()) {
17146 mResolver(ClampResultCode(ResultCode()));
17147 } else {
17148 mResolver(mDatabaseMetadataArray);
17149 }
17150
17151 {
17152 auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle);
17153 }
17154
17155 CleanupMetadata();
17156
17157 FinishSendResults();
17158}
17159
17160TransactionDatabaseOperationBase::TransactionDatabaseOperationBase(
17161 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId)
17162 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
17163 aTransaction->GetLoggingInfo()->NextRequestSN()),
17164 mTransaction(WrapNotNull(std::move(aTransaction))),
17165 mRequestId(aRequestId),
17166 mTransactionIsAborted((*mTransaction)->IsAborted()),
17167 mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) {
17168 MOZ_ASSERT(LoggingSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(LoggingSerialNumber())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(LoggingSerialNumber()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("LoggingSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17168
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 17168); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17169}
17170
17171TransactionDatabaseOperationBase::TransactionDatabaseOperationBase(
17172 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
17173 uint64_t aLoggingSerialNumber)
17174 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
17175 aLoggingSerialNumber),
17176 mTransaction(WrapNotNull(std::move(aTransaction))),
17177 mRequestId(aRequestId),
17178 mTransactionIsAborted((*mTransaction)->IsAborted()),
17179 mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) {}
17180
17181TransactionDatabaseOperationBase::~TransactionDatabaseOperationBase() {
17182 MOZ_ASSERT(mInternalState == InternalState::Completed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::Completed)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::Completed))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Completed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17182
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Completed"
")"); do { MOZ_CrashSequence(__null, 17182); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17183 MOZ_ASSERT(!mTransaction,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mTransaction" " ("
"TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17185); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { MOZ_CrashSequence(__null, 17185); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
17184 "TransactionDatabaseOperationBase::Cleanup() was not called by a "do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mTransaction" " ("
"TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17185); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { MOZ_CrashSequence(__null, 17185); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
17185 "subclass!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mTransaction" " ("
"TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17185); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { MOZ_CrashSequence(__null, 17185); __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
;
17186}
17187
17188#ifdef DEBUG1
17189
17190void TransactionDatabaseOperationBase::AssertIsOnConnectionThread() const {
17191 (*mTransaction)->AssertIsOnConnectionThread();
17192}
17193
17194#endif // DEBUG
17195
17196uint64_t TransactionDatabaseOperationBase::StartOnConnectionPool(
17197 const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId,
17198 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
17199 bool aIsWriteTransaction) {
17200 AssertIsOnOwningThread();
17201 MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::Initial)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::Initial))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17201
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { MOZ_CrashSequence(__null, 17201); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17202
17203 // Must set mInternalState before dispatching otherwise we will race with the
17204 // connection thread.
17205 mInternalState = InternalState::DatabaseWork;
17206
17207 return gConnectionPool->Start(aBackgroundChildLoggingId, aDatabaseId,
17208 aLoggingSerialNumber, aObjectStoreNames,
17209 aIsWriteTransaction, this);
17210}
17211
17212void TransactionDatabaseOperationBase::DispatchToConnectionPool() {
17213 AssertIsOnOwningThread();
17214 MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::Initial)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::Initial))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17214
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { MOZ_CrashSequence(__null, 17214); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17215
17216 Unused << this->Run();
17217}
17218
17219void TransactionDatabaseOperationBase::RunOnConnectionThread() {
17220 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17220
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 17220); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17221 MOZ_ASSERT(mInternalState == InternalState::DatabaseWork)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::DatabaseWork)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mInternalState == InternalState::DatabaseWork))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::DatabaseWork"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17221
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::DatabaseWork"
")"); do { MOZ_CrashSequence(__null, 17221); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17222 MOZ_ASSERT(!HasFailed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!HasFailed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!HasFailed()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!HasFailed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17222); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { MOZ_CrashSequence(__null, 17222); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17223
17224 AUTO_PROFILER_LABEL("TransactionDatabaseOperationBase::RunOnConnectionThread",mozilla::AutoProfilerLabel raiiObject17225( "TransactionDatabaseOperationBase::RunOnConnectionThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
17225 DOM)mozilla::AutoProfilerLabel raiiObject17225( "TransactionDatabaseOperationBase::RunOnConnectionThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17226
17227 // There are several cases where we don't actually have to to any work here.
17228
17229 if (mTransactionIsAborted || (*mTransaction)->IsInvalidatedOnAnyThread()) {
17230 // This transaction is already set to be aborted or invalidated.
17231 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
17232 } else if (!OperationMayProceed()) {
17233 // The operation was canceled in some way, likely because the child process
17234 // has crashed.
17235 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17235, "UnknownErr")
;
17236 OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
17237 } else {
17238 Database& database = (*mTransaction)->GetMutableDatabase();
17239
17240 // Here we're actually going to perform the database operation.
17241 nsresult rv = database.EnsureConnection();
17242 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17242)
) {
17243 SetFailureCode(rv);
17244 } else {
17245 DatabaseConnection* connection = database.GetConnection();
17246 MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("connection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17246); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { MOZ_CrashSequence(__null, 17246); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17247
17248 auto& storageConnection = connection->MutableStorageConnection();
17249
17250 AutoSetProgressHandler autoProgress;
17251 if (mLoggingSerialNumber) {
17252 rv = autoProgress.Register(storageConnection, this);
17253 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17253)
) {
17254 SetFailureCode(rv);
17255 }
17256 }
17257
17258 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
17259 if (mLoggingSerialNumber) {
17260 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber
)
17261 "Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber
)
17262 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber
)
17263 mTransactionLoggingSerialNumber, mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransactionLoggingSerialNumber, mLoggingSerialNumber
)
;
17264 }
17265
17266 rv = DoDatabaseWork(connection);
17267
17268 if (mLoggingSerialNumber) {
17269 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransactionLoggingSerialNumber, mLoggingSerialNumber)
17270 "Finished database work", "DB End",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransactionLoggingSerialNumber, mLoggingSerialNumber)
17271 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransactionLoggingSerialNumber, mLoggingSerialNumber)
17272 mTransactionLoggingSerialNumber, mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransactionLoggingSerialNumber, mLoggingSerialNumber)
;
17273 }
17274
17275 if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) {
17276 SetFailureCode(rv);
17277 }
17278 }
17279 }
17280 }
17281
17282 // Must set mInternalState before dispatching otherwise we will race with the
17283 // owning thread.
17284 if (HasPreprocessInfo()) {
17285 mInternalState = InternalState::SendingPreprocess;
17286 } else {
17287 mInternalState = InternalState::SendingResults;
17288 }
17289
17290 MOZ_ALWAYS_SUCCEEDS(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL
))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17290
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { MOZ_CrashSequence(__null, 17290); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17291}
17292
17293bool TransactionDatabaseOperationBase::HasPreprocessInfo() { return false; }
17294
17295nsresult TransactionDatabaseOperationBase::SendPreprocessInfo() {
17296 return NS_OK;
17297}
17298
17299void TransactionDatabaseOperationBase::NoteContinueReceived() {
17300 AssertIsOnOwningThread();
17301 MOZ_ASSERT(mInternalState == InternalState::WaitingForContinue)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::WaitingForContinue)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mInternalState == InternalState::WaitingForContinue)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::WaitingForContinue"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17301
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::WaitingForContinue"
")"); do { MOZ_CrashSequence(__null, 17301); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17302
17303 mWaitingForContinue = false;
17304
17305 mInternalState = InternalState::SendingResults;
17306
17307 // This TransactionDatabaseOperationBase can only be held alive by the IPDL.
17308 // Run() can end up with clearing that last reference. So we need to add
17309 // a self reference here.
17310 RefPtr<TransactionDatabaseOperationBase> kungFuDeathGrip = this;
17311
17312 Unused << this->Run();
17313}
17314
17315void TransactionDatabaseOperationBase::SendToConnectionPool() {
17316 AssertIsOnOwningThread();
17317 MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::Initial)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::Initial))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17317
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { MOZ_CrashSequence(__null, 17317); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17318
17319 // Must set mInternalState before dispatching otherwise we will race with the
17320 // connection thread.
17321 mInternalState = InternalState::DatabaseWork;
17322
17323 gConnectionPool->StartOp((*mTransaction)->TransactionId(), this);
17324
17325 (*mTransaction)->NoteActiveRequest();
17326}
17327
17328void TransactionDatabaseOperationBase::SendPreprocess() {
17329 AssertIsOnOwningThread();
17330 MOZ_ASSERT(mInternalState == InternalState::SendingPreprocess)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::SendingPreprocess)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mInternalState == InternalState::SendingPreprocess))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17330
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess"
")"); do { MOZ_CrashSequence(__null, 17330); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17331
17332 SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ true);
17333}
17334
17335void TransactionDatabaseOperationBase::SendResults() {
17336 AssertIsOnOwningThread();
17337 MOZ_ASSERT(mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::SendingResults)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mInternalState == InternalState::SendingResults))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17337
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults"
")"); do { MOZ_CrashSequence(__null, 17337); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17338
17339 SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ false);
17340}
17341
17342void TransactionDatabaseOperationBase::SendPreprocessInfoOrResults(
17343 bool aSendPreprocessInfo) {
17344 AssertIsOnOwningThread();
17345 MOZ_ASSERT(mInternalState == InternalState::SendingPreprocess ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::SendingPreprocess ||
mInternalState == InternalState::SendingResults)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::SendingPreprocess || mInternalState
== InternalState::SendingResults))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17346
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
")"); do { MOZ_CrashSequence(__null, 17346); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17346 mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::SendingPreprocess ||
mInternalState == InternalState::SendingResults)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::SendingPreprocess || mInternalState
== InternalState::SendingResults))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17346
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
")"); do { MOZ_CrashSequence(__null, 17346); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17347
17348 // The flag is raised only when there is no mUpdateRefcountFunction for the
17349 // executing operation. It assume that is because the previous
17350 // StartTransactionOp was failed to begin a write transaction and it reported
17351 // when this operation has already jumped to the Connection thread.
17352 MOZ_DIAGNOSTIC_ASSERT_IF(mAssumingPreviousOperationFail,do { if (mAssumingPreviousOperationFail) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*mTransaction
)->IsAborted())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*mTransaction)->IsAborted
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*mTransaction)->IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17353); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()"
")"); do { MOZ_CrashSequence(__null, 17353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17353 (*mTransaction)->IsAborted())do { if (mAssumingPreviousOperationFail) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*mTransaction
)->IsAborted())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*mTransaction)->IsAborted
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*mTransaction)->IsAborted()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17353); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()"
")"); do { MOZ_CrashSequence(__null, 17353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17354
17355 if (NS_WARN_IF(IsActorDestroyed())NS_warn_if_impl(IsActorDestroyed(), "IsActorDestroyed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17355)
) {
17356 // Normally we wouldn't need to send any notifications if the actor was
17357 // already destroyed, but this can be a VersionChangeOp which needs to
17358 // notify its parent operation (OpenDatabaseOp) about the failure.
17359 // So SendFailureResult needs to be called even when the actor was
17360 // destroyed. Normal operations redundantly check if the actor was
17361 // destroyed in SendSuccessResult and SendFailureResult, therefore it's
17362 // ok to call it in all cases here.
17363 if (!HasFailed()) {
17364 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17364, "UnknownErr")
;
17365 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
17366 }
17367 } else if ((*mTransaction)->IsInvalidated() || (*mTransaction)->IsAborted()) {
17368 // Aborted transactions always see their requests fail with ABORT_ERR,
17369 // even if the request succeeded or failed with another error.
17370 OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
17371 }
17372
17373 const nsresult rv = [aSendPreprocessInfo, this] {
17374 if (HasFailed()) {
17375 return ResultCode();
17376 }
17377 if (aSendPreprocessInfo) {
17378 // This should not release the IPDL reference.
17379 return SendPreprocessInfo();
17380 }
17381 // This may release the IPDL reference.
17382 return SendSuccessResult();
17383 }();
17384
17385 if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) {
17386 SetFailureCodeIfUnset(rv);
17387
17388 // This should definitely release the IPDL reference.
17389 if (!SendFailureResult(rv)) {
17390 // Abort the transaction.
17391 (*mTransaction)->Abort(rv, /* aForce */ false);
17392 }
17393 }
17394
17395 if (aSendPreprocessInfo && !HasFailed()) {
17396 mInternalState = InternalState::WaitingForContinue;
17397
17398 mWaitingForContinue = true;
17399 } else {
17400 if (mLoggingSerialNumber) {
17401 (*mTransaction)->NoteFinishedRequest(mRequestId, ResultCode());
17402 }
17403
17404 gConnectionPool->FinishOp((*mTransaction)->TransactionId());
17405
17406 Cleanup();
17407
17408 mInternalState = InternalState::Completed;
17409 }
17410}
17411
17412bool TransactionDatabaseOperationBase::Init(TransactionBase& aTransaction) {
17413 AssertIsOnBackgroundThread();
17414 MOZ_ASSERT(mInternalState == InternalState::Initial)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::Initial)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mInternalState == InternalState::Initial))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::Initial"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17414
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { MOZ_CrashSequence(__null, 17414); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17415
17416 return true;
17417}
17418
17419void TransactionDatabaseOperationBase::Cleanup() {
17420 AssertIsOnOwningThread();
17421 MOZ_ASSERT(mInternalState == InternalState::SendingResults)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mInternalState == InternalState::SendingResults)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mInternalState == InternalState::SendingResults))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mInternalState == InternalState::SendingResults"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17421
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults"
")"); do { MOZ_CrashSequence(__null, 17421); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17422
17423 mTransaction.destroy();
17424}
17425
17426NS_IMETHODIMPnsresult
17427TransactionDatabaseOperationBase::Run() {
17428 switch (mInternalState) {
17429 case InternalState::Initial:
17430 SendToConnectionPool();
17431 return NS_OK;
17432
17433 case InternalState::DatabaseWork:
17434 RunOnConnectionThread();
17435 return NS_OK;
17436
17437 case InternalState::SendingPreprocess:
17438 SendPreprocess();
17439 return NS_OK;
17440
17441 case InternalState::SendingResults:
17442 SendResults();
17443 return NS_OK;
17444
17445 default:
17446 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17446); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { MOZ_CrashSequence(__null, 17446); __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
17447 }
17448}
17449
17450TransactionBase::CommitOp::CommitOp(SafeRefPtr<TransactionBase> aTransaction,
17451 nsresult aResultCode)
17452 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
17453 aTransaction->GetLoggingInfo()->NextRequestSN()),
17454 mTransaction(std::move(aTransaction)),
17455 mResultCode(aResultCode) {
17456 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17456); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17456); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17457 MOZ_ASSERT(LoggingSerialNumber())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(LoggingSerialNumber())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(LoggingSerialNumber()))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("LoggingSerialNumber()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17457
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()"
")"); do { MOZ_CrashSequence(__null, 17457); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17458}
17459
17460nsresult TransactionBase::CommitOp::WriteAutoIncrementCounts() {
17461 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17461); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17461); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17462 mTransaction->AssertIsOnConnectionThread();
17463 MOZ_ASSERT(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17466
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17466); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17464 mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17466
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17466); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17465 mTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17466
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17466); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17466 mTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17466
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17466); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17467
17468 const nsTArray<SafeRefPtr<FullObjectStoreMetadata>>& metadataArray =
17469 mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray;
17470
17471 if (!metadataArray.IsEmpty()) {
17472 DatabaseConnection* connection =
17473 mTransaction->GetDatabase().GetConnection();
17474 MOZ_ASSERT(connection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(connection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(connection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("connection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17474); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { MOZ_CrashSequence(__null, 17474); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17475
17476 // The parameter names are not used, parameters are bound by index only
17477 // locally in the same function.
17478 auto stmt = DatabaseConnection::LazyStatement(
17479 *connection,
17480 "UPDATE object_store "
17481 "SET auto_increment = :auto_increment WHERE id "
17482 "= :object_store_id;"_ns);
17483
17484 for (const auto& metadata : metadataArray) {
17485 MOZ_ASSERT(!metadata->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!metadata->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!metadata->mDeleted))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!metadata->mDeleted"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17485
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!metadata->mDeleted"
")"); do { MOZ_CrashSequence(__null, 17485); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17486
17487 const int64_t nextAutoIncrementId = [&metadata] {
17488 const auto&& lockedAutoIncrementIds =
17489 metadata->mAutoIncrementIds.Lock();
17490 return lockedAutoIncrementIds->next;
17491 }();
17492
17493 MOZ_ASSERT(nextAutoIncrementId > 1)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(nextAutoIncrementId > 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(nextAutoIncrementId > 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("nextAutoIncrementId > 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17493
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "nextAutoIncrementId > 1"
")"); do { MOZ_CrashSequence(__null, 17493); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17494
17495 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1316 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1316.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1316
.propagateErr(); } const auto& borrowedStmt = tryResult1316
.inspect();
;
17496
17497 QM_TRY(MOZ_TO_RESULT({auto tryResult1317 = (ToResult(borrowedStmt->BindInt64ByIndex
(1, metadata->mCommonMetadata.id()))); static_assert(std::
is_empty_v<typename decltype(tryResult1317)::ok_type>);
if ((__builtin_expect(!!(tryResult1317.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))"
, tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17498, mozilla::dom::quota::Severity::Error); return tryResult1317
.propagateErr(); }}
17498 borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))){auto tryResult1317 = (ToResult(borrowedStmt->BindInt64ByIndex
(1, metadata->mCommonMetadata.id()))); static_assert(std::
is_empty_v<typename decltype(tryResult1317)::ok_type>);
if ((__builtin_expect(!!(tryResult1317.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))"
, tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17498, mozilla::dom::quota::Severity::Error); return tryResult1317
.propagateErr(); }}
;
17499
17500 QM_TRY(MOZ_TO_RESULT({auto tryResult1318 = (ToResult(borrowedStmt->BindInt64ByIndex
(0, nextAutoIncrementId))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))"
, tryResult1318.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17501, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}
17501 borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))){auto tryResult1318 = (ToResult(borrowedStmt->BindInt64ByIndex
(0, nextAutoIncrementId))); static_assert(std::is_empty_v<
typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect
(!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))"
, tryResult1318.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17501, mozilla::dom::quota::Severity::Error); return tryResult1318
.propagateErr(); }}
;
17502
17503 QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1319 = (ToResult(borrowedStmt->Execute()));
static_assert(std::is_empty_v<typename decltype(tryResult1319
)::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())"
, tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17503, mozilla::dom::quota::Severity::Error); return tryResult1319
.propagateErr(); }}
;
17504 }
17505 }
17506
17507 return NS_OK;
17508}
17509
17510void TransactionBase::CommitOp::CommitOrRollbackAutoIncrementCounts() {
17511 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17511); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17511); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17512 mTransaction->AssertIsOnConnectionThread();
17513 MOZ_ASSERT(mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17516
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17516); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17514 mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17516
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17516); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17515 mTransaction->GetMode() == IDBTransaction::Mode::Cleanup ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17516
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17516); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17516 mTransaction->GetMode() == IDBTransaction::Mode::VersionChange)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() == IDBTransaction::Mode::
ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode
::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction
::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction
::Mode::VersionChange)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction->GetMode() ==
IDBTransaction::Mode::ReadWrite || mTransaction->GetMode(
) == IDBTransaction::Mode::ReadWriteFlush || mTransaction->
GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->
GetMode() == IDBTransaction::Mode::VersionChange))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17516
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() == IDBTransaction::Mode::ReadWrite || mTransaction->GetMode() == IDBTransaction::Mode::ReadWriteFlush || mTransaction->GetMode() == IDBTransaction::Mode::Cleanup || mTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { MOZ_CrashSequence(__null, 17516); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17517
17518 const auto& metadataArray =
17519 mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray;
17520
17521 if (!metadataArray.IsEmpty()) {
17522 bool committed = NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
;
17523
17524 for (const auto& metadata : metadataArray) {
17525 auto&& lockedAutoIncrementIds = metadata->mAutoIncrementIds.Lock();
17526
17527 if (committed) {
17528 lockedAutoIncrementIds->committed = lockedAutoIncrementIds->next;
17529 } else {
17530 lockedAutoIncrementIds->next = lockedAutoIncrementIds->committed;
17531 }
17532 }
17533 }
17534}
17535
17536#ifdef DEBUG1
17537
17538void TransactionBase::CommitOp::AssertForeignKeyConsistency(
17539 DatabaseConnection* aConnection) {
17540 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17540); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 17540); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17541 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17541); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17541); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17542 mTransaction->AssertIsOnConnectionThread();
17543 MOZ_ASSERT(mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction->GetMode() != IDBTransaction::Mode::
ReadOnly)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(mTransaction->GetMode() != IDBTransaction
::Mode::ReadOnly))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17543
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly"
")"); do { MOZ_CrashSequence(__null, 17543); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17544
17545 {
17546 QM_TRY_INSPECT(auto tryResult1320 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1320.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17550, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17550); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17550); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1320.inspect();
17547 const auto& pragmaStmt,auto tryResult1320 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1320.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17550, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17550); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17550); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1320.inspect();
17548 CreateAndExecuteSingleStepStatement(auto tryResult1320 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1320.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17550, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17550); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17550); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1320.inspect();
17549 aConnection->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns),auto tryResult1320 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1320.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17550, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17550); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17550); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1320.inspect();
17550 QM_ASSERT_UNREACHABLE_VOID)auto tryResult1320 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1320.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17550, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17550); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17550); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1320.inspect();
;
17551
17552 int32_t foreignKeysEnabled;
17553 MOZ_ALWAYS_SUCCEEDS(pragmaStmt->GetInt32(0, &foreignKeysEnabled))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(pragmaStmt->GetInt32(0, &foreignKeysEnabled))), 1))))
, 1))) { } else { do { do { } while (false); MOZ_ReportCrash(
"" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17553
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))"
")"); do { MOZ_CrashSequence(__null, 17553); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17554
17555 MOZ_ASSERT(foreignKeysEnabled,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(foreignKeysEnabled)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foreignKeysEnabled))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("foreignKeysEnabled"
" (" "Database doesn't have foreign keys enabled!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17556); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled"
") (" "Database doesn't have foreign keys enabled!" ")"); do
{ MOZ_CrashSequence(__null, 17556); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
17556 "Database doesn't have foreign keys enabled!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(foreignKeysEnabled)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foreignKeysEnabled))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("foreignKeysEnabled"
" (" "Database doesn't have foreign keys enabled!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17556); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled"
") (" "Database doesn't have foreign keys enabled!" ")"); do
{ MOZ_CrashSequence(__null, 17556); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
;
17557 }
17558
17559 {
17560 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1321 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1321.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17565); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1321.inspect();
17561 CreateAndExecuteSingleStepStatement<auto tryResult1321 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1321.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17565); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1321.inspect();
17562 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1321 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1321.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17565); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1321.inspect();
17563 aConnection->MutableStorageConnection(),auto tryResult1321 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1321.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17565); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1321.inspect();
17564 "PRAGMA foreign_key_check;"_ns),auto tryResult1321 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1321.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17565); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1321.inspect();
17565 QM_ASSERT_UNREACHABLE_VOID)auto tryResult1321 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1321.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)"
, tryTempError, [](const char*, const char*) { do { do { } while
(false); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17565); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17565); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1321.inspect();
;
17566
17567 MOZ_ASSERT(!foreignKeyError, "Database has inconsisistent foreign keys!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!foreignKeyError)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!foreignKeyError))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!foreignKeyError"
" (" "Database has inconsisistent foreign keys!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError"
") (" "Database has inconsisistent foreign keys!" ")"); do {
MOZ_CrashSequence(__null, 17567); __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
17568 }
17569}
17570
17571#endif // DEBUG
17572
17573NS_IMPL_ISUPPORTS_INHERITED0(TransactionBase::CommitOp, DatabaseOperationBase)nsresult TransactionBase::CommitOp::QueryInterface(const nsIID
& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) {
NS_DebugBreak(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!"
, "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17573); MOZ_PretendNoReturn(); } } while (0); nsresult rv =
NS_ERROR_FAILURE; if (((bool)(__builtin_expect(!!(!NS_FAILED_impl
(rv)), 1)))) return rv; return DatabaseOperationBase::QueryInterface
(aIID, aInstancePtr); } MozExternalRefCountType TransactionBase
::CommitOp::AddRef(void) { static_assert(!std::is_destructible_v
<TransactionBase::CommitOp>, "Reference-counted class "
"TransactionBase::CommitOp" " should not have a public destructor. "
"Make this class's destructor non-public"); nsrefcnt r = DatabaseOperationBase
::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<TransactionBase::CommitOp>) { NS_LogAddRef((this), (r)
, ("TransactionBase::CommitOp"), (uint32_t)(sizeof(*this))); }
return r; } MozExternalRefCountType TransactionBase::CommitOp
::Release(void) { nsrefcnt r = DatabaseOperationBase::Release
(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<TransactionBase::CommitOp>) { NS_LogRelease((this), (r
), ("TransactionBase::CommitOp")); } return r; }
17574
17575NS_IMETHODIMPnsresult
17576TransactionBase::CommitOp::Run() {
17577 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17577); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17578 mTransaction->AssertIsOnConnectionThread();
17579
17580 AUTO_PROFILER_LABEL("TransactionBase::CommitOp::Run", DOM)mozilla::AutoProfilerLabel raiiObject17580( "TransactionBase::CommitOp::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17581
17582 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17583 "Beginning database work", "DB Start",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17584 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17585 mTransaction->LoggingSerialNumber(), mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Beginning database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB Start", mozilla::dom::
indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
;
17586
17587 if (mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly &&
17588 mTransaction->mHasBeenActiveOnConnectionThread) {
17589 if (DatabaseConnection* connection =
17590 mTransaction->GetDatabase().GetConnection()) {
17591 // May be null if the VersionChangeOp was canceled.
17592 DatabaseConnection::UpdateRefcountFunction* fileRefcountFunction =
17593 connection->GetUpdateRefcountFunction();
17594
17595 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17596 if (fileRefcountFunction) {
17597 mResultCode = fileRefcountFunction->WillCommit();
17598 NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WillCommit() failed!"
, "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17599); } } while (false)
17599 "WillCommit() failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WillCommit() failed!"
, "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17599); } } while (false)
;
17600 }
17601
17602 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17603 mResultCode = WriteAutoIncrementCounts();
17604 NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode),do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WriteAutoIncrementCounts() failed!"
, "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17605); } } while (false)
17605 "WriteAutoIncrementCounts() failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "WriteAutoIncrementCounts() failed!"
, "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17605); } } while (false)
;
17606
17607 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17608 AssertForeignKeyConsistency(connection);
17609
17610 mResultCode = connection->CommitWriteTransaction();
17611 NS_WARNING_ASSERTION(NS_SUCCEEDED(mResultCode), "Commit failed!")do { if (!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode
)), 1))))) { NS_DebugBreak(NS_DEBUG_WARNING, "Commit failed!"
, "NS_SUCCEEDED(mResultCode)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17611); } } while (false)
;
17612
17613 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&&
17614 mTransaction->GetMode() ==
17615 IDBTransaction::Mode::ReadWriteFlush) {
17616 mResultCode = connection->Checkpoint();
17617 }
17618
17619 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&& fileRefcountFunction) {
17620 fileRefcountFunction->DidCommit();
17621 }
17622 }
17623 }
17624 }
17625
17626 if (NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
) {
17627 if (fileRefcountFunction) {
17628 fileRefcountFunction->DidAbort();
17629 }
17630
17631 connection->RollbackWriteTransaction();
17632 }
17633
17634 CommitOrRollbackAutoIncrementCounts();
17635
17636 connection->FinishWriteTransaction();
17637
17638 if (mTransaction->GetMode() == IDBTransaction::Mode::Cleanup) {
17639 connection->DoIdleProcessing(/* aNeedsCheckpoint */ true,
17640 /* aInterrupted */ Atomic<bool>(false));
17641
17642 connection->EnableQuotaChecks();
17643 }
17644 }
17645 }
17646
17647 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17648 "Finished database work", "DB End",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17649 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
17650 mTransaction->LoggingSerialNumber(), mLoggingSerialNumber)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"Finished database work", "IndexedDB %s: " "P" " " "T[%" "l"
"i" "]" " " "R[%" "l" "u" "]" ": " "DB End", mozilla::dom::indexedDB
::LoggingIdString<true>(mBackgroundChildLoggingId).get(
), mTransaction->LoggingSerialNumber(), mLoggingSerialNumber
)
;
17651
17652 IDB_LOG_MARK_PARENT_TRANSACTION("Finished database work", "DB End",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB End", mozilla
::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber())
17653 IDB_LOG_ID_STRING(mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB End", mozilla
::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber())
17654 mTransaction->LoggingSerialNumber())mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished database work"
, "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "DB End", mozilla
::dom::indexedDB::LoggingIdString<true>(mBackgroundChildLoggingId
).get(), mTransaction->LoggingSerialNumber())
;
17655
17656 return NS_OK;
17657}
17658
17659void TransactionBase::CommitOp::TransactionFinishedBeforeUnblock() {
17660 AssertIsOnBackgroundThread();
17661 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17661); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17661); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17662
17663 AUTO_PROFILER_LABEL("CommitOp::TransactionFinishedBeforeUnblock", DOM)mozilla::AutoProfilerLabel raiiObject17663( "CommitOp::TransactionFinishedBeforeUnblock"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17664
17665 if (!IsActorDestroyed()) {
17666 mTransaction->UpdateMetadata(mResultCode);
17667 }
17668}
17669
17670void TransactionBase::CommitOp::TransactionFinishedAfterUnblock() {
17671 AssertIsOnBackgroundThread();
17672 MOZ_ASSERT(mTransaction)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mTransaction)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mTransaction))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mTransaction", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17672); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { MOZ_CrashSequence(__null, 17672); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17673
17674 IDB_LOG_MARK_PARENT_TRANSACTION(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%"
"x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%"
"x" ")", mozilla::dom::indexedDB::LoggingIdString<true>
(mTransaction->GetLoggingInfo()->Id()).get(), mTransaction
->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode
))
17675 "Finished with result 0x%" PRIx32, "Transaction finished (0x%" PRIx32 ")",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%"
"x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%"
"x" ")", mozilla::dom::indexedDB::LoggingIdString<true>
(mTransaction->GetLoggingInfo()->Id()).get(), mTransaction
->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode
))
17676 IDB_LOG_ID_STRING(mTransaction->GetLoggingInfo()->Id()),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%"
"x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%"
"x" ")", mozilla::dom::indexedDB::LoggingIdString<true>
(mTransaction->GetLoggingInfo()->Id()).get(), mTransaction
->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode
))
17677 mTransaction->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode))mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" ": " "Finished with result 0x%"
"x", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" ": " "Transaction finished (0x%"
"x" ")", mozilla::dom::indexedDB::LoggingIdString<true>
(mTransaction->GetLoggingInfo()->Id()).get(), mTransaction
->LoggingSerialNumber(), static_cast<uint32_t>(mResultCode
))
;
17678
17679 mTransaction->SendCompleteNotification(ClampResultCode(mResultCode));
17680
17681 mTransaction->GetMutableDatabase().UnregisterTransaction(*mTransaction);
17682
17683 mTransaction = nullptr;
17684
17685#ifdef DEBUG1
17686 // A bit hacky but the CommitOp is not really a normal database operation
17687 // that is tied to an actor. Do this to make our assertions happy.
17688 NoteActorDestroyed();
17689#endif
17690}
17691
17692nsresult VersionChangeTransactionOp::SendSuccessResult() {
17693 AssertIsOnOwningThread();
17694
17695 // Nothing to send here, the API assumes that this request always succeeds.
17696 return NS_OK;
17697}
17698
17699bool VersionChangeTransactionOp::SendFailureResult(nsresult aResultCode) {
17700 AssertIsOnOwningThread();
17701
17702 // The only option here is to cause the transaction to abort.
17703 return false;
17704}
17705
17706void VersionChangeTransactionOp::Cleanup() {
17707 AssertIsOnOwningThread();
17708
17709#ifdef DEBUG1
17710 // A bit hacky but the VersionChangeTransactionOp is not generated in response
17711 // to a child request like most other database operations. Do this to make our
17712 // assertions happy.
17713 NoteActorDestroyed();
17714#endif
17715
17716 TransactionDatabaseOperationBase::Cleanup();
17717}
17718
17719nsresult CreateObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17720 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17720); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 17720); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17721 aConnection->AssertIsOnConnectionThread();
17722
17723 AUTO_PROFILER_LABEL("CreateObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17723( "CreateObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17724
17725#ifdef DEBUG1
17726 {
17727 // Make sure that we're not creating an object store with the same name as
17728 // another that already exists. This should be impossible because we should
17729 // have thrown an error long before now...
17730 // The parameter names are not used, parameters are bound by index only
17731 // locally in the same function.
17732 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17733 aConnectionauto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17734 ->BorrowAndExecuteSingleStepStatement(auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17735 "SELECT name "auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17736 "FROM object_store "auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17737 "WHERE name = :name;"_ns,auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17738 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17739 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17740 0, self.mMetadata.name())));auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17741 return Ok{};auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17742 })auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17743 .map(IsSome),auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
17744 QM_ASSERT_UNREACHABLE)auto tryResult1323 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect
(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1322.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17740, mozilla::dom::quota::Severity::Error); return tryResult1322
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1323.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1322 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1322.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17740, mozilla::dom::quota::Severity::Error); return tryResult1322.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17744); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17744); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1323.inspect();
;
17745
17746 MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!hasResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { MOZ_CrashSequence(__null, 17746); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17747 }
17748#endif
17749
17750 DatabaseConnection::AutoSavepoint autoSave;
17751 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1324 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324
.isErr()), 0))) { auto tryTempError = tryResult1324.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17756, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17752#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1324 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324
.isErr()), 0))) { auto tryTempError = tryResult1324.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17756, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17753 ,{auto tryResult1324 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324
.isErr()), 0))) { auto tryTempError = tryResult1324.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17756, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17754 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1324 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324
.isErr()), 0))) { auto tryTempError = tryResult1324.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17756, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17755#endif{auto tryResult1324 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324
.isErr()), 0))) { auto tryTempError = tryResult1324.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17756, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17756 ){auto tryResult1324 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324
.isErr()), 0))) { auto tryTempError = tryResult1324.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17756, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
17757
17758 // The parameter names are not used, parameters are bound by index only
17759 // locally in the same function.
17760 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17761 "INSERT INTO object_store (id, auto_increment, name, key_path) "{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17762 "VALUES (:id, :auto_increment, :name, :key_path);"_ns,{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17763 [&metadata ={auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17764 mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17765 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17766
17767 QM_TRY(MOZ_TO_RESULT({auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17768 stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0)));{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17769
17770 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(2, metadata.name())));{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17771
17772 if (metadata.keyPath().IsValid()) {{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17773 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex({auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17774 3, metadata.keyPath().SerializeToString())));{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17775 } else {{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17776 QM_TRY(MOZ_TO_RESULT(stmt.BindNullByIndex(3)));{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17777 }{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17778
17779 return Ok{};{auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
17780 }))){auto tryResult1330 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store (id, auto_increment, name, key_path) "
"VALUES (:id, :auto_increment, :name, :key_path);"_ns, [&
metadata = mMetadata](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1325
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17765, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1326.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17768, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1327
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17770, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect
(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1328.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17774, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect
(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1329.inspectErr
(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17776
, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1330)::ok_type>);
if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store (id, auto_increment, name, key_path) \" \"VALUES (:id, :auto_increment, :name, :key_path);\"_ns, [&metadata = mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1325 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1325.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17765, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; {auto tryResult1326 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1326.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17768, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; {auto tryResult1327 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1327.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17770, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1328 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect(!!(tryResult1328.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1328.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17774, mozilla::dom::quota::Severity::Error); return tryResult1328.propagateErr(); }}; } else { {auto tryResult1329 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1329)::ok_type>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1329.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17776, mozilla::dom::quota::Severity::Error); return tryResult1329.propagateErr(); }}; } return Ok{}; }))"
, tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17780, mozilla::dom::quota::Severity::Error); return tryResult1330
.propagateErr(); }}
;
17781
17782#ifdef DEBUG1
17783 {
17784 int64_t id;
17785 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { do { } while (false)
; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17786
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { MOZ_CrashSequence(__null, 17786); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
17786 aConnection->MutableStorageConnection().GetLastInsertRowID(&id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { do { } while (false)
; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17786
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { MOZ_CrashSequence(__null, 17786); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17787 MOZ_ASSERT(mMetadata.id() == id)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata.id() == id)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata.id() == id))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata.id() == id"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17787
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id"
")"); do { MOZ_CrashSequence(__null, 17787); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17788 }
17789#endif
17790
17791 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1331 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1331)::ok_type
>); if ((__builtin_expect(!!(tryResult1331.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17791, mozilla::dom::quota::Severity::Error); return tryResult1331
.propagateErr(); }}
;
17792
17793 return NS_OK;
17794}
17795
17796nsresult DeleteObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17797 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17797); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 17797); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17798 aConnection->AssertIsOnConnectionThread();
17799
17800 AUTO_PROFILER_LABEL("DeleteObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17800( "DeleteObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17801
17802#ifdef DEBUG1
17803 {
17804 // Make sure |mIsLastObjectStore| is telling the truth.
17805 QM_TRY_INSPECT(auto tryResult1332 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1332.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1332.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17808, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17808); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17808); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1332.inspect();
17806 const auto& stmt,auto tryResult1332 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1332.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1332.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17808, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17808); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17808); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1332.inspect();
17807 aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns),auto tryResult1332 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1332.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1332.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17808, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17808); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17808); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1332.inspect();
17808 QM_ASSERT_UNREACHABLE)auto tryResult1332 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1332.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1332.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17808, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17808); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17808); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1332.inspect();
;
17809
17810 bool foundThisObjectStore = false;
17811 bool foundOtherObjectStore = false;
17812
17813 while (true) {
17814 bool hasResult;
17815 MOZ_ALWAYS_SUCCEEDS(stmt->ExecuteStep(&hasResult))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->ExecuteStep(&hasResult))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17815
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
")"); do { MOZ_CrashSequence(__null, 17815); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17816
17817 if (!hasResult) {
17818 break;
17819 }
17820
17821 int64_t id;
17822 MOZ_ALWAYS_SUCCEEDS(stmt->GetInt64(0, &id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->GetInt64(0, &id))), 1)))), 1))) { } else { do {
do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->GetInt64(0, &id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17822
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->GetInt64(0, &id))"
")"); do { MOZ_CrashSequence(__null, 17822); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17823
17824 if (id == mMetadata->mCommonMetadata.id()) {
17825 foundThisObjectStore = true;
17826 } else {
17827 foundOtherObjectStore = true;
17828 }
17829 }
17830
17831 MOZ_ASSERT_IF(mIsLastObjectStore,do { if (mIsLastObjectStore) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(foundThisObjectStore &&
!foundOtherObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foundThisObjectStore &&
!foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundThisObjectStore && !foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17832); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore"
")"); do { MOZ_CrashSequence(__null, 17832); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17832 foundThisObjectStore && !foundOtherObjectStore)do { if (mIsLastObjectStore) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(foundThisObjectStore &&
!foundOtherObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foundThisObjectStore &&
!foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundThisObjectStore && !foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17832); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore"
")"); do { MOZ_CrashSequence(__null, 17832); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17833 MOZ_ASSERT_IF(!mIsLastObjectStore,do { if (!mIsLastObjectStore) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(foundThisObjectStore
&& foundOtherObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foundThisObjectStore &&
foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundThisObjectStore && foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17834); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore"
")"); do { MOZ_CrashSequence(__null, 17834); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17834 foundThisObjectStore && foundOtherObjectStore)do { if (!mIsLastObjectStore) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(foundThisObjectStore
&& foundOtherObjectStore)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foundThisObjectStore &&
foundOtherObjectStore))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("foundThisObjectStore && foundOtherObjectStore", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17834); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore"
")"); do { MOZ_CrashSequence(__null, 17834); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17835 }
17836#endif
17837
17838 DatabaseConnection::AutoSavepoint autoSave;
17839 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1333 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1333)::ok_type>); if ((__builtin_expect(!!(tryResult1333
.isErr()), 0))) { auto tryTempError = tryResult1333.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17844, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17840#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1333 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1333)::ok_type>); if ((__builtin_expect(!!(tryResult1333
.isErr()), 0))) { auto tryTempError = tryResult1333.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17844, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17841 ,{auto tryResult1333 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1333)::ok_type>); if ((__builtin_expect(!!(tryResult1333
.isErr()), 0))) { auto tryTempError = tryResult1333.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17844, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17842 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1333 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1333)::ok_type>); if ((__builtin_expect(!!(tryResult1333
.isErr()), 0))) { auto tryTempError = tryResult1333.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17844, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17843#endif{auto tryResult1333 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1333)::ok_type>); if ((__builtin_expect(!!(tryResult1333
.isErr()), 0))) { auto tryTempError = tryResult1333.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17844, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17844 ){auto tryResult1333 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1333)::ok_type>); if ((__builtin_expect(!!(tryResult1333
.isErr()), 0))) { auto tryTempError = tryResult1333.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17844, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
17845
17846 if (mIsLastObjectStore) {
17847 // We can just delete everything if this is the last object store.
17848 QM_TRY(MOZ_TO_RESULT({auto tryResult1334 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1334)::ok_type>); if ((__builtin_expect
(!!(tryResult1334.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))"
, tryResult1334.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17849, mozilla::dom::quota::Severity::Error); return tryResult1334
.propagateErr(); }}
17849 aConnection->ExecuteCachedStatement("DELETE FROM index_data;"_ns))){auto tryResult1334 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1334)::ok_type>); if ((__builtin_expect
(!!(tryResult1334.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))"
, tryResult1334.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17849, mozilla::dom::quota::Severity::Error); return tryResult1334
.propagateErr(); }}
;
17850
17851 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1335 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM unique_index_data;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1335)::ok_type>);
if ((__builtin_expect(!!(tryResult1335.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))"
, tryResult1335.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17852, mozilla::dom::quota::Severity::Error); return tryResult1335
.propagateErr(); }}
17852 "DELETE FROM unique_index_data;"_ns))){auto tryResult1335 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM unique_index_data;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1335)::ok_type>);
if ((__builtin_expect(!!(tryResult1335.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))"
, tryResult1335.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17852, mozilla::dom::quota::Severity::Error); return tryResult1335
.propagateErr(); }}
;
17853
17854 QM_TRY(MOZ_TO_RESULT({auto tryResult1336 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1336)::ok_type>); if ((__builtin_expect
(!!(tryResult1336.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))"
, tryResult1336.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17855, mozilla::dom::quota::Severity::Error); return tryResult1336
.propagateErr(); }}
17855 aConnection->ExecuteCachedStatement("DELETE FROM object_data;"_ns))){auto tryResult1336 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1336)::ok_type>); if ((__builtin_expect
(!!(tryResult1336.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))"
, tryResult1336.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17855, mozilla::dom::quota::Severity::Error); return tryResult1336
.propagateErr(); }}
;
17856
17857 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1337 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1337)::ok_type>);
if ((__builtin_expect(!!(tryResult1337.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))"
, tryResult1337.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1337
.propagateErr(); }}
17858 "DELETE FROM object_store_index;"_ns))){auto tryResult1337 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1337)::ok_type>);
if ((__builtin_expect(!!(tryResult1337.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))"
, tryResult1337.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1337
.propagateErr(); }}
;
17859
17860 QM_TRY(MOZ_TO_RESULT({auto tryResult1338 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1338)::ok_type>); if ((__builtin_expect
(!!(tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))"
, tryResult1338.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1338
.propagateErr(); }}
17861 aConnection->ExecuteCachedStatement("DELETE FROM object_store;"_ns))){auto tryResult1338 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1338)::ok_type>); if ((__builtin_expect
(!!(tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))"
, tryResult1338.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1338
.propagateErr(); }}
;
17862 } else {
17863 QM_TRY_INSPECT(auto tryResult1339 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1339
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1339.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17865, mozilla::dom::quota::Severity::Error); return tryResult1339
.propagateErr(); } const bool& hasIndexes = tryResult1339
.inspect();
17864 const bool& hasIndexes,auto tryResult1339 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1339
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1339.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17865, mozilla::dom::quota::Severity::Error); return tryResult1339
.propagateErr(); } const bool& hasIndexes = tryResult1339
.inspect();
17865 ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id()))auto tryResult1339 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1339
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1339.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17865, mozilla::dom::quota::Severity::Error); return tryResult1339
.propagateErr(); } const bool& hasIndexes = tryResult1339
.inspect();
;
17866
17867 const auto bindObjectStoreIdToFirstParameter =
17868 [this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {
17869 QM_TRY(MOZ_TO_RESULT({auto tryResult1340 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata
->mCommonMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1340)::ok_type>); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17870, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); }}
17870 stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))){auto tryResult1340 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata
->mCommonMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1340)::ok_type>); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))"
, tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17870, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); }}
;
17871
17872 return Ok{};
17873 };
17874
17875 // The parameter name :object_store_id in the SQL statements below is not
17876 // used for binding, parameters are bound by index only locally by
17877 // bindObjectStoreIdToFirstParameter.
17878 if (hasIndexes) {
17879 QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1341 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mMetadata->mCommonMetadata.id(), Nothing())
)); static_assert(std::is_empty_v<typename decltype(tryResult1341
)::ok_type>); if ((__builtin_expect(!!(tryResult1341.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); }}
17880 aConnection, mMetadata->mCommonMetadata.id(), Nothing()))){auto tryResult1341 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mMetadata->mCommonMetadata.id(), Nothing())
)); static_assert(std::is_empty_v<typename decltype(tryResult1341
)::ok_type>); if ((__builtin_expect(!!(tryResult1341.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))"
, tryResult1341.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17880, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); }}
;
17881
17882 // Now clean up the object store index table.
17883 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1342 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17886, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}
17884 "DELETE FROM object_store_index "{auto tryResult1342 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17886, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}
17885 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1342 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17886, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}
17886 bindObjectStoreIdToFirstParameter))){auto tryResult1342 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17886, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}
;
17887 } else {
17888 // We only have to worry about object data if this object store has no
17889 // indexes.
17890 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1343 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect
(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17893, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}
17891 "DELETE FROM object_data "{auto tryResult1343 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect
(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17893, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}
17892 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1343 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect
(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17893, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}
17893 bindObjectStoreIdToFirstParameter))){auto tryResult1343 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1343)::ok_type>); if ((__builtin_expect
(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17893, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}
;
17894 }
17895
17896 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17899, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
17897 "DELETE FROM object_store "{auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17899, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
17898 "WHERE id = :object_store_id;"_ns,{auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17899, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
17899 bindObjectStoreIdToFirstParameter))){auto tryResult1344 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17899, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}
;
17900
17901#ifdef DEBUG1
17902 {
17903 int32_t deletedRowCount;
17904 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17906
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { MOZ_CrashSequence(__null, 17906); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
17905 aConnection->MutableStorageConnection().GetAffectedRows(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17906
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { MOZ_CrashSequence(__null, 17906); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
17906 &deletedRowCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17906
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { MOZ_CrashSequence(__null, 17906); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
17907 MOZ_ASSERT(deletedRowCount == 1)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(deletedRowCount == 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(deletedRowCount == 1))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("deletedRowCount == 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17907
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1"
")"); do { MOZ_CrashSequence(__null, 17907); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17908 }
17909#endif
17910 }
17911
17912 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1345 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1345)::ok_type
>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17912, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}
;
17913
17914 if (mMetadata->mCommonMetadata.autoIncrement()) {
17915 Transaction().ForgetModifiedAutoIncrementObjectStore(*mMetadata);
17916 }
17917
17918 return NS_OK;
17919}
17920
17921nsresult RenameObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17922 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17922); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 17922); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17923 aConnection->AssertIsOnConnectionThread();
17924
17925 AUTO_PROFILER_LABEL("RenameObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17925( "RenameObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17926
17927#ifdef DEBUG1
17928 {
17929 // Make sure that we're not renaming an object store with the same name as
17930 // another that already exists. This should be impossible because we should
17931 // have thrown an error long before now...
17932 // The parameter names are not used, parameters are bound by index only
17933 // locally in the same function.
17934 QM_TRY_INSPECT(auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17935 const bool& hasResult,auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17936 aConnectionauto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17937 ->BorrowAndExecuteSingleStepStatement(auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17938 "SELECT name "auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17939 "FROM object_store "auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17940 "WHERE name = :name AND id != :id;"_ns,auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17941 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17942 QM_TRY(auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17943 MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17944
17945 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17946 return Ok{};auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17947 })auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17948 .map(IsSome),auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
17949 QM_ASSERT_UNREACHABLE)auto tryResult1348 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1346)::ok_type>); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1346
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17943, mozilla::dom::quota::Severity::Error); return tryResult1346
.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17945, mozilla::dom::quota::Severity::Error); return tryResult1347
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1348.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1346 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1346)::ok_type>); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17943, mozilla::dom::quota::Severity::Error); return tryResult1346.propagateErr(); }}; {auto tryResult1347 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1347.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17945, mozilla::dom::quota::Severity::Error); return tryResult1347.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17949); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 17949); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1348.inspect();
;
17950
17951 MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!hasResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { MOZ_CrashSequence(__null, 17951); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17952 }
17953#endif
17954
17955 DatabaseConnection::AutoSavepoint autoSave;
17956 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1349 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17961, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17957#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1349 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17961, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17958 ,{auto tryResult1349 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17961, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17959 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1349 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17961, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17960#endif{auto tryResult1349 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17961, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
17961 ){auto tryResult1349 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { auto tryTempError = tryResult1349.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17961, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
17962
17963 // The parameter names are not used, parameters are bound by index only
17964 // locally in the same function.
17965 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1352 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1350
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17970, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17970, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; return Ok{}; }))"
, tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17975, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}
17966 "UPDATE object_store "{auto tryResult1352 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1350
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17970, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17970, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; return Ok{}; }))"
, tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17975, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}
17967 "SET name = :name "{auto tryResult1352 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1350
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17970, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17970, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; return Ok{}; }))"
, tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17975, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}
17968 "WHERE id = :id;"_ns,{auto tryResult1352 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1350
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17970, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17970, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; return Ok{}; }))"
, tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17975, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}
17969 [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1352 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1350
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17970, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17970, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; return Ok{}; }))"
, tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17975, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}
17970 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1352 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1350
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17970, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17970, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; return Ok{}; }))"
, tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17975, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}
17971
17972 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));{auto tryResult1352 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1350
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17970, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17970, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; return Ok{}; }))"
, tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17975, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}
17973
17974 return Ok{};{auto tryResult1352 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1350
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17970, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17970, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; return Ok{}; }))"
, tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17975, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}
17975 }))){auto tryResult1352 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1350
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17970, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17972, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1352)::ok_type>); if ((__builtin_expect
(!!(tryResult1352.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1350 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect(!!(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1350.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17970, mozilla::dom::quota::Severity::Error); return tryResult1350.propagateErr(); }}; {auto tryResult1351 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1351)::ok_type>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1351.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17972, mozilla::dom::quota::Severity::Error); return tryResult1351.propagateErr(); }}; return Ok{}; }))"
, tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17975, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}
;
17976
17977 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1353 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1353)::ok_type
>); if ((__builtin_expect(!!(tryResult1353.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1353.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17977, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}
;
17978
17979 return NS_OK;
17980}
17981
17982CreateIndexOp::CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
17983 const IndexOrObjectStoreId aObjectStoreId,
17984 const IndexMetadata& aMetadata)
17985 : VersionChangeTransactionOp(std::move(aTransaction)),
17986 mMetadata(aMetadata),
17987 mFileManager(Transaction().GetDatabase().GetFileManagerPtr()),
17988 mDatabaseId(Transaction().DatabaseId()),
17989 mObjectStoreId(aObjectStoreId) {
17990 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17990
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 17990); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
17991 MOZ_ASSERT(aMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMetadata.id())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMetadata.id()))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aMetadata.id()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17991
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()" ")"
); do { MOZ_CrashSequence(__null, 17991); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
17992 MOZ_ASSERT(mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mFileManager))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mFileManager", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { MOZ_CrashSequence(__null, 17992); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17993 MOZ_ASSERT(!mDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mDatabaseId.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mDatabaseId.IsEmpty()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!mDatabaseId.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17993
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 17993); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17994}
17995
17996nsresult CreateIndexOp::InsertDataFromObjectStore(
17997 DatabaseConnection* aConnection) {
17998 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 17998); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 17998); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17999 aConnection->AssertIsOnConnectionThread();
18000 MOZ_ASSERT(mMaybeUniqueIndexTable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeUniqueIndexTable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeUniqueIndexTable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18000
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable"
")"); do { MOZ_CrashSequence(__null, 18000); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18001
18002 AUTO_PROFILER_LABEL("CreateIndexOp::InsertDataFromObjectStore", DOM)mozilla::AutoProfilerLabel raiiObject18002( "CreateIndexOp::InsertDataFromObjectStore"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18003
18004 auto& storageConnection = aConnection->MutableStorageConnection();
18005
18006 RefPtr<UpdateIndexDataValuesFunction> updateFunction =
18007 new UpdateIndexDataValuesFunction(this, aConnection,
18008 Transaction().GetDatabasePtr());
18009
18010 constexpr auto updateFunctionName = "update_index_data_values"_ns;
18011
18012 nsresult rv =
18013 storageConnection.CreateFunction(updateFunctionName, 4, updateFunction);
18014 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18014)
) {
18015 return rv;
18016 }
18017
18018 rv = InsertDataFromObjectStoreInternal(aConnection);
18019
18020 MOZ_ALWAYS_SUCCEEDS(storageConnection.RemoveFunction(updateFunctionName))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(storageConnection.RemoveFunction(updateFunctionName))), 1)))
), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18020
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))"
")"); do { MOZ_CrashSequence(__null, 18020); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18021
18022 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18022)
) {
18023 return rv;
18024 }
18025
18026 return NS_OK;
18027}
18028
18029nsresult CreateIndexOp::InsertDataFromObjectStoreInternal(
18030 DatabaseConnection* aConnection) const {
18031 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18031); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18031); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18032 aConnection->AssertIsOnConnectionThread();
18033 MOZ_ASSERT(mMaybeUniqueIndexTable)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeUniqueIndexTable)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mMaybeUniqueIndexTable"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18033
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable"
")"); do { MOZ_CrashSequence(__null, 18033); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18034
18035 MOZ_ASSERT(aConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection->HasStorageConnection())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aConnection->HasStorageConnection()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aConnection->HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18035
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 18035); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18036
18037 // The parameter names are not used, parameters are bound by index only
18038 // locally in the same function.
18039 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1355 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1354
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1354)::ok_type
>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18046, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18046, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; return Ok{}; }))"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}
18040 "UPDATE object_data "{auto tryResult1355 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1354
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1354)::ok_type
>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18046, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18046, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; return Ok{}; }))"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}
18041 "SET index_data_values = update_index_data_values "{auto tryResult1355 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1354
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1354)::ok_type
>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18046, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18046, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; return Ok{}; }))"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}
18042 "(key, index_data_values, file_ids, data) "{auto tryResult1355 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1354
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1354)::ok_type
>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18046, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18046, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; return Ok{}; }))"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}
18043 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1355 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1354
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1354)::ok_type
>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18046, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18046, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; return Ok{}; }))"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}
18044 [objectStoredId ={auto tryResult1355 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1354
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1354)::ok_type
>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18046, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18046, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; return Ok{}; }))"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}
18045 mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1355 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1354
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1354)::ok_type
>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18046, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18046, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; return Ok{}; }))"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}
18046 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoredId)));{auto tryResult1355 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1354
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1354)::ok_type
>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18046, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18046, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; return Ok{}; }))"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}
18047
18048 return Ok{};{auto tryResult1355 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1354
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1354)::ok_type
>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18046, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18046, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; return Ok{}; }))"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}
18049 }))){auto tryResult1355 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_data " "SET index_data_values = update_index_data_values "
"(key, index_data_values, file_ids, data) " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoredId = mObjectStoreId](mozIStorageStatement&
stmt) -> Result<Ok, nsresult> { {auto tryResult1354
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert
(std::is_empty_v<typename decltype(tryResult1354)::ok_type
>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))"
, tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18046, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_data \" \"SET index_data_values = update_index_data_values \" \"(key, index_data_values, file_ids, data) \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoredId = mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1354.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18046, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; return Ok{}; }))"
, tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18049, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}
;
18050
18051 return NS_OK;
18052}
18053
18054bool CreateIndexOp::Init(TransactionBase& aTransaction) {
18055 AssertIsOnBackgroundThread();
18056 MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18056
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 18056); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18057 MOZ_ASSERT(mMaybeUniqueIndexTable.isNothing())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMaybeUniqueIndexTable.isNothing())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMaybeUniqueIndexTable.isNothing
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mMaybeUniqueIndexTable.isNothing()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18057); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable.isNothing()"
")"); do { MOZ_CrashSequence(__null, 18057); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18058
18059 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
18060 aTransaction.GetMetadataForObjectStoreId(mObjectStoreId);
18061 MOZ_ASSERT(objectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(objectStoreMetadata))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("objectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18061
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 18061); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18062
18063 const uint32_t indexCount = objectStoreMetadata->mIndexes.Count();
18064 if (!indexCount) {
18065 return true;
18066 }
18067
18068 auto uniqueIndexTable = UniqueIndexTable{indexCount};
18069
18070 for (const auto& value : objectStoreMetadata->mIndexes.Values()) {
18071 MOZ_ASSERT(!uniqueIndexTable.Contains(value->mCommonMetadata.id()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!uniqueIndexTable.Contains(value->mCommonMetadata
.id()))>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!uniqueIndexTable.Contains(value->mCommonMetadata
.id())))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!uniqueIndexTable.Contains(value->mCommonMetadata.id())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18071
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!uniqueIndexTable.Contains(value->mCommonMetadata.id())"
")"); do { MOZ_CrashSequence(__null, 18071); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18072
18073 if (NS_WARN_IF(!uniqueIndexTable.InsertOrUpdate(NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata
.id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18075
)
18074 value->mCommonMetadata.id(), value->mCommonMetadata.unique(),NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata
.id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18075
)
18075 fallible))NS_warn_if_impl(!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata
.id(), value->mCommonMetadata.unique(), fallible), "!uniqueIndexTable.InsertOrUpdate( value->mCommonMetadata.id(), value->mCommonMetadata.unique(), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18075
)
) {
18076 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18076, "UnknownErr")
;
18077 NS_WARNING("out of memory")NS_DebugBreak(NS_DEBUG_WARNING, "out of memory", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18077)
;
18078 return false;
18079 }
18080 }
18081
18082 uniqueIndexTable.MarkImmutable();
18083
18084 mMaybeUniqueIndexTable.emplace(std::move(uniqueIndexTable));
18085
18086 return true;
18087}
18088
18089nsresult CreateIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18090 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18090); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18090); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18091 aConnection->AssertIsOnConnectionThread();
18092
18093 AUTO_PROFILER_LABEL("CreateIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18093( "CreateIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18094
18095#ifdef DEBUG1
18096 {
18097 // Make sure that we're not creating an index with the same name and object
18098 // store as another that already exists. This should be impossible because
18099 // we should have thrown an error long before now...
18100 // The parameter names are not used, parameters are bound by index only
18101 // locally in the same function.
18102 QM_TRY_INSPECT(auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18103 const bool& hasResult,auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18104 aConnectionauto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18105 ->BorrowAndExecuteSingleStepStatement(auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18106 "SELECT name "auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18107 "FROM object_store_index "auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18108 "WHERE object_store_id = :object_store_id AND name = :name;"_ns,auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18109 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18110 QM_TRY(MOZ_TO_RESULT(auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18111 stmt.BindInt64ByIndex(0, self.mObjectStoreId)));auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18112 QM_TRY(MOZ_TO_RESULT(auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18113 stmt.BindStringByIndex(1, self.mMetadata.name())));auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18114 return Ok{};auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18115 })auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18116 .map(IsSome),auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
18117 QM_ASSERT_UNREACHABLE)auto tryResult1358 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id AND name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1356)::ok_type>); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1356
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18111, mozilla::dom::quota::Severity::Error); return tryResult1356
.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect
(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18113, mozilla::dom::quota::Severity::Error); return tryResult1357
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1358.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1358.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id AND name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1356 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect(!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1356.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18111, mozilla::dom::quota::Severity::Error); return tryResult1356.propagateErr(); }}; {auto tryResult1357 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1357.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18113, mozilla::dom::quota::Severity::Error); return tryResult1357.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18117); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18117); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1358.inspect();
;
18118
18119 MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!hasResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18119); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { MOZ_CrashSequence(__null, 18119); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18120 }
18121#endif
18122
18123 DatabaseConnection::AutoSavepoint autoSave;
18124 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1359 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359
.isErr()), 0))) { auto tryTempError = tryResult1359.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18129, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18125#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1359 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359
.isErr()), 0))) { auto tryTempError = tryResult1359.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18129, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18126 ,{auto tryResult1359 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359
.isErr()), 0))) { auto tryTempError = tryResult1359.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18129, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18127 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1359 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359
.isErr()), 0))) { auto tryTempError = tryResult1359.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18129, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18128#endif{auto tryResult1359 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359
.isErr()), 0))) { auto tryTempError = tryResult1359.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18129, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18129 ){auto tryResult1359 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359
.isErr()), 0))) { auto tryTempError = tryResult1359.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18129, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
18130
18131 // The parameter names are not used, parameters are bound by index only
18132 // locally in the same function.
18133 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18134 "INSERT INTO object_store_index (id, name, key_path, unique_index, "{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18135 "multientry, object_store_id, locale, "{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18136 "is_auto_locale) "{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18137 "VALUES (:id, :name, :key_path, :unique, :multientry, "{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18138 ":object_store_id, :locale, :is_auto_locale)"_ns,{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18139 [&metadata = mMetadata, objectStoreId = mObjectStoreId]({auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18140 mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18141 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18142
18143 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(1, metadata.name())));{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18144
18145 QM_TRY(MOZ_TO_RESULT({auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18146 stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString())));{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18147
18148 QM_TRY({auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18149 MOZ_TO_RESULT(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0)));{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18150
18151 QM_TRY(MOZ_TO_RESULT({auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18152 stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0)));{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18153 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(5, objectStoreId)));{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18154
18155 QM_TRY(MOZ_TO_RESULT({auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18156 metadata.locale().IsEmpty(){auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18157 ? stmt.BindNullByIndex(6){auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18158 : stmt.BindUTF8StringByIndex(6, metadata.locale())));{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18159
18160 QM_TRY(MOZ_TO_RESULT(stmt.BindInt32ByIndex(7, metadata.autoLocale())));{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18161
18162 return Ok{};{auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
18163 }))){auto tryResult1368 = (ToResult(aConnection->ExecuteCachedStatement
( "INSERT INTO object_store_index (id, name, key_path, unique_index, "
"multientry, object_store_id, locale, " "is_auto_locale) " "VALUES (:id, :name, :key_path, :unique, :multientry, "
":object_store_id, :locale, :is_auto_locale)"_ns, [&metadata
= mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement
& stmt) -> Result<Ok, nsresult> { {auto tryResult1360
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1360)::ok_type
>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18141, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1361
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18143, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1362)::ok_type>
); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1362.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18146, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18149, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1364.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18152, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1365
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18153, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1366.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18158, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect
(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18160, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect
(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"INSERT INTO object_store_index (id, name, key_path, unique_index, \" \"multientry, object_store_id, locale, \" \"is_auto_locale) \" \"VALUES (:id, :name, :key_path, :unique, :multientry, \" \":object_store_id, :locale, :is_auto_locale)\"_ns, [&metadata = mMetadata, objectStoreId = mObjectStoreId]( mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1360 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1360.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18141, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1361.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18143, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1362.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18146, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18149, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1364.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1365.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18153, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; {auto tryResult1366 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18158, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18160, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; return Ok{}; }))"
, tryResult1368.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18163, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
;
18164
18165#ifdef DEBUG1
18166 {
18167 int64_t id;
18168 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { do { } while (false)
; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18169
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { MOZ_CrashSequence(__null, 18169); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18169 aConnection->MutableStorageConnection().GetLastInsertRowID(&id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { do { } while (false)
; MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18169
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { MOZ_CrashSequence(__null, 18169); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18170 MOZ_ASSERT(mMetadata.id() == id)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata.id() == id)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata.id() == id))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata.id() == id"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18170
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id"
")"); do { MOZ_CrashSequence(__null, 18170); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18171 }
18172#endif
18173
18174 QM_TRY(MOZ_TO_RESULT(InsertDataFromObjectStore(aConnection))){auto tryResult1369 = (ToResult(InsertDataFromObjectStore(aConnection
))); static_assert(std::is_empty_v<typename decltype(tryResult1369
)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(InsertDataFromObjectStore(aConnection))"
, tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18174, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); }}
;
18175
18176 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1370 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1370)::ok_type
>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1370.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18176, mozilla::dom::quota::Severity::Error); return tryResult1370
.propagateErr(); }}
;
18177
18178 return NS_OK;
18179}
18180
18181NS_IMPL_ISUPPORTS(CreateIndexOp::UpdateIndexDataValuesFunction,MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction
::AddRef(void) { static_assert(!std::is_destructible_v<CreateIndexOp
::UpdateIndexDataValuesFunction>, "Reference-counted class "
"CreateIndexOp::UpdateIndexDataValuesFunction" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 18182
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("CreateIndexOp::UpdateIndexDataValuesFunction" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 18182); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction"
" not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef
((this), (count), ("CreateIndexOp::UpdateIndexDataValuesFunction"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
CreateIndexOp::UpdateIndexDataValuesFunction::Release(void) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 18182
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("CreateIndexOp::UpdateIndexDataValuesFunction" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 18182); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction"
" not thread-safe"); const char* const nametmp = "CreateIndexOp::UpdateIndexDataValuesFunction"
; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), (
nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return
0; } return count; } nsresult CreateIndexOp::UpdateIndexDataValuesFunction
::QueryInterface(const nsIID& aIID, void** aInstancePtr) {
do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "QueryInterface requires a non-NULL destination!", "aInstancePtr"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18182
); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE
; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<CreateIndexOp::UpdateIndexDataValuesFunction
, mozIStorageFunction>, int32_t( reinterpret_cast<char*
>(static_cast<mozIStorageFunction*>((CreateIndexOp::
UpdateIndexDataValuesFunction*)0x1000)) - reinterpret_cast<
char*>((CreateIndexOp::UpdateIndexDataValuesFunction*)0x1000
))}, {&mozilla::detail::kImplementedIID<CreateIndexOp::
UpdateIndexDataValuesFunction, nsISupports>, int32_t(reinterpret_cast
<char*>(static_cast<nsISupports*>( static_cast<
mozIStorageFunction*>((CreateIndexOp::UpdateIndexDataValuesFunction
*)0x1000))) - reinterpret_cast<char*>((CreateIndexOp::UpdateIndexDataValuesFunction
*)0x1000))}, { nullptr, 0 } } ; static_assert(std::size(table
) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI
(static_cast<void*>(this), aIID, aInstancePtr, table); return
rv; }
18182 mozIStorageFunction)MozExternalRefCountType CreateIndexOp::UpdateIndexDataValuesFunction
::AddRef(void) { static_assert(!std::is_destructible_v<CreateIndexOp
::UpdateIndexDataValuesFunction>, "Reference-counted class "
"CreateIndexOp::UpdateIndexDataValuesFunction" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 18182
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("CreateIndexOp::UpdateIndexDataValuesFunction" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 18182); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction"
" not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef
((this), (count), ("CreateIndexOp::UpdateIndexDataValuesFunction"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
CreateIndexOp::UpdateIndexDataValuesFunction::Release(void) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 18182
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("CreateIndexOp::UpdateIndexDataValuesFunction" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("CreateIndexOp::UpdateIndexDataValuesFunction"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 18182); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("CreateIndexOp::UpdateIndexDataValuesFunction"
" not thread-safe"); const char* const nametmp = "CreateIndexOp::UpdateIndexDataValuesFunction"
; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), (
nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return
0; } return count; } nsresult CreateIndexOp::UpdateIndexDataValuesFunction
::QueryInterface(const nsIID& aIID, void** aInstancePtr) {
do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "QueryInterface requires a non-NULL destination!", "aInstancePtr"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18182
); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE
; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<CreateIndexOp::UpdateIndexDataValuesFunction
, mozIStorageFunction>, int32_t( reinterpret_cast<char*
>(static_cast<mozIStorageFunction*>((CreateIndexOp::
UpdateIndexDataValuesFunction*)0x1000)) - reinterpret_cast<
char*>((CreateIndexOp::UpdateIndexDataValuesFunction*)0x1000
))}, {&mozilla::detail::kImplementedIID<CreateIndexOp::
UpdateIndexDataValuesFunction, nsISupports>, int32_t(reinterpret_cast
<char*>(static_cast<nsISupports*>( static_cast<
mozIStorageFunction*>((CreateIndexOp::UpdateIndexDataValuesFunction
*)0x1000))) - reinterpret_cast<char*>((CreateIndexOp::UpdateIndexDataValuesFunction
*)0x1000))}, { nullptr, 0 } } ; static_assert(std::size(table
) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI
(static_cast<void*>(this), aIID, aInstancePtr, table); return
rv; }
;
18183
18184NS_IMETHODIMPnsresult
18185CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall(
18186 mozIStorageValueArray* aValues, nsIVariant** _retval) {
18187 MOZ_ASSERT(aValues)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aValues)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aValues))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aValues", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18187); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { MOZ_CrashSequence(__null, 18187); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18188 MOZ_ASSERT(_retval)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(_retval)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(_retval))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("_retval", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18188); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { MOZ_CrashSequence(__null, 18188); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18189 MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18189); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { MOZ_CrashSequence(__null, 18189); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18190 mConnection->AssertIsOnConnectionThread();
18191 MOZ_ASSERT(mOp)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOp)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(mOp))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("mOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18191); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp" ")");
do { MOZ_CrashSequence(__null, 18191); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18192 MOZ_ASSERT(mOp->mFileManager)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOp->mFileManager)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp->mFileManager))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mOp->mFileManager"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18192
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp->mFileManager"
")"); do { MOZ_CrashSequence(__null, 18192); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18193
18194 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject18195( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
18195 "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject18195( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18196
18197#ifdef DEBUG1
18198 {
18199 uint32_t argCount;
18200 MOZ_ALWAYS_SUCCEEDS(aValues->GetNumEntries(&argCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aValues->GetNumEntries(&argCount))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18200
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))"
")"); do { MOZ_CrashSequence(__null, 18200); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18201 MOZ_ASSERT(argCount == 4)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(argCount == 4)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(argCount == 4))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("argCount == 4",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18201)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "argCount == 4" ")"
); do { MOZ_CrashSequence(__null, 18201); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; // key, index_data_values, file_ids, data
18202
18203 int32_t valueType;
18204 MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(0, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aValues->GetTypeOfIndex(0, &valueType))), 1)))), 1)))
{ } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18204
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))"
")"); do { MOZ_CrashSequence(__null, 18204); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18205 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18205
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18205); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18206
18207 MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(1, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aValues->GetTypeOfIndex(1, &valueType))), 1)))), 1)))
{ } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18207
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))"
")"); do { MOZ_CrashSequence(__null, 18207); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18208 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18209
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18209); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18209 valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18209
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18209); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18210
18211 MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(2, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aValues->GetTypeOfIndex(2, &valueType))), 1)))), 1)))
{ } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18211
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))"
")"); do { MOZ_CrashSequence(__null, 18211); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18212 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_TEXT))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18213
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 18213); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18213 valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_TEXT)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_TEXT))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18213
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
")"); do { MOZ_CrashSequence(__null, 18213); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18214
18215 MOZ_ALWAYS_SUCCEEDS(aValues->GetTypeOfIndex(3, &valueType))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aValues->GetTypeOfIndex(3, &valueType))), 1)))), 1)))
{ } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18215
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))"
")"); do { MOZ_CrashSequence(__null, 18215); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18216 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||
valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||
valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18217
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
")"); do { MOZ_CrashSequence(__null, 18217); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18217 valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||
valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER)>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB ||
valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18217
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
")"); do { MOZ_CrashSequence(__null, 18217); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18218 }
18219#endif
18220
18221 QM_TRY_UNWRAP(auto cloneInfo, GetStructuredCloneReadInfoFromValueArray(auto tryResult1371 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18224, mozilla::dom::quota::Severity::Error); return tryResult1371
.propagateErr(); } auto cloneInfo = tryResult1371.unwrap();
18222 aValues,auto tryResult1371 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18224, mozilla::dom::quota::Severity::Error); return tryResult1371
.propagateErr(); } auto cloneInfo = tryResult1371.unwrap();
18223 /* aDataIndex */ 3,auto tryResult1371 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18224, mozilla::dom::quota::Severity::Error); return tryResult1371
.propagateErr(); } auto cloneInfo = tryResult1371.unwrap();
18224 /* aFileIdsIndex */ 2, *mOp->mFileManager))auto tryResult1371 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1371.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18224, mozilla::dom::quota::Severity::Error); return tryResult1371
.propagateErr(); } auto cloneInfo = tryResult1371.unwrap();
;
18225
18226 const IndexMetadata& metadata = mOp->mMetadata;
18227 const IndexOrObjectStoreId& objectStoreId = mOp->mObjectStoreId;
18228
18229 // XXX does this really need a non-const cloneInfo?
18230 QM_TRY_INSPECT(const auto& updateInfos,auto tryResult1372 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1372.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18233, mozilla::dom::quota::Severity::Error); return tryResult1372
.propagateErr(); } const auto& updateInfos = tryResult1372
.inspect();
18231 DeserializeIndexValueToUpdateInfos(auto tryResult1372 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1372.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18233, mozilla::dom::quota::Severity::Error); return tryResult1372
.propagateErr(); } const auto& updateInfos = tryResult1372
.inspect();
18232 metadata.id(), metadata.keyPath(), metadata.multiEntry(),auto tryResult1372 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1372.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18233, mozilla::dom::quota::Severity::Error); return tryResult1372
.propagateErr(); } const auto& updateInfos = tryResult1372
.inspect();
18233 metadata.locale(), cloneInfo))auto tryResult1372 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1372.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18233, mozilla::dom::quota::Severity::Error); return tryResult1372
.propagateErr(); } const auto& updateInfos = tryResult1372
.inspect();
;
18234
18235 if (updateInfos.IsEmpty()) {
18236 // XXX See if we can do this without copying...
18237
18238 nsCOMPtr<nsIVariant> unmodifiedValue;
18239
18240 // No changes needed, just return the original value.
18241 QM_TRY_INSPECT(const int32_t& valueType,auto tryResult1373 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult1373
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18242, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const int32_t& valueType = tryResult1373
.inspect();
18242 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1))auto tryResult1373 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult1373
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryResult1373.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18242, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); } const int32_t& valueType = tryResult1373
.inspect();
;
18243
18244 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18245
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18245); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18245 valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_NULL ||
valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType
== mozIStorageValueArray::VALUE_TYPE_BLOB))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18245
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18245); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18246
18247 if (valueType == mozIStorageValueArray::VALUE_TYPE_NULL) {
18248 unmodifiedValue = new storage::NullVariant();
18249 unmodifiedValue.forget(_retval);
18250 return NS_OK;
18251 }
18252
18253 MOZ_ASSERT(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(valueType == mozIStorageValueArray::VALUE_TYPE_BLOB)
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18253
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { MOZ_CrashSequence(__null, 18253); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18254
18255 const uint8_t* blobData;
18256 uint32_t blobDataLength;
18257 QM_TRY({auto tryResult1374 = (ToResult(aValues->GetSharedBlob(1, &
blobDataLength, &blobData))); static_assert(std::is_empty_v
<typename decltype(tryResult1374)::ok_type>); if ((__builtin_expect
(!!(tryResult1374.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))"
, tryResult1374.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18258, mozilla::dom::quota::Severity::Error); return tryResult1374
.propagateErr(); }}
18258 MOZ_TO_RESULT(aValues->GetSharedBlob(1, &blobDataLength, &blobData))){auto tryResult1374 = (ToResult(aValues->GetSharedBlob(1, &
blobDataLength, &blobData))); static_assert(std::is_empty_v
<typename decltype(tryResult1374)::ok_type>); if ((__builtin_expect
(!!(tryResult1374.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))"
, tryResult1374.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18258, mozilla::dom::quota::Severity::Error); return tryResult1374
.propagateErr(); }}
;
18259
18260 const std::pair<uint8_t*, int> copiedBlobDataPair(
18261 static_cast<uint8_t*>(malloc(blobDataLength)), blobDataLength);
18262
18263 if (!copiedBlobDataPair.first) {
18264 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18264, "UnknownErr")
;
18265 return NS_ERROR_OUT_OF_MEMORY;
18266 }
18267
18268 memcpy(copiedBlobDataPair.first, blobData, blobDataLength);
18269
18270 unmodifiedValue = new storage::AdoptedBlobVariant(copiedBlobDataPair);
18271 unmodifiedValue.forget(_retval);
18272
18273 return NS_OK;
18274 }
18275
18276 Key key;
18277 QM_TRY(MOZ_TO_RESULT(key.SetFromValueArray(aValues, 0))){auto tryResult1375 = (ToResult(key.SetFromValueArray(aValues
, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1375
)::ok_type>); if ((__builtin_expect(!!(tryResult1375.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(key.SetFromValueArray(aValues, 0))"
, tryResult1375.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18277, mozilla::dom::quota::Severity::Error); return tryResult1375
.propagateErr(); }}
;
18278
18279 QM_TRY_UNWRAP(auto indexValues, ReadCompressedIndexDataValues(*aValues, 1))auto tryResult1376 = (ReadCompressedIndexDataValues(*aValues,
1)); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(*aValues, 1)"
, tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18279, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } auto indexValues = tryResult1376.unwrap();
;
18280
18281 const bool hadPreviousIndexValues = !indexValues.IsEmpty();
18282
18283 const uint32_t updateInfoCount = updateInfos.Length();
18284
18285 QM_TRY(OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount,{auto tryResult1377 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1377)::ok_type>);
if ((__builtin_expect(!!(tryResult1377.isErr()), 0))) { auto
tryTempError = tryResult1377.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, NS_ERROR_OUT_OF_MEMORY); }}
18286 fallible)),{auto tryResult1377 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1377)::ok_type>);
if ((__builtin_expect(!!(tryResult1377.isErr()), 0))) { auto
tryTempError = tryResult1377.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, NS_ERROR_OUT_OF_MEMORY); }}
18287 NS_ERROR_OUT_OF_MEMORY, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1377 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1377)::ok_type>);
if ((__builtin_expect(!!(tryResult1377.isErr()), 0))) { auto
tryTempError = tryResult1377.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18287, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, NS_ERROR_OUT_OF_MEMORY); }}
;
18288
18289 // First construct the full list to update the index_data_values row.
18290 for (const IndexUpdateInfo& info : updateInfos) {
18291 MOZ_ALWAYS_TRUE(indexValues.InsertElementSorted(do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18294
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18294); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18292 IndexDataValue(metadata.id(), metadata.unique(), info.value(),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18294
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18294); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18293 info.localizedValue()),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18294
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18294); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18294 fallible))do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18294
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18294); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18295 }
18296
18297 QM_TRY_UNWRAP((auto [indexValuesBlob, indexValuesBlobLength]),auto tryResult1378 = (MakeCompressedIndexDataValues(indexValues
)); if ((__builtin_expect(!!(tryResult1378.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)"
, tryResult1378.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18298, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength
] = tryResult1378.unwrap();
18298 MakeCompressedIndexDataValues(indexValues))auto tryResult1378 = (MakeCompressedIndexDataValues(indexValues
)); if ((__builtin_expect(!!(tryResult1378.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)"
, tryResult1378.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18298, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength
] = tryResult1378.unwrap();
;
18299
18300 MOZ_ASSERT(!indexValuesBlobLength == !(indexValuesBlob.get()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!indexValuesBlobLength == !(indexValuesBlob.get()))>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!indexValuesBlobLength == !(indexValuesBlob.get())))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!indexValuesBlobLength == !(indexValuesBlob.get())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18300
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexValuesBlobLength == !(indexValuesBlob.get())"
")"); do { MOZ_CrashSequence(__null, 18300); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18301
18302 nsCOMPtr<nsIVariant> value;
18303
18304 if (!indexValuesBlob) {
18305 value = new storage::NullVariant();
18306
18307 value.forget(_retval);
18308 return NS_OK;
18309 }
18310
18311 // Now insert the new table rows. We only need to construct a new list if
18312 // the full list is different.
18313 if (hadPreviousIndexValues) {
18314 indexValues.ClearAndRetainStorage();
18315
18316 MOZ_ASSERT(indexValues.Capacity() >= updateInfoCount)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(indexValues.Capacity() >= updateInfoCount)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(indexValues.Capacity() >= updateInfoCount))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("indexValues.Capacity() >= updateInfoCount"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18316
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexValues.Capacity() >= updateInfoCount"
")"); do { MOZ_CrashSequence(__null, 18316); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18317
18318 for (const IndexUpdateInfo& info : updateInfos) {
18319 MOZ_ALWAYS_TRUE(indexValues.InsertElementSorted(do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18322
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18322); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18320 IndexDataValue(metadata.id(), metadata.unique(), info.value(),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18322
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18322); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18321 info.localizedValue()),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18322
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18322); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18322 fallible))do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18322
); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { MOZ_CrashSequence(__null, 18322); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18323 }
18324 }
18325
18326 QM_TRY(MOZ_TO_RESULT({auto tryResult1379 = (ToResult(InsertIndexTableRows(mConnection
, objectStoreId, key, indexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect
(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))"
, tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18327, mozilla::dom::quota::Severity::Error); return tryResult1379
.propagateErr(); }}
18327 InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))){auto tryResult1379 = (ToResult(InsertIndexTableRows(mConnection
, objectStoreId, key, indexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect
(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))"
, tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18327, mozilla::dom::quota::Severity::Error); return tryResult1379
.propagateErr(); }}
;
18328
18329 value = new storage::AdoptedBlobVariant(
18330 std::pair(indexValuesBlob.release(), indexValuesBlobLength));
18331
18332 value.forget(_retval);
18333 return NS_OK;
18334}
18335
18336DeleteIndexOp::DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
18337 const IndexOrObjectStoreId aObjectStoreId,
18338 const IndexOrObjectStoreId aIndexId,
18339 const bool aUnique, const bool aIsLastIndex)
18340 : VersionChangeTransactionOp(std::move(aTransaction)),
18341 mObjectStoreId(aObjectStoreId),
18342 mIndexId(aIndexId),
18343 mUnique(aUnique),
18344 mIsLastIndex(aIsLastIndex) {
18345 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18345
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 18345); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18346 MOZ_ASSERT(aIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aIndexId))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18346); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")"
); do { MOZ_CrashSequence(__null, 18346); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18347}
18348
18349nsresult DeleteIndexOp::RemoveReferencesToIndex(
18350 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
18351 nsTArray<IndexDataValue>& aIndexValues) const {
18352 MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18352
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { MOZ_CrashSequence(__null, 18352); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18353 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18353
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 18353); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18354 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18354); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18354); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18355 MOZ_ASSERT(!aObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!aObjectStoreKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aObjectStoreKey.IsUnset()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aObjectStoreKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18355
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 18355); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18356 MOZ_ASSERT_IF(!mIsLastIndex, !aIndexValues.IsEmpty())do { if (!mIsLastIndex) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!aIndexValues.IsEmpty())
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!aIndexValues.IsEmpty()))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("!aIndexValues.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18356); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIndexValues.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 18356); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18357
18358 AUTO_PROFILER_LABEL("DeleteIndexOp::RemoveReferencesToIndex", DOM)mozilla::AutoProfilerLabel raiiObject18358( "DeleteIndexOp::RemoveReferencesToIndex"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18359
18360 if (mIsLastIndex) {
18361 // There is no need to parse the previous entry in the index_data_values
18362 // column if this is the last index. Simply set it to NULL.
18363 QM_TRY_INSPECT(const auto& stmt,auto tryResult1380 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1380.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18369, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); } const auto& stmt = tryResult1380.inspect
();
18364 aConnection->BorrowCachedStatement(auto tryResult1380 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1380.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18369, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); } const auto& stmt = tryResult1380.inspect
();
18365 "UPDATE object_data "auto tryResult1380 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1380.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18369, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); } const auto& stmt = tryResult1380.inspect
();
18366 "SET index_data_values = NULL "auto tryResult1380 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1380.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18369, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); } const auto& stmt = tryResult1380.inspect
();
18367 "WHERE object_store_id = :"_ns +auto tryResult1380 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1380.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18369, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); } const auto& stmt = tryResult1380.inspect
();
18368 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1380 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1380.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18369, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); } const auto& stmt = tryResult1380.inspect
();
18369 kStmtParamNameKey + ";"_ns))auto tryResult1380 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1380.isErr()),
0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"UPDATE object_data \" \"SET index_data_values = NULL \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)"
, tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18369, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); } const auto& stmt = tryResult1380.inspect
();
;
18370
18371 QM_TRY(MOZ_TO_RESULT({auto tryResult1381 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1381)::ok_type>); if ((__builtin_expect
(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1381.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18372, mozilla::dom::quota::Severity::Error); return tryResult1381
.propagateErr(); }}
18372 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1381 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1381)::ok_type>); if ((__builtin_expect
(!!(tryResult1381.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1381.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18372, mozilla::dom::quota::Severity::Error); return tryResult1381
.propagateErr(); }}
;
18373
18374 QM_TRY(MOZ_TO_RESULT({auto tryResult1382 = (ToResult(aObjectStoreKey.BindToStatement
(&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect
(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))"
, tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18375, mozilla::dom::quota::Severity::Error); return tryResult1382
.propagateErr(); }}
18375 aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))){auto tryResult1382 = (ToResult(aObjectStoreKey.BindToStatement
(&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1382)::ok_type>); if ((__builtin_expect
(!!(tryResult1382.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))"
, tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18375, mozilla::dom::quota::Severity::Error); return tryResult1382
.propagateErr(); }}
;
18376
18377 QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult1383 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1383)::ok_type
>); if ((__builtin_expect(!!(tryResult1383.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1383.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18377, mozilla::dom::quota::Severity::Error); return tryResult1383
.propagateErr(); }}
;
18378
18379 return NS_OK;
18380 }
18381
18382 {
18383 IndexDataValue search;
18384 search.mIndexId = mIndexId;
18385
18386 // Use raw pointers for search to avoid redundant index validity checks.
18387 // Maybe this should better be encapsulated in nsTArray.
18388 const auto* const begin = aIndexValues.Elements();
18389 const auto* const end = aIndexValues.Elements() + aIndexValues.Length();
18390
18391 const auto indexIdComparator = [](const IndexDataValue& aA,
18392 const IndexDataValue& aB) {
18393 return aA.mIndexId < aB.mIndexId;
18394 };
18395
18396 MOZ_ASSERT(std::is_sorted(begin, end, indexIdComparator))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(std::is_sorted(begin, end, indexIdComparator))>::
isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(std::is_sorted(begin, end, indexIdComparator)))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("std::is_sorted(begin, end, indexIdComparator)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18396
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "std::is_sorted(begin, end, indexIdComparator)"
")"); do { MOZ_CrashSequence(__null, 18396); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18397
18398 const auto [beginRange, endRange] =
18399 std::equal_range(begin, end, search, indexIdComparator);
18400 if (beginRange == end) {
18401 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18401, "UnknownErr")
;
18402 return NS_ERROR_FILE_CORRUPTED;
18403 }
18404
18405 aIndexValues.RemoveElementsAt(beginRange - begin, endRange - beginRange);
18406 }
18407
18408 QM_TRY(MOZ_TO_RESULT(UpdateIndexValues(aConnection, mObjectStoreId,{auto tryResult1384 = (ToResult(UpdateIndexValues(aConnection
, mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1384)::ok_type
>); if ((__builtin_expect(!!(tryResult1384.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))"
, tryResult1384.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18409, mozilla::dom::quota::Severity::Error); return tryResult1384
.propagateErr(); }}
18409 aObjectStoreKey, aIndexValues))){auto tryResult1384 = (ToResult(UpdateIndexValues(aConnection
, mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1384)::ok_type
>); if ((__builtin_expect(!!(tryResult1384.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))"
, tryResult1384.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18409, mozilla::dom::quota::Severity::Error); return tryResult1384
.propagateErr(); }}
;
18410
18411 return NS_OK;
18412}
18413
18414nsresult DeleteIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18415 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18415); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18415); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18416 aConnection->AssertIsOnConnectionThread();
18417
18418#ifdef DEBUG1
18419 {
18420 // Make sure |mIsLastIndex| is telling the truth.
18421 // The parameter names are not used, parameters are bound by index only
18422 // locally in the same function.
18423 QM_TRY_INSPECT(const auto& stmt,auto tryResult1385 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1385.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18428); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1385.inspect();
18424 aConnection->BorrowCachedStatement(auto tryResult1385 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1385.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18428); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1385.inspect();
18425 "SELECT id "auto tryResult1385 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1385.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18428); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1385.inspect();
18426 "FROM object_store_index "auto tryResult1385 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1385.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18428); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1385.inspect();
18427 "WHERE object_store_id = :object_store_id;"_ns),auto tryResult1385 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1385.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18428); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1385.inspect();
18428 QM_ASSERT_UNREACHABLE)auto tryResult1385 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1385.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1385.unwrapErr
(); mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection->BorrowCachedStatement( \"SELECT id \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18428); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18428); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1385.inspect();
;
18429
18430 MOZ_ALWAYS_SUCCEEDS(stmt->BindInt64ByIndex(0, mObjectStoreId))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->BindInt64ByIndex(0, mObjectStoreId))), 1)))), 1))) {
} else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18430
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))"
")"); do { MOZ_CrashSequence(__null, 18430); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18431
18432 bool foundThisIndex = false;
18433 bool foundOtherIndex = false;
18434
18435 while (true) {
18436 bool hasResult;
18437 MOZ_ALWAYS_SUCCEEDS(stmt->ExecuteStep(&hasResult))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->ExecuteStep(&hasResult))), 1)))), 1))) { } else
{ do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18437
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
")"); do { MOZ_CrashSequence(__null, 18437); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18438
18439 if (!hasResult) {
18440 break;
18441 }
18442
18443 int64_t id;
18444 MOZ_ALWAYS_SUCCEEDS(stmt->GetInt64(0, &id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->GetInt64(0, &id))), 1)))), 1))) { } else { do {
do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(stmt->GetInt64(0, &id))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18444
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->GetInt64(0, &id))"
")"); do { MOZ_CrashSequence(__null, 18444); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18445
18446 if (id == mIndexId) {
18447 foundThisIndex = true;
18448 } else {
18449 foundOtherIndex = true;
18450 }
18451 }
18452
18453 MOZ_ASSERT_IF(mIsLastIndex, foundThisIndex && !foundOtherIndex)do { if (mIsLastIndex) { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(foundThisIndex && !
foundOtherIndex)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(foundThisIndex && !foundOtherIndex
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"foundThisIndex && !foundOtherIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18453); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && !foundOtherIndex"
")"); do { MOZ_CrashSequence(__null, 18453); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18454 MOZ_ASSERT_IF(!mIsLastIndex, foundThisIndex && foundOtherIndex)do { if (!mIsLastIndex) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(foundThisIndex &&
foundOtherIndex)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(foundThisIndex && foundOtherIndex
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"foundThisIndex && foundOtherIndex", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18454); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && foundOtherIndex"
")"); do { MOZ_CrashSequence(__null, 18454); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18455 }
18456#endif
18457
18458 AUTO_PROFILER_LABEL("DeleteIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18458( "DeleteIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18459
18460 DatabaseConnection::AutoSavepoint autoSave;
18461 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1386 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386
.isErr()), 0))) { auto tryTempError = tryResult1386.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18466, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18462#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1386 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386
.isErr()), 0))) { auto tryTempError = tryResult1386.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18466, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18463 ,{auto tryResult1386 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386
.isErr()), 0))) { auto tryTempError = tryResult1386.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18466, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18464 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1386 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386
.isErr()), 0))) { auto tryTempError = tryResult1386.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18466, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18465#endif{auto tryResult1386 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386
.isErr()), 0))) { auto tryTempError = tryResult1386.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18466, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18466 ){auto tryResult1386 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1386)::ok_type>); if ((__builtin_expect(!!(tryResult1386
.isErr()), 0))) { auto tryTempError = tryResult1386.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18466, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
18467
18468 // mozStorage warns that these statements trigger a sort operation but we
18469 // don't care because this is a very rare call and we expect it to be slow.
18470 // The cost of having an index on this field is too high.
18471 QM_TRY_INSPECT(auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18472 const auto& selectStmt,auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18473 aConnection->BorrowCachedStatement(auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18474 mUniqueauto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18475 ? (mIsLastIndexauto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18476 ? "/* do not warn (bug someone else) */ "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18477 "SELECT value, object_data_key "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18478 "FROM unique_index_data "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18479 "WHERE index_id = :"_ns +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18480 kStmtParamNameIndexId +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18481 " ORDER BY object_data_key ASC;"_nsauto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18482 : "/* do not warn (bug out) */ "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18483 "SELECT unique_index_data.value, "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18484 "unique_index_data.object_data_key, "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18485 "object_data.index_data_values "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18486 "FROM unique_index_data "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18487 "JOIN object_data "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18488 "ON unique_index_data.object_data_key = object_data.key "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18489 "WHERE unique_index_data.index_id = :"_ns +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18490 kStmtParamNameIndexId +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18491 " AND object_data.object_store_id = :"_ns +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18492 kStmtParamNameObjectStoreId +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18493 " ORDER BY unique_index_data.object_data_key ASC;"_ns)auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18494 : (mIsLastIndexauto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18495 ? "/* do not warn (bug me not) */ "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18496 "SELECT value, object_data_key "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18497 "FROM index_data "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18498 "WHERE index_id = :"_ns +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18499 kStmtParamNameIndexId +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18500 " AND object_store_id = :"_ns +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18501 kStmtParamNameObjectStoreId +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18502 " ORDER BY object_data_key ASC;"_nsauto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18503 : "/* do not warn (bug off) */ "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18504 "SELECT index_data.value, "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18505 "index_data.object_data_key, "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18506 "object_data.index_data_values "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18507 "FROM index_data "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18508 "JOIN object_data "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18509 "ON index_data.object_data_key = object_data.key "auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18510 "WHERE index_data.index_id = :"_ns +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18511 kStmtParamNameIndexId +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18512 " AND object_data.object_store_id = :"_ns +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18513 kStmtParamNameObjectStoreId +auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
18514 " ORDER BY index_data.object_data_key ASC;"_ns)))auto tryResult1387 = (aConnection->BorrowCachedStatement( mUnique
? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key "
"FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ "
"SELECT unique_index_data.value, " "unique_index_data.object_data_key, "
"object_data.index_data_values " "FROM unique_index_data " "JOIN object_data "
"ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns
+ kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns
) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key "
"FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId
+ " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ "
"SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values "
"FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key "
"WHERE index_data.index_id = :"_ns + kStmtParamNameIndexId +
" AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " ORDER BY index_data.object_data_key ASC;"_ns))); if ((__builtin_expect
(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? \"/* do not warn (bug someone else) */ \" \"SELECT value, object_data_key \" \"FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug out) */ \" \"SELECT unique_index_data.value, \" \"unique_index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM unique_index_data \" \"JOIN object_data \" \"ON unique_index_data.object_data_key = object_data.key \" \"WHERE unique_index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY unique_index_data.object_data_key ASC;\"_ns) : (mIsLastIndex ? \"/* do not warn (bug me not) */ \" \"SELECT value, object_data_key \" \"FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY object_data_key ASC;\"_ns : \"/* do not warn (bug off) */ \" \"SELECT index_data.value, \" \"index_data.object_data_key, \" \"object_data.index_data_values \" \"FROM index_data \" \"JOIN object_data \" \"ON index_data.object_data_key = object_data.key \" \"WHERE index_data.index_id = :\"_ns + kStmtParamNameIndexId + \" AND object_data.object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" ORDER BY index_data.object_data_key ASC;\"_ns))"
, tryResult1387.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18514, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); } const auto& selectStmt = tryResult1387
.inspect();
;
18515
18516 QM_TRY(MOZ_TO_RESULT({auto tryResult1388 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect
(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))"
, tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18517, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}
18517 selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))){auto tryResult1388 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect
(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))"
, tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18517, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}
;
18518
18519 if (!mUnique || !mIsLastIndex) {
18520 QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName({auto tryResult1389 = (ToResult(selectStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1389)::ok_type
>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18521, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}
18521 kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1389 = (ToResult(selectStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1389)::ok_type
>); if ((__builtin_expect(!!(tryResult1389.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1389.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18521, mozilla::dom::quota::Severity::Error); return tryResult1389
.propagateErr(); }}
;
18522 }
18523
18524 Key lastObjectStoreKey;
18525 IndexDataValuesAutoArray lastIndexValues;
18526
18527 QM_TRY(CollectWhileHasResult({auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18528 *selectStmt,{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18529 [this, &aConnection, &lastObjectStoreKey, &lastIndexValues,{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18530 deleteIndexRowStmt ={auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18531 DatabaseConnection::LazyStatement{{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18532 *aConnection,{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18533 mUnique{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18534 ? "DELETE FROM unique_index_data "{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18535 "WHERE index_id = :"_ns +{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18536 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18537 kStmtParamNameValue + ";"_ns{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18538 : "DELETE FROM index_data "{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18539 "WHERE index_id = :"_ns +{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18540 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18541 kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18542 kStmtParamNameObjectDataKey + ";"_ns}]({auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18543 auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18544 // We always need the index key to delete the index row.{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18545 Key indexKey;{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18546 QM_TRY(MOZ_TO_RESULT(indexKey.SetFromStatement(&selectStmt, 0)));{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18547
18548 QM_TRY(OkIf(!indexKey.IsUnset()), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18549 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18550
18551 // Don't call |lastObjectStoreKey.BindToStatement()| directly because we{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18552 // don't want to copy the same key multiple times.{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18553 const uint8_t* objectStoreKeyData;{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18554 uint32_t objectStoreKeyDataLength;{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18555 QM_TRY(MOZ_TO_RESULT(selectStmt.GetSharedBlob({auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18556 1, &objectStoreKeyDataLength, &objectStoreKeyData)));{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18557
18558 QM_TRY(OkIf(objectStoreKeyDataLength), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18559 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18560
18561 const nsDependentCString currentObjectStoreKeyBuffer({auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18562 reinterpret_cast<const char*>(objectStoreKeyData),{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18563 objectStoreKeyDataLength);{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18564 if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) {{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18565 // We just walked to the next object store key.{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18566 if (!lastObjectStoreKey.IsUnset()) {{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18567 // Before we move on to the next key we need to update the previous{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18568 // key's index_data_values column.{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18569 QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18570 aConnection, lastObjectStoreKey, lastIndexValues)));{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18571 }{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18572
18573 // Save the object store key.{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18574 lastObjectStoreKey = Key(currentObjectStoreKeyBuffer);{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18575
18576 // And the |index_data_values| row if this isn't the only index.{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18577 if (!mIsLastIndex) {{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18578 lastIndexValues.ClearAndRetainStorage();{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18579 QM_TRY(MOZ_TO_RESULT({auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18580 ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues)));{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18581
18582 QM_TRY(OkIf(!lastIndexValues.IsEmpty()),{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18583 Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18584 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18585 }{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18586 }{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18587
18588 // Now delete the index row.{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18589 {{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18590 QM_TRY_INSPECT(const auto& borrowedDeleteIndexRowStmt,{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18591 deleteIndexRowStmt.Borrow());{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18592
18593 QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->BindInt64ByName({auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18594 kStmtParamNameIndexId, mIndexId)));{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18595
18596 QM_TRY(MOZ_TO_RESULT(indexKey.BindToStatement({auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18597 &*borrowedDeleteIndexRowStmt, kStmtParamNameValue)));{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18598
18599 if (!mUnique) {{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18600 QM_TRY(MOZ_TO_RESULT(lastObjectStoreKey.BindToStatement({auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18601 &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey)));{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18602 }{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18603
18604 QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->Execute()));{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18605 }{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18606
18607 return Ok{};{auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
18608 })){auto tryResult1402 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1390.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18546, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset
())); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18549
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18549, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t
* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto
tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18556, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1393
)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr
()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18559
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18559, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString
currentObjectStoreKeyBuffer( reinterpret_cast<const char*
>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer
!= lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey
.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1394)::ok_type
>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18570, mozilla::dom::quota::Severity::Error); return tryResult1394
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18580, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18584, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto
tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1397.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18591, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1397.inspect();; {auto tryResult1398 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18594, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1399
)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1399.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18597, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1400.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18601, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18604, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect
(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1390 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1390.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18546, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18549, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1392 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18556, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; {auto tryResult1393 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { auto tryTempError = tryResult1393.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18559, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1394 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1394.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18570, mozilla::dom::quota::Severity::Error); return tryResult1394.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1395 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18580, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; {auto tryResult1396 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { auto tryTempError = tryResult1396.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18584, \"UnknownErr\"); }(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1397 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18591, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1397.inspect();; {auto tryResult1398 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18594, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; {auto tryResult1399 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1399.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18597, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; if (!mUnique) { {auto tryResult1400 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1400.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18601, mozilla::dom::quota::Severity::Error); return tryResult1400.propagateErr(); }}; } {auto tryResult1401 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18604, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; } return Ok{}; })"
, tryResult1402.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18608, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}
;
18609
18610 // Take care of the last key.
18611 if (!lastObjectStoreKey.IsUnset()) {
18612 MOZ_ASSERT_IF(!mIsLastIndex, !lastIndexValues.IsEmpty())do { if (!mIsLastIndex) { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!lastIndexValues.IsEmpty
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!lastIndexValues.IsEmpty()))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("!lastIndexValues.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18612
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!lastIndexValues.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 18612); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18613
18614 QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1403 = (ToResult(RemoveReferencesToIndex( aConnection
, lastObjectStoreKey, lastIndexValues))); static_assert(std::
is_empty_v<typename decltype(tryResult1403)::ok_type>);
if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18615, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
18615 aConnection, lastObjectStoreKey, lastIndexValues))){auto tryResult1403 = (ToResult(RemoveReferencesToIndex( aConnection
, lastObjectStoreKey, lastIndexValues))); static_assert(std::
is_empty_v<typename decltype(tryResult1403)::ok_type>);
if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18615, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
;
18616 }
18617
18618 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1405 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1404 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1404)::ok_type>
); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18623, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1404 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18623, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; return Ok{}; }))"
, tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18626, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}
18619 "DELETE FROM object_store_index "{auto tryResult1405 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1404 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1404)::ok_type>
); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18623, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1404 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18623, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; return Ok{}; }))"
, tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18626, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}
18620 "WHERE id = :index_id;"_ns,{auto tryResult1405 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1404 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1404)::ok_type>
); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18623, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1404 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18623, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; return Ok{}; }))"
, tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18626, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}
18621 [indexId ={auto tryResult1405 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1404 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1404)::ok_type>
); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18623, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1404 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18623, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; return Ok{}; }))"
, tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18626, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}
18622 mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> {{auto tryResult1405 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1404 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1404)::ok_type>
); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18623, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1404 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18623, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; return Ok{}; }))"
, tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18626, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}
18623 QM_TRY(MOZ_TO_RESULT(deleteStmt.BindInt64ByIndex(0, indexId)));{auto tryResult1405 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1404 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1404)::ok_type>
); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18623, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1404 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18623, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; return Ok{}; }))"
, tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18626, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}
18624
18625 return Ok{};{auto tryResult1405 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1404 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1404)::ok_type>
); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18623, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1404 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18623, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; return Ok{}; }))"
, tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18626, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}
18626 }))){auto tryResult1405 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1404 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1404)::ok_type>
); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18623, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect
(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1404 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18623, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; return Ok{}; }))"
, tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18626, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}
;
18627
18628#ifdef DEBUG1
18629 {
18630 int32_t deletedRowCount;
18631 MOZ_ALWAYS_SUCCEEDS(aConnection->MutableStorageConnection().GetAffectedRows(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18632
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { MOZ_CrashSequence(__null, 18632); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
18632 &deletedRowCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { do { } while (
false); MOZ_ReportCrash("" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18632
); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { MOZ_CrashSequence(__null, 18632); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
18633 MOZ_ASSERT(deletedRowCount == 1)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(deletedRowCount == 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(deletedRowCount == 1))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("deletedRowCount == 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18633
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1"
")"); do { MOZ_CrashSequence(__null, 18633); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18634 }
18635#endif
18636
18637 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1406 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1406)::ok_type
>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1406.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18637, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}
;
18638
18639 return NS_OK;
18640}
18641
18642nsresult RenameIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18643 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18643); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18644 aConnection->AssertIsOnConnectionThread();
18645
18646 AUTO_PROFILER_LABEL("RenameIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18646( "RenameIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18647
18648#ifdef DEBUG1
18649 {
18650 // Make sure that we're not renaming an index with the same name as another
18651 // that already exists. This should be impossible because we should have
18652 // thrown an error long before now...
18653 // The parameter names are not used, parameters are bound by index only
18654 // locally in the same function.
18655 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18656 aConnectionauto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18657 ->BorrowAndExecuteSingleStepStatement(auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18658 "SELECT name "auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18659 "FROM object_store_index "auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18660 "WHERE object_store_id = :object_store_id "auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18661 "AND name = :name "auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18662 "AND id != :id;"_ns,auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18663 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18664 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18665 0, self.mObjectStoreId)));auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18666 QM_TRY(MOZ_TO_RESULT(auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18667 stmt.BindStringByIndex(1, self.mNewName)));auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18668 QM_TRY(MOZ_TO_RESULT(auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18669 stmt.BindInt64ByIndex(2, self.mIndexId)));auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18670
18671 return Ok{};auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18672 })auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18673 .map(IsSome),auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
18674 QM_ASSERT_UNREACHABLE)auto tryResult1410 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store_index " "WHERE object_store_id = :object_store_id "
"AND name = :name " "AND id != :id;"_ns, [&self = *this]
(auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1407
)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18665, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1408)::ok_type>); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1408
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18667, mozilla::dom::quota::Severity::Error); return tryResult1408
.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1409)::ok_type>); if ((__builtin_expect
(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1409
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18669, mozilla::dom::quota::Severity::Error); return tryResult1409
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1410.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store_index \" \"WHERE object_store_id = :object_store_id \" \"AND name = :name \" \"AND id != :id;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18665, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18667, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; {auto tryResult1409 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1409.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18669, mozilla::dom::quota::Severity::Error); return tryResult1409.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18674); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18674); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1410.inspect();
;
18675
18676 MOZ_ASSERT(!hasResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!hasResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!hasResult))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("!hasResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18676); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { MOZ_CrashSequence(__null, 18676); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18677 }
18678#else
18679 Unused << mObjectStoreId;
18680#endif
18681
18682 DatabaseConnection::AutoSavepoint autoSave;
18683 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1411 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411
.isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18684#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1411 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411
.isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18685 ,{auto tryResult1411 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411
.isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18686 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1411 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411
.isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18687#endif{auto tryResult1411 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411
.isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
18688 ){auto tryResult1411 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411
.isErr()), 0))) { auto tryTempError = tryResult1411.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
18689
18690 // The parameter names are not used, parameters are bound by index only
18691 // locally in the same function.
18692 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1414 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1412
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18697, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18699, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect
(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1412.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18697, mozilla::dom::quota::Severity::Error); return tryResult1412.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18699, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; return Ok{}; }))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18702, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}
18693 "UPDATE object_store_index "{auto tryResult1414 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1412
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18697, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18699, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect
(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1412.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18697, mozilla::dom::quota::Severity::Error); return tryResult1412.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18699, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; return Ok{}; }))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18702, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}
18694 "SET name = :name "{auto tryResult1414 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1412
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18697, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18699, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect
(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1412.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18697, mozilla::dom::quota::Severity::Error); return tryResult1412.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18699, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; return Ok{}; }))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18702, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}
18695 "WHERE id = :id;"_ns,{auto tryResult1414 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1412
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18697, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18699, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect
(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1412.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18697, mozilla::dom::quota::Severity::Error); return tryResult1412.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18699, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; return Ok{}; }))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18702, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}
18696 [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1414 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1412
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18697, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18699, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect
(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1412.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18697, mozilla::dom::quota::Severity::Error); return tryResult1412.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18699, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; return Ok{}; }))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18702, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}
18697 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1414 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1412
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18697, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18699, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect
(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1412.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18697, mozilla::dom::quota::Severity::Error); return tryResult1412.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18699, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; return Ok{}; }))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18702, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}
18698
18699 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mIndexId)));{auto tryResult1414 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1412
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18697, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18699, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect
(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1412.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18697, mozilla::dom::quota::Severity::Error); return tryResult1412.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18699, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; return Ok{}; }))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18702, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}
18700
18701 return Ok{};{auto tryResult1414 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1412
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18697, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18699, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect
(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1412.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18697, mozilla::dom::quota::Severity::Error); return tryResult1412.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18699, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; return Ok{}; }))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18702, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}
18702 }))){auto tryResult1414 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1412
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18697, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1413)::ok_type>); if ((__builtin_expect
(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1413
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18699, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1414)::ok_type>); if ((__builtin_expect
(!!(tryResult1414.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE object_store_index \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1412 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect(!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1412.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18697, mozilla::dom::quota::Severity::Error); return tryResult1412.propagateErr(); }}; {auto tryResult1413 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1413)::ok_type>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1413.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18699, mozilla::dom::quota::Severity::Error); return tryResult1413.propagateErr(); }}; return Ok{}; }))"
, tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18702, mozilla::dom::quota::Severity::Error); return tryResult1414
.propagateErr(); }}
;
18703
18704 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1415 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1415)::ok_type
>); if ((__builtin_expect(!!(tryResult1415.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18704, mozilla::dom::quota::Severity::Error); return tryResult1415
.propagateErr(); }}
;
18705
18706 return NS_OK;
18707}
18708
18709Result<bool, nsresult> NormalTransactionOp::ObjectStoreHasIndexes(
18710 DatabaseConnection& aConnection, const IndexOrObjectStoreId aObjectStoreId,
18711 const bool aMayHaveIndexes) {
18712 aConnection.AssertIsOnConnectionThread();
18713 MOZ_ASSERT(aObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("aObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18713
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 18713); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18714
18715 if (Transaction().GetMode() == IDBTransaction::Mode::VersionChange &&
18716 aMayHaveIndexes) {
18717 // If this is a version change transaction then mObjectStoreMayHaveIndexes
18718 // could be wrong (e.g. if a unique index failed to be created due to a
18719 // constraint error). We have to check on this thread by asking the database
18720 // directly.
18721 QM_TRY_RETURN(DatabaseOperationBase::ObjectStoreHasIndexes(aConnection,{auto tryResult1416 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1416
.isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryResult1416.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18722, mozilla::dom::quota::Severity::Error); } return tryResult1416
;}
18722 aObjectStoreId)){auto tryResult1416 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1416
.isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryResult1416.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18722, mozilla::dom::quota::Severity::Error); } return tryResult1416
;}
;
18723 }
18724
18725#ifdef DEBUG1
18726 QM_TRY_INSPECT(auto tryResult1417 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1417
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1417.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18729, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18729); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18729); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1417.inspect();
18727 const bool& hasIndexes,auto tryResult1417 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1417
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1417.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18729, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18729); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18729); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1417.inspect();
18728 DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId),auto tryResult1417 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1417
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1417.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18729, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18729); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18729); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1417.inspect();
18729 QM_ASSERT_UNREACHABLE)auto tryResult1417 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1417
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1417.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18729, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18729); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18729); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1417.inspect();
;
18730 MOZ_ASSERT(aMayHaveIndexes == hasIndexes)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aMayHaveIndexes == hasIndexes)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aMayHaveIndexes == hasIndexes
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aMayHaveIndexes == hasIndexes", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18730); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMayHaveIndexes == hasIndexes"
")"); do { MOZ_CrashSequence(__null, 18730); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18731#endif
18732
18733 return aMayHaveIndexes;
18734}
18735
18736Result<PreprocessParams, nsresult> NormalTransactionOp::GetPreprocessParams() {
18737 return PreprocessParams{};
18738}
18739
18740nsresult NormalTransactionOp::SendPreprocessInfo() {
18741 AssertIsOnOwningThread();
18742 MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18742
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { MOZ_CrashSequence(__null, 18742); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18743
18744 QM_TRY_INSPECT(const auto& params, GetPreprocessParams())auto tryResult1418 = (GetPreprocessParams()); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetPreprocessParams()", tryResult1418.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18744, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); } const auto& params = tryResult1418.inspect
();
;
18745
18746 MOZ_ASSERT(params.type() != PreprocessParams::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(params.type() != PreprocessParams::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(params.type() != PreprocessParams::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("params.type() != PreprocessParams::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18746
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "params.type() != PreprocessParams::T__None"
")"); do { MOZ_CrashSequence(__null, 18746); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18747
18748 if (NS_WARN_IF(!PBackgroundIDBRequestParent::SendPreprocess(params))NS_warn_if_impl(!PBackgroundIDBRequestParent::SendPreprocess(
params), "!PBackgroundIDBRequestParent::SendPreprocess(params)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18748
)
) {
18749 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18749, "UnknownErr")
;
18750 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
18751 }
18752
18753 return NS_OK;
18754}
18755
18756nsresult NormalTransactionOp::SendSuccessResult() {
18757 AssertIsOnOwningThread();
18758
18759 if (!IsActorDestroyed()) {
18760 static const size_t kMaxIDBMsgOverhead = 1024 * 1024 * 10; // 10MB
18761 const uint32_t maximalSizeFromPref =
18762 IndexedDatabaseManager::MaxSerializedMsgSize();
18763 MOZ_ASSERT(maximalSizeFromPref > kMaxIDBMsgOverhead)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(maximalSizeFromPref > kMaxIDBMsgOverhead)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(maximalSizeFromPref > kMaxIDBMsgOverhead))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("maximalSizeFromPref > kMaxIDBMsgOverhead"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18763
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "maximalSizeFromPref > kMaxIDBMsgOverhead"
")"); do { MOZ_CrashSequence(__null, 18763); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18764 const size_t kMaxMessageSize = maximalSizeFromPref - kMaxIDBMsgOverhead;
18765
18766 RequestResponse response;
18767 size_t responseSize = kMaxMessageSize;
18768 GetResponse(response, &responseSize);
18769
18770 // TODO: Adjust the calculation of the response size in relevant
18771 // GetResponse methods to account for the fallback to shared memory during
18772 // serialization of the primary key and index keys if their size exceeds
18773 // IPC::kMessageBufferShmemThreshold. This ensures the calculated size
18774 // accurately reflects the actual IPC message size.
18775 // See also bug 1945040.
18776
18777 if (responseSize >= kMaxMessageSize) {
18778 nsPrintfCString warning(
18779 "The serialized value is too large"
18780 " (size=%zu bytes, max=%zu bytes).",
18781 responseSize, kMaxMessageSize);
18782 NS_WARNING(warning.get())NS_DebugBreak(NS_DEBUG_WARNING, warning.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18782)
;
18783 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
18784 }
18785
18786 MOZ_ASSERT(response.type() != RequestResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(response.type() != RequestResponse::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(response.type() != RequestResponse::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("response.type() != RequestResponse::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18786
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "response.type() != RequestResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 18786); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18787
18788 if (response.type() == RequestResponse::Tnsresult) {
18789 MOZ_ASSERT(NS_FAILED(response.get_nsresult()))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(response.
get_nsresult())), 0))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
NS_FAILED_impl(response.get_nsresult())), 0)))))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_nsresult())), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18789
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_nsresult())), 0)))"
")"); do { MOZ_CrashSequence(__null, 18789); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18790
18791 return response.get_nsresult();
18792 }
18793
18794 if (NS_WARN_IF(NS_warn_if_impl(!PBackgroundIDBRequestParent::Send__delete__(
this, response), "!PBackgroundIDBRequestParent::Send__delete__(this, response)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18795
)
18795 !PBackgroundIDBRequestParent::Send__delete__(this, response))NS_warn_if_impl(!PBackgroundIDBRequestParent::Send__delete__(
this, response), "!PBackgroundIDBRequestParent::Send__delete__(this, response)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18795
)
) {
18796 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18796, "UnknownErr")
;
18797 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
18798 }
18799 }
18800
18801#ifdef DEBUG1
18802 mResponseSent = true;
18803#endif
18804
18805 return NS_OK;
18806}
18807
18808bool NormalTransactionOp::SendFailureResult(nsresult aResultCode) {
18809 AssertIsOnOwningThread();
18810 MOZ_ASSERT(NS_FAILED(aResultCode))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode
)), 0))))>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aResultCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18810
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
")"); do { MOZ_CrashSequence(__null, 18810); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18811
18812 bool result = false;
18813
18814 if (!IsActorDestroyed()) {
18815 result = PBackgroundIDBRequestParent::Send__delete__(
18816 this, ClampResultCode(aResultCode));
18817 }
18818
18819#ifdef DEBUG1
18820 mResponseSent = true;
18821#endif
18822
18823 return result;
18824}
18825
18826void NormalTransactionOp::Cleanup() {
18827 AssertIsOnOwningThread();
18828 MOZ_ASSERT_IF(!IsActorDestroyed(), mResponseSent)do { if (!IsActorDestroyed()) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mResponseSent)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mResponseSent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mResponseSent", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18828); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent"
")"); do { MOZ_CrashSequence(__null, 18828); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18829
18830 TransactionDatabaseOperationBase::Cleanup();
18831}
18832
18833void NormalTransactionOp::ActorDestroy(ActorDestroyReason aWhy) {
18834 AssertIsOnOwningThread();
18835
18836 NoteActorDestroyed();
18837
18838 // Assume ActorDestroy can happen at any time, so we can't probe the current
18839 // state since mInternalState can be modified on any thread (only one thread
18840 // at a time based on the state machine).
18841 // However we can use mWaitingForContinue which is only touched on the owning
18842 // thread. If mWaitingForContinue is true, we can also modify mInternalState
18843 // since we are guaranteed that there are no pending runnables which would
18844 // probe mInternalState to decide what code needs to run (there shouldn't be
18845 // any running runnables on other threads either).
18846
18847 if (IsWaitingForContinue()) {
18848 NoteContinueReceived();
18849 }
18850
18851 // We don't have to handle the case when mWaitingForContinue is not true since
18852 // it means that either nothing has been initialized yet, so nothing to
18853 // cleanup or there are pending runnables that will detect that the actor has
18854 // been destroyed and cleanup accordingly.
18855}
18856
18857mozilla::ipc::IPCResult NormalTransactionOp::RecvContinue(
18858 const PreprocessResponse& aResponse) {
18859 AssertIsOnOwningThread();
18860
18861 switch (aResponse.type()) {
18862 case PreprocessResponse::Tnsresult:
18863 SetFailureCode(aResponse.get_nsresult());
18864 break;
18865
18866 case PreprocessResponse::TObjectStoreGetPreprocessResponse:
18867 case PreprocessResponse::TObjectStoreGetAllPreprocessResponse:
18868 break;
18869
18870 default:
18871 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18871
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 18871); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
18872 }
18873
18874 NoteContinueReceived();
18875
18876 return IPC_OK()mozilla::ipc::IPCResult::Ok();
18877}
18878
18879ObjectStoreAddOrPutRequestOp::ObjectStoreAddOrPutRequestOp(
18880 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
18881 RequestParams&& aParams)
18882 : NormalTransactionOp(std::move(aTransaction), aRequestId),
18883 mParams(
18884 std::move(aParams.type() == RequestParams::TObjectStoreAddParams
18885 ? aParams.get_ObjectStoreAddParams().commonParams()
18886 : aParams.get_ObjectStorePutParams().commonParams())),
18887 mOriginMetadata(Transaction().GetDatabase().OriginMetadata()),
18888 mPersistenceType(Transaction().GetDatabase().Type()),
18889 mOverwrite(aParams.type() == RequestParams::TObjectStorePutParams),
18890 mObjectStoreMayHaveIndexes(false) {
18891 MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreAddParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreAddParams
|| aParams.type() == RequestParams::TObjectStorePutParams)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreAddParams
|| aParams.type() == RequestParams::TObjectStorePutParams)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18892
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
")"); do { MOZ_CrashSequence(__null, 18892); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18892 aParams.type() == RequestParams::TObjectStorePutParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreAddParams
|| aParams.type() == RequestParams::TObjectStorePutParams)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreAddParams
|| aParams.type() == RequestParams::TObjectStorePutParams)))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18892
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
")"); do { MOZ_CrashSequence(__null, 18892); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18893
18894 mMetadata =
18895 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
18896 MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18896); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { MOZ_CrashSequence(__null, 18896); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18897
18898 mObjectStoreMayHaveIndexes = mMetadata->HasLiveIndexes();
18899
18900 mDataOverThreshold =
18901 snappy::MaxCompressedLength(mParams.cloneInfo().data().data.Size()) >
18902 IndexedDatabaseManager::DataThreshold();
18903}
18904
18905nsresult ObjectStoreAddOrPutRequestOp::RemoveOldIndexDataValues(
18906 DatabaseConnection* aConnection) {
18907 AssertIsOnConnectionThread();
18908 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18908); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 18908); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18909 MOZ_ASSERT(mOverwrite)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mOverwrite)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOverwrite))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mOverwrite", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18909); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOverwrite"
")"); do { MOZ_CrashSequence(__null, 18909); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18910 MOZ_ASSERT(!mResponse.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mResponse.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mResponse.IsUnset()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mResponse.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18910
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 18910); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18911
18912#ifdef DEBUG1
18913 {
18914 QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult1419 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1419.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18917, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18917); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18917); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1419.inspect();
18915 DatabaseOperationBase::ObjectStoreHasIndexes(auto tryResult1419 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1419.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18917, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18917); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18917); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1419.inspect();
18916 *aConnection, mParams.objectStoreId()),auto tryResult1419 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1419.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18917, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18917); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18917); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1419.inspect();
18917 QM_ASSERT_UNREACHABLE)auto tryResult1419 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1419.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1419.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18917, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, [](const char*, const char*) -> ::mozilla::
GenericErrorResult<nsresult> { do { do { } while (false
); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18917); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { MOZ_CrashSequence(__null, 18917); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1419.inspect();
;
18918
18919 MOZ_ASSERT(hasIndexes,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(hasIndexes)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18920
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") ("
"Don't use this slow method if there are no indexes!" ")"); do
{ MOZ_CrashSequence(__null, 18920); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
18920 "Don't use this slow method if there are no indexes!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(hasIndexes)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(hasIndexes))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("hasIndexes" " (" "Don't use this slow method if there are no indexes!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18920
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") ("
"Don't use this slow method if there are no indexes!" ")"); do
{ MOZ_CrashSequence(__null, 18920); __attribute__((nomerge))
::abort(); } while (false); } } while (false)
;
18921 }
18922#endif
18923
18924 QM_TRY_INSPECT(auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18925 const auto& indexValuesStmt,auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18926 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18927 "SELECT index_data_values "auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18928 "FROM object_data "auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18929 "WHERE object_store_id = :"_ns +auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18930 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18931 kStmtParamNameKey + ";"_ns,auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18932 [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18933 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18934 kStmtParamNameObjectStoreId, self.mParams.objectStoreId())));auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18935
18936 QM_TRY(MOZ_TO_RESULT(auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18937 self.mResponse.BindToStatement(&stmt, kStmtParamNameKey)));auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18938
18939 return Ok{};auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
18940 }))auto tryResult1422 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns, [&self = *this](auto& stmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1420)::ok_type>); if ((__builtin_expect
(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18934, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1421)::ok_type
>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18937, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1420 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect(!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1420.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18934, mozilla::dom::quota::Severity::Error); return tryResult1420.propagateErr(); }}; {auto tryResult1421 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1421)::ok_type>); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1421.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18937, mozilla::dom::quota::Severity::Error); return tryResult1421.propagateErr(); }}; return Ok{}; })"
, tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18940, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); } const auto& indexValuesStmt = tryResult1422
.inspect();
;
18941
18942 if (indexValuesStmt) {
18943 QM_TRY_INSPECT(const auto& existingIndexValues,auto tryResult1423 = (ReadCompressedIndexDataValues(**indexValuesStmt
, 0)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)"
, tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18944, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); } const auto& existingIndexValues = tryResult1423
.inspect();
18944 ReadCompressedIndexDataValues(**indexValuesStmt, 0))auto tryResult1423 = (ReadCompressedIndexDataValues(**indexValuesStmt
, 0)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)"
, tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18944, mozilla::dom::quota::Severity::Error); return tryResult1423
.propagateErr(); } const auto& existingIndexValues = tryResult1423
.inspect();
;
18945
18946 QM_TRY(MOZ_TO_RESULT({auto tryResult1424 = (ToResult(DeleteIndexDataTableRows(aConnection
, mResponse, existingIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18947, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}
18947 DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))){auto tryResult1424 = (ToResult(DeleteIndexDataTableRows(aConnection
, mResponse, existingIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1424)::ok_type>); if ((__builtin_expect
(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))"
, tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18947, mozilla::dom::quota::Severity::Error); return tryResult1424
.propagateErr(); }}
;
18948 }
18949
18950 return NS_OK;
18951}
18952
18953bool ObjectStoreAddOrPutRequestOp::Init(TransactionBase& aTransaction) {
18954 AssertIsOnOwningThread();
18955
18956 const nsTArray<IndexUpdateInfo>& indexUpdateInfos =
18957 mParams.indexUpdateInfos();
18958
18959 if (!indexUpdateInfos.IsEmpty()) {
18960 mUniqueIndexTable.emplace();
18961
18962 for (const auto& updateInfo : indexUpdateInfos) {
18963 auto indexMetadata = mMetadata->mIndexes.Lookup(updateInfo.indexId());
18964 MOZ_ALWAYS_TRUE(indexMetadata)do { if ((__builtin_expect(!!(indexMetadata), 1))) { } else {
do { do { } while (false); MOZ_ReportCrash("" "indexMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18964
); AnnotateMozCrashReason("MOZ_CRASH(" "indexMetadata" ")"); do
{ MOZ_CrashSequence(__null, 18964); __attribute__((nomerge))
::abort(); } while (false); } while (false); } } while (false
)
;
18965
18966 MOZ_ASSERT(!(*indexMetadata)->mDeleted)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!(*indexMetadata)->mDeleted)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!(*indexMetadata)->mDeleted
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!(*indexMetadata)->mDeleted", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18966); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(*indexMetadata)->mDeleted"
")"); do { MOZ_CrashSequence(__null, 18966); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18967
18968 const IndexOrObjectStoreId& indexId =
18969 (*indexMetadata)->mCommonMetadata.id();
18970 const bool& unique = (*indexMetadata)->mCommonMetadata.unique();
18971
18972 MOZ_ASSERT(indexId == updateInfo.indexId())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(indexId == updateInfo.indexId())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(indexId == updateInfo.indexId
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("indexId == updateInfo.indexId()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 18972); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexId == updateInfo.indexId()"
")"); do { MOZ_CrashSequence(__null, 18972); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18973 MOZ_ASSERT_IF(!(*indexMetadata)->mCommonMetadata.multiEntry(),do { if (!(*indexMetadata)->mCommonMetadata.multiEntry()) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mUniqueIndexTable.ref().Contains(indexId))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mUniqueIndexTable.ref().Contains(indexId)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mUniqueIndexTable.ref().Contains(indexId)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18974
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)"
")"); do { MOZ_CrashSequence(__null, 18974); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18974 !mUniqueIndexTable.ref().Contains(indexId))do { if (!(*indexMetadata)->mCommonMetadata.multiEntry()) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mUniqueIndexTable.ref().Contains(indexId))>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mUniqueIndexTable.ref().Contains(indexId)))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mUniqueIndexTable.ref().Contains(indexId)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18974
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)"
")"); do { MOZ_CrashSequence(__null, 18974); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18975
18976 if (NS_WARN_IF(!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique,NS_warn_if_impl(!mUniqueIndexTable.ref().InsertOrUpdate(indexId
, unique, fallible), "!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18977
)
18977 fallible))NS_warn_if_impl(!mUniqueIndexTable.ref().InsertOrUpdate(indexId
, unique, fallible), "!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18977
)
) {
18978 return false;
18979 }
18980 }
18981 } else if (mOverwrite) {
18982 mUniqueIndexTable.emplace();
18983 }
18984
18985 if (mUniqueIndexTable.isSome()) {
18986 mUniqueIndexTable.ref().MarkImmutable();
18987 }
18988
18989 QM_TRY_UNWRAP(auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
18990 mStoredFileInfos,auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
18991 TransformIntoNewArray(auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
18992 mParams.fileAddInfos(),auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
18993 [](const auto& fileAddInfo) {auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
18994 MOZ_ASSERT(fileAddInfo.type() == StructuredCloneFileBase::eBlob ||auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
18995 fileAddInfo.type() ==auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
18996 StructuredCloneFileBase::eMutableFile);auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
18997
18998 switch (fileAddInfo.type()) {auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
18999 case StructuredCloneFileBase::eBlob: {auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19000 PBackgroundIDBDatabaseFileParent* file =auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19001 fileAddInfo.file().AsParent();auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19002 MOZ_ASSERT(file);auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19003
19004 auto* const fileActor = static_cast<DatabaseFile*>(file);auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19005 MOZ_ASSERT(fileActor);auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19006
19007 return StoredFileInfo::CreateForBlob(auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19008 fileActor->GetFileInfoPtr(), fileActor);auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19009 }auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19010
19011 default:auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19012 MOZ_CRASH("Should never get here!");auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19013 }auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19014 },auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19015 fallible),auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
19016 false)auto tryResult1425 = (TransformIntoNewArray( mParams.fileAddInfos
(), [](const auto& fileAddInfo) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(fileAddInfo.type
() == StructuredCloneFileBase::eBlob || fileAddInfo.type() ==
StructuredCloneFileBase::eMutableFile)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase
::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18996
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { MOZ_CrashSequence(__null, 18996); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); switch
(fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: {
PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().
AsParent(); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(file)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); auto* const
fileActor = static_cast<DatabaseFile*>(file); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(fileActor
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("fileActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19005); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { MOZ_CrashSequence(__null, 19005); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(
), fileActor); } default: do { do { } while (false); MOZ_ReportCrash
("" "Should never get here!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19012); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19012); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1425.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19016, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "TransformIntoNewArray( mParams.fileAddInfos(), [](const auto& fileAddInfo) { do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18996); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 18996); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); switch (fileAddInfo.type()) { case StructuredCloneFileBase::eBlob: { PBackgroundIDBDatabaseFileParent* file = fileAddInfo.file().AsParent(); do { static_assert( mozilla::detail::AssertionConditionType<decltype(file)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(file))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"file\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19002); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19002); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto* const fileActor = static_cast<DatabaseFile*>(file); do { static_assert( mozilla::detail::AssertionConditionType<decltype(fileActor)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(fileActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"fileActor\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19005); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19005); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return StoredFileInfo::CreateForBlob( fileActor->GetFileInfoPtr(), fileActor); } default: do { do { } while (false); MOZ_ReportCrash(\"\" \"Should never get here!\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19012); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19012); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1425.unwrap
();
;
19017
19018 if (mDataOverThreshold) {
19019 auto fileInfo =
19020 aTransaction.GetDatabase().GetFileManager().CreateFileInfo();
19021 if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19021)
) {
19022 return false;
19023 }
19024
19025 mStoredFileInfos.EmplaceBack(StoredFileInfo::CreateForStructuredClone(
19026 std::move(fileInfo),
19027 MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data)));
19028 }
19029
19030 return true;
19031}
19032
19033nsresult ObjectStoreAddOrPutRequestOp::DoDatabaseWork(
19034 DatabaseConnection* aConnection) {
19035 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19035); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19036 aConnection->AssertIsOnConnectionThread();
19037 MOZ_ASSERT(aConnection->HasStorageConnection())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection->HasStorageConnection())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(aConnection->HasStorageConnection()))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aConnection->HasStorageConnection()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19037
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()"
")"); do { MOZ_CrashSequence(__null, 19037); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19038
19039 AUTO_PROFILER_LABEL("ObjectStoreAddOrPutRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19039( "ObjectStoreAddOrPutRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19040
19041 DatabaseConnection::AutoSavepoint autoSave;
19042 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19047, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19043#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19047, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19044 ,{auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19047, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19045 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19047, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19046#endif{auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19047, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19047 ){auto tryResult1426 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1426)::ok_type>); if ((__builtin_expect(!!(tryResult1426
.isErr()), 0))) { auto tryTempError = tryResult1426.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19047, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
19048
19049 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1427 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19051, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1427
.inspect();
19050 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1427 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19051, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1427
.inspect();
19051 mObjectStoreMayHaveIndexes))auto tryResult1427 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1427.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1427.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19051, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1427
.inspect();
;
19052
19053 // This will be the final key we use.
19054 Key& key = mResponse;
19055 key = mParams.key();
19056
19057 const bool keyUnset = key.IsUnset();
19058 const IndexOrObjectStoreId osid = mParams.objectStoreId();
19059
19060 // First delete old index_data_values if we're overwriting something and we
19061 // have indexes.
19062 if (mOverwrite && !keyUnset && objectStoreHasIndexes) {
19063 QM_TRY(MOZ_TO_RESULT(RemoveOldIndexDataValues(aConnection))){auto tryResult1428 = (ToResult(RemoveOldIndexDataValues(aConnection
))); static_assert(std::is_empty_v<typename decltype(tryResult1428
)::ok_type>); if ((__builtin_expect(!!(tryResult1428.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveOldIndexDataValues(aConnection))"
, tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19063, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}
;
19064 }
19065
19066 int64_t autoIncrementNum = 0;
19067
19068 {
19069 // The "|| keyUnset" here is mostly a debugging tool. If a key isn't
19070 // specified we should never have a collision and so it shouldn't matter
19071 // if we allow overwrite or not. By not allowing overwrite we raise
19072 // detectable errors rather than corrupting data.
19073 const auto optReplaceDirective =
19074 (!mOverwrite || keyUnset) ? ""_ns : "OR REPLACE "_ns;
19075 QM_TRY_INSPECT(const auto& stmt,auto tryResult1429 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1429.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19083, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); } const auto& stmt = tryResult1429.inspect
();
19076 aConnection->BorrowCachedStatement(auto tryResult1429 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1429.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19083, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); } const auto& stmt = tryResult1429.inspect
();
19077 "INSERT "_ns + optReplaceDirective +auto tryResult1429 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1429.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19083, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); } const auto& stmt = tryResult1429.inspect
();
19078 "INTO object_data "auto tryResult1429 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1429.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19083, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); } const auto& stmt = tryResult1429.inspect
();
19079 "(object_store_id, key, file_ids, data) "auto tryResult1429 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1429.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19083, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); } const auto& stmt = tryResult1429.inspect
();
19080 "VALUES (:"_ns +auto tryResult1429 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1429.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19083, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); } const auto& stmt = tryResult1429.inspect
();
19081 kStmtParamNameObjectStoreId + ", :"_ns +auto tryResult1429 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1429.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19083, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); } const auto& stmt = tryResult1429.inspect
();
19082 kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds +auto tryResult1429 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1429.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19083, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); } const auto& stmt = tryResult1429.inspect
();
19083 ", :"_ns + kStmtParamNameData + ");"_ns))auto tryResult1429 = (aConnection->BorrowCachedStatement( "INSERT "_ns
+ optReplaceDirective + "INTO object_data " "(object_store_id, key, file_ids, data) "
"VALUES (:"_ns + kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameKey
+ ", :"_ns + kStmtParamNameFileIds + ", :"_ns + kStmtParamNameData
+ ");"_ns)); if ((__builtin_expect(!!(tryResult1429.isErr())
, 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"INSERT \"_ns + optReplaceDirective + \"INTO object_data \" \"(object_store_id, key, file_ids, data) \" \"VALUES (:\"_ns + kStmtParamNameObjectStoreId + \", :\"_ns + kStmtParamNameKey + \", :\"_ns + kStmtParamNameFileIds + \", :\"_ns + kStmtParamNameData + \");\"_ns)"
, tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19083, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); } const auto& stmt = tryResult1429.inspect
();
;
19084
19085 QM_TRY(MOZ_TO_RESULT({auto tryResult1430 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, osid))); static_assert(std::is_empty_v<typename decltype
(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}
19086 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))){auto tryResult1430 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, osid))); static_assert(std::is_empty_v<typename decltype
(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))"
, tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19086, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}
;
19087
19088 const SerializedStructuredCloneWriteInfo& cloneInfo = mParams.cloneInfo();
19089 const JSStructuredCloneData& cloneData = cloneInfo.data().data;
19090 const size_t cloneDataSize = cloneData.Size();
19091
19092 MOZ_ASSERT(!keyUnset || mMetadata->mCommonMetadata.autoIncrement(),do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!keyUnset || mMetadata->mCommonMetadata.autoIncrement
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!keyUnset || mMetadata->mCommonMetadata.autoIncrement
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
" (" "Should have key unless autoIncrement" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19093); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
") (" "Should have key unless autoIncrement" ")"); do { MOZ_CrashSequence
(__null, 19093); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false)
19093 "Should have key unless autoIncrement")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!keyUnset || mMetadata->mCommonMetadata.autoIncrement
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!keyUnset || mMetadata->mCommonMetadata.autoIncrement
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
" (" "Should have key unless autoIncrement" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19093); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
") (" "Should have key unless autoIncrement" ")"); do { MOZ_CrashSequence
(__null, 19093); __attribute__((nomerge)) ::abort(); } while (
false); } } while (false)
;
19094
19095 if (mMetadata->mCommonMetadata.autoIncrement()) {
19096 if (keyUnset) {
19097 {
19098 const auto&& lockedAutoIncrementIds =
19099 mMetadata->mAutoIncrementIds.Lock();
19100
19101 autoIncrementNum = lockedAutoIncrementIds->next;
19102 }
19103
19104 MOZ_ASSERT(autoIncrementNum > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(autoIncrementNum > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(autoIncrementNum > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("autoIncrementNum > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19104
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "autoIncrementNum > 0"
")"); do { MOZ_CrashSequence(__null, 19104); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19105
19106 if (autoIncrementNum > (1LL << 53)) {
19107 return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR;
19108 }
19109
19110 QM_TRY(key.SetFromInteger(autoIncrementNum)){auto tryResult1431 = (key.SetFromInteger(autoIncrementNum));
static_assert(std::is_empty_v<typename decltype(tryResult1431
)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr
()), 0))) { mozilla::dom::quota::HandleError("key.SetFromInteger(autoIncrementNum)"
, tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19110, mozilla::dom::quota::Severity::Error); return tryResult1431
.propagateErr(); }}
;
19111
19112 // Update index keys if primary key is preserved in child.
19113 for (auto& updateInfo : mParams.indexUpdateInfos()) {
19114 updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum);
19115 }
19116 } else if (key.IsFloat()) {
19117 double numericKey = key.ToFloat();
19118 numericKey = std::min(numericKey, double(1LL << 53));
19119 numericKey = floor(numericKey);
19120
19121 const auto&& lockedAutoIncrementIds =
19122 mMetadata->mAutoIncrementIds.Lock();
19123 if (numericKey >= lockedAutoIncrementIds->next) {
19124 autoIncrementNum = numericKey;
19125 }
19126 }
19127
19128 if (keyUnset && mMetadata->mCommonMetadata.keyPath().IsValid()) {
19129 const SerializedStructuredCloneWriteInfo& cloneInfo =
19130 mParams.cloneInfo();
19131 MOZ_ASSERT(cloneInfo.offsetToKeyProp())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(cloneInfo.offsetToKeyProp())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp())
)), 0))) { do { } while (false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19131
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp()"
")"); do { MOZ_CrashSequence(__null, 19131); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19132 MOZ_ASSERT(cloneDataSize > sizeof(uint64_t))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(cloneDataSize > sizeof(uint64_t))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(cloneDataSize > sizeof(uint64_t
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("cloneDataSize > sizeof(uint64_t)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19132); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneDataSize > sizeof(uint64_t)"
")"); do { MOZ_CrashSequence(__null, 19132); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19133 MOZ_ASSERT(cloneInfo.offsetToKeyProp() <=do { static_assert( mozilla::detail::AssertionConditionType<
decltype(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof
(uint64_t)))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp() <=
(cloneDataSize - sizeof(uint64_t))))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19134
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
")"); do { MOZ_CrashSequence(__null, 19134); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19134 (cloneDataSize - sizeof(uint64_t)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof
(uint64_t)))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(cloneInfo.offsetToKeyProp() <=
(cloneDataSize - sizeof(uint64_t))))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19134
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
")"); do { MOZ_CrashSequence(__null, 19134); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19135
19136 // Special case where someone put an object into an autoIncrement'ing
19137 // objectStore with no key in its keyPath set. We needed to figure out
19138 // which row id we would get above before we could set that properly.
19139 uint64_t keyPropValue =
19140 ReinterpretDoubleAsUInt64(static_cast<double>(autoIncrementNum));
19141
19142 static const size_t keyPropSize = sizeof(uint64_t);
19143
19144 char keyPropBuffer[keyPropSize];
19145 LittleEndian::writeUint64(keyPropBuffer, keyPropValue);
19146
19147 auto iter = cloneData.Start();
19148 MOZ_ALWAYS_TRUE(cloneData.Advance(iter, cloneInfo.offsetToKeyProp()))do { if ((__builtin_expect(!!(cloneData.Advance(iter, cloneInfo
.offsetToKeyProp())), 1))) { } else { do { do { } while (false
); MOZ_ReportCrash("" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19148
); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())"
")"); do { MOZ_CrashSequence(__null, 19148); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
19149 MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(cloneData.UpdateBytes(iter, keyPropBuffer
, keyPropSize)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19150
); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
")"); do { MOZ_CrashSequence(__null, 19150); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
19150 cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize))do { if ((__builtin_expect(!!(cloneData.UpdateBytes(iter, keyPropBuffer
, keyPropSize)), 1))) { } else { do { do { } while (false); MOZ_ReportCrash
("" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19150
); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
")"); do { MOZ_CrashSequence(__null, 19150); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
19151 }
19152 }
19153
19154 key.BindToStatement(&*stmt, kStmtParamNameKey);
19155
19156 if (mDataOverThreshold) {
19157 // The data we store in the SQLite database is a (signed) 64-bit integer.
19158 // The flags are left-shifted 32 bits so the max value is 0xFFFFFFFF.
19159 // The file_ids index occupies the lower 32 bits and its max is
19160 // 0xFFFFFFFF.
19161 static const uint32_t kCompressedFlag = (1 << 0);
19162
19163 uint32_t flags = 0;
19164 flags |= kCompressedFlag;
19165
19166 const uint32_t index = mStoredFileInfos.Length() - 1;
19167
19168 const int64_t data = (uint64_t(flags) << 32) | index;
19169
19170 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameData, data))){auto tryResult1432 = (ToResult(stmt->BindInt64ByName(kStmtParamNameData
, data))); static_assert(std::is_empty_v<typename decltype
(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameData, data))"
, tryResult1432.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19170, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}
;
19171 } else {
19172 AutoTArray<char, 4096> flatCloneData; // 4096 from JSStructuredCloneData
19173 QM_TRY(OkIf(flatCloneData.SetLength(cloneDataSize, fallible)),{auto tryResult1433 = (OkIf(flatCloneData.SetLength(cloneDataSize
, fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1433.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19174
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(flatCloneData.SetLength(cloneDataSize, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
19174 Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult1433 = (OkIf(flatCloneData.SetLength(cloneDataSize
, fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1433.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19174
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(flatCloneData.SetLength(cloneDataSize, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}
;
19175
19176 {
19177 auto iter = cloneData.Start();
19178 MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(cloneData.ReadBytes(iter, flatCloneData
.Elements(), cloneDataSize)), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19179
); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
")"); do { MOZ_CrashSequence(__null, 19179); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
19179 cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize))do { if ((__builtin_expect(!!(cloneData.ReadBytes(iter, flatCloneData
.Elements(), cloneDataSize)), 1))) { } else { do { do { } while
(false); MOZ_ReportCrash("" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19179
); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
")"); do { MOZ_CrashSequence(__null, 19179); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
19180 }
19181
19182 // Compress the bytes before adding into the database.
19183 const char* const uncompressed = flatCloneData.Elements();
19184 const size_t uncompressedLength = cloneDataSize;
19185
19186 size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength);
19187
19188 UniqueFreePtr<char> compressed(
19189 static_cast<char*>(malloc(compressedLength)));
19190 if (NS_WARN_IF(!compressed)NS_warn_if_impl(!compressed, "!compressed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19190)
) {
19191 return NS_ERROR_OUT_OF_MEMORY;
19192 }
19193
19194 snappy::RawCompress(uncompressed, uncompressedLength, compressed.get(),
19195 &compressedLength);
19196
19197 uint8_t* const dataBuffer =
19198 reinterpret_cast<uint8_t*>(compressed.release());
19199 const size_t dataBufferLength = compressedLength;
19200
19201 QM_TRY(MOZ_TO_RESULT(stmt->BindAdoptedBlobByName({auto tryResult1434 = (ToResult(stmt->BindAdoptedBlobByName
( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert
(std::is_empty_v<typename decltype(tryResult1434)::ok_type
>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))"
, tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19202, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}
19202 kStmtParamNameData, dataBuffer, dataBufferLength))){auto tryResult1434 = (ToResult(stmt->BindAdoptedBlobByName
( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert
(std::is_empty_v<typename decltype(tryResult1434)::ok_type
>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))"
, tryResult1434.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19202, mozilla::dom::quota::Severity::Error); return tryResult1434
.propagateErr(); }}
;
19203 }
19204
19205 if (!mStoredFileInfos.IsEmpty()) {
19206 // Moved outside the loop to allow it to be cached when demanded by the
19207 // first write. (We may have mStoredFileInfos without any required
19208 // writes.)
19209 Maybe<FileHelper> fileHelper;
19210 nsAutoString fileIds;
19211
19212 for (auto& storedFileInfo : mStoredFileInfos) {
19213 MOZ_ASSERT(storedFileInfo.IsValid())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(storedFileInfo.IsValid())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(storedFileInfo.IsValid()))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("storedFileInfo.IsValid()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19213
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "storedFileInfo.IsValid()"
")"); do { MOZ_CrashSequence(__null, 19213); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19214
19215 QM_TRY_INSPECT(const auto& inputStream,auto tryResult1435 = (storedFileInfo.GetInputStream()); if ((
__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom
::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1435
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19216, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); } const auto& inputStream = tryResult1435
.inspect();
19216 storedFileInfo.GetInputStream())auto tryResult1435 = (storedFileInfo.GetInputStream()); if ((
__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom
::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1435
.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19216, mozilla::dom::quota::Severity::Error); return tryResult1435
.propagateErr(); } const auto& inputStream = tryResult1435
.inspect();
;
19217
19218 if (inputStream) {
19219 if (fileHelper.isNothing()) {
19220 fileHelper.emplace(Transaction().GetDatabase().GetFileManagerPtr());
19221 QM_TRY(MOZ_TO_RESULT(fileHelper->Init()),{auto tryResult1436 = (ToResult(fileHelper->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult1436)::ok_type
>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) {
auto tryTempError = tryResult1436.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(fileHelper->Init())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19223
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19223, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19222 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1436 = (ToResult(fileHelper->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult1436)::ok_type
>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) {
auto tryTempError = tryResult1436.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(fileHelper->Init())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19223
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19223, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19223 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1436 = (ToResult(fileHelper->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult1436)::ok_type
>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) {
auto tryTempError = tryResult1436.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(fileHelper->Init())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19223
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19223, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "ToResult(fileHelper->Init())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19224 }
19225
19226 const DatabaseFileInfo& fileInfo = storedFileInfo.GetFileInfo();
19227 const DatabaseFileManager& fileManager = fileInfo.Manager();
19228
19229 const auto file = fileHelper->GetFile(fileInfo);
19230 QM_TRY(OkIf(file), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1437 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19231
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19231, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19231 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1437 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19231
, mozilla::dom::quota::Severity::Error); [](const auto&) {
mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19231, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19232
19233 const auto journalFile = fileHelper->GetJournalFile(fileInfo);
19234 QM_TRY(OkIf(journalFile), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1438 = (OkIf(journalFile)); static_assert(std::
is_empty_v<typename decltype(tryResult1438)::ok_type>);
if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { auto
tryTempError = tryResult1438.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(journalFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19235, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19235, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19235 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1438 = (OkIf(journalFile)); static_assert(std::
is_empty_v<typename decltype(tryResult1438)::ok_type>);
if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { auto
tryTempError = tryResult1438.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(journalFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19235, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19235, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19236
19237 nsCString fileKeyId;
19238 fileKeyId.AppendInt(fileInfo.Id());
19239
19240 const auto maybeKey =
19241 fileManager.IsInPrivateBrowsingMode()
19242 ? fileManager.MutableCipherKeyManagerRef().Get(fileKeyId)
19243 : Nothing();
19244
19245 QM_TRY(MOZ_TO_RESULT(fileHelper->CreateFileFromStream({auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19246 *file, *journalFile, *inputStream,{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19247 storedFileInfo.ShouldCompress(), maybeKey)){auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19248 .mapErr([](const nsresult rv) {{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19249 if (NS_ERROR_GET_MODULE(rv) !={auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19250 NS_ERROR_MODULE_DOM_INDEXEDDB) {{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19251 IDB_REPORT_INTERNAL_ERR();{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19252 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19253 }{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19254 return rv;{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19255 }),{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19256 QM_PROPAGATE,{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19257 ([&fileManager, &file = *file,{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19258 &journalFile = *journalFile](const auto) {{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19259 // Try to remove the file if the copy failed.{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19260 QM_TRY(MOZ_TO_RESULT({auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19261 fileManager.SyncDeleteFile(file, journalFile)),{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19262 QM_VOID);{auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
19263 })){auto tryResult1440 = (ToResult(fileHelper->CreateFileFromStream
( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress
(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE
(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19251, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1440)::ok_type>); if ((__builtin_expect
(!!(tryResult1440.isErr()), 0))) { auto tryTempError = tryResult1440
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19263, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1439 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1439)::ok_type>); if ((__builtin_expect
(!!(tryResult1439.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1439.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19262, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}; })(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(fileHelper->CreateFileFromStream( *file, *journalFile, *inputStream, storedFileInfo.ShouldCompress(), maybeKey)) .mapErr([](const nsresult rv) { if (NS_ERROR_GET_MODULE(rv) != 33) { mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19251, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
;
19264
19265 storedFileInfo.NotifyWriteSucceeded();
19266 }
19267
19268 if (!fileIds.IsEmpty()) {
19269 fileIds.Append(' ');
19270 }
19271 storedFileInfo.Serialize(fileIds);
19272 }
19273
19274 QM_TRY(MOZ_TO_RESULT({auto tryResult1441 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds
, fileIds))); static_assert(std::is_empty_v<typename decltype
(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))"
, tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19275, mozilla::dom::quota::Severity::Error); return tryResult1441
.propagateErr(); }}
19275 stmt->BindStringByName(kStmtParamNameFileIds, fileIds))){auto tryResult1441 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds
, fileIds))); static_assert(std::is_empty_v<typename decltype
(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))"
, tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19275, mozilla::dom::quota::Severity::Error); return tryResult1441
.propagateErr(); }}
;
19276 } else {
19277 QM_TRY(MOZ_TO_RESULT(stmt->BindNullByName(kStmtParamNameFileIds))){auto tryResult1442 = (ToResult(stmt->BindNullByName(kStmtParamNameFileIds
))); static_assert(std::is_empty_v<typename decltype(tryResult1442
)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindNullByName(kStmtParamNameFileIds))"
, tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19277, mozilla::dom::quota::Severity::Error); return tryResult1442
.propagateErr(); }}
;
19278 }
19279
19280 QM_TRY(MOZ_TO_RESULT(stmt->Execute()), QM_PROPAGATE,{auto tryResult1443 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1443)::ok_type
>); if ((__builtin_expect(!!(tryResult1443.isErr()), 0))) {
auto tryTempError = tryResult1443.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19285
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); constexpr const auto& func __attribute__((
__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
19281 [keyUnset = DebugOnly{keyUnset}](const nsresult rv) {{auto tryResult1443 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1443)::ok_type
>); if ((__builtin_expect(!!(tryResult1443.isErr()), 0))) {
auto tryTempError = tryResult1443.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19285
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); constexpr const auto& func __attribute__((
__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
19282 if (rv == NS_ERROR_STORAGE_CONSTRAINT) {{auto tryResult1443 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1443)::ok_type
>); if ((__builtin_expect(!!(tryResult1443.isErr()), 0))) {
auto tryTempError = tryResult1443.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19285
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); constexpr const auto& func __attribute__((
__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
19283 MOZ_ASSERT(!keyUnset, "Generated key had a collision!");{auto tryResult1443 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1443)::ok_type
>); if ((__builtin_expect(!!(tryResult1443.isErr()), 0))) {
auto tryTempError = tryResult1443.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19285
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); constexpr const auto& func __attribute__((
__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
19284 }{auto tryResult1443 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1443)::ok_type
>); if ((__builtin_expect(!!(tryResult1443.isErr()), 0))) {
auto tryTempError = tryResult1443.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19285
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); constexpr const auto& func __attribute__((
__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
19285 }){auto tryResult1443 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1443)::ok_type
>); if ((__builtin_expect(!!(tryResult1443.isErr()), 0))) {
auto tryTempError = tryResult1443.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19285
, mozilla::dom::quota::Severity::Error); [keyUnset = DebugOnly
{keyUnset}](const nsresult rv) { if (rv == NS_ERROR_STORAGE_CONSTRAINT
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(!keyUnset)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!keyUnset))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!keyUnset" " (" "Generated key had a collision!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19283
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!"
")"); do { MOZ_CrashSequence(__null, 19283); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } }(
tryTempError); constexpr const auto& func __attribute__((
__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "ToResult(stmt->Execute())", tryTempError, Err(tryTempError
)); }}
;
19286 }
19287
19288 // Update our indexes if needed.
19289 if (!mParams.indexUpdateInfos().IsEmpty()) {
19290 MOZ_ASSERT(mUniqueIndexTable.isSome())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mUniqueIndexTable.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mUniqueIndexTable.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mUniqueIndexTable.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19290
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUniqueIndexTable.isSome()"
")"); do { MOZ_CrashSequence(__null, 19290); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19291
19292 // Write the index_data_values column.
19293 QM_TRY_INSPECT(const auto& indexValues,auto tryResult1444 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1444.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1444.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19295, mozilla::dom::quota::Severity::Error); return tryResult1444
.propagateErr(); } const auto& indexValues = tryResult1444
.inspect();
19294 IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(),auto tryResult1444 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1444.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1444.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19295, mozilla::dom::quota::Severity::Error); return tryResult1444
.propagateErr(); } const auto& indexValues = tryResult1444
.inspect();
19295 mUniqueIndexTable.ref()))auto tryResult1444 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1444.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1444.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19295, mozilla::dom::quota::Severity::Error); return tryResult1444
.propagateErr(); } const auto& indexValues = tryResult1444
.inspect();
;
19296
19297 QM_TRY({auto tryResult1445 = (ToResult(UpdateIndexValues(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect
(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))"
, tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19298, mozilla::dom::quota::Severity::Error); return tryResult1445
.propagateErr(); }}
19298 MOZ_TO_RESULT(UpdateIndexValues(aConnection, osid, key, indexValues))){auto tryResult1445 = (ToResult(UpdateIndexValues(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect
(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))"
, tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19298, mozilla::dom::quota::Severity::Error); return tryResult1445
.propagateErr(); }}
;
19299
19300 QM_TRY(MOZ_TO_RESULT({auto tryResult1446 = (ToResult(InsertIndexTableRows(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect
(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))"
, tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19301, mozilla::dom::quota::Severity::Error); return tryResult1446
.propagateErr(); }}
19301 InsertIndexTableRows(aConnection, osid, key, indexValues))){auto tryResult1446 = (ToResult(InsertIndexTableRows(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect
(!!(tryResult1446.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))"
, tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19301, mozilla::dom::quota::Severity::Error); return tryResult1446
.propagateErr(); }}
;
19302 }
19303
19304 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1447 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1447)::ok_type
>); if ((__builtin_expect(!!(tryResult1447.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19304, mozilla::dom::quota::Severity::Error); return tryResult1447
.propagateErr(); }}
;
19305
19306 if (autoIncrementNum) {
19307 {
19308 auto&& lockedAutoIncrementIds = mMetadata->mAutoIncrementIds.Lock();
19309
19310 lockedAutoIncrementIds->next = autoIncrementNum + 1;
19311 }
19312
19313 Transaction().NoteModifiedAutoIncrementObjectStore(mMetadata);
19314 }
19315
19316 return NS_OK;
19317}
19318
19319void ObjectStoreAddOrPutRequestOp::GetResponse(RequestResponse& aResponse,
19320 size_t* aResponseSize) {
19321 AssertIsOnOwningThread();
19322
19323 if (mOverwrite) {
19324 aResponse = ObjectStorePutResponse(mResponse);
19325 *aResponseSize = mResponse.GetBuffer().Length();
19326 } else {
19327 aResponse = ObjectStoreAddResponse(mResponse);
19328 *aResponseSize = mResponse.GetBuffer().Length();
19329 }
19330}
19331
19332void ObjectStoreAddOrPutRequestOp::Cleanup() {
19333 AssertIsOnOwningThread();
19334
19335 mStoredFileInfos.Clear();
19336
19337 NormalTransactionOp::Cleanup();
19338}
19339
19340NS_IMPL_ISUPPORTS(ObjectStoreAddOrPutRequestOp::SCInputStream, nsIInputStream)MozExternalRefCountType ObjectStoreAddOrPutRequestOp::SCInputStream
::AddRef(void) { static_assert(!std::is_destructible_v<ObjectStoreAddOrPutRequestOp
::SCInputStream>, "Reference-counted class " "ObjectStoreAddOrPutRequestOp::SCInputStream"
" should not have a public destructor. " "Make this class's destructor non-public"
); do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19340); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 19340
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("ObjectStoreAddOrPutRequestOp::SCInputStream" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("ObjectStoreAddOrPutRequestOp::SCInputStream"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19340); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 19340); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("ObjectStoreAddOrPutRequestOp::SCInputStream"
" not thread-safe"); nsrefcnt count = ++mRefCnt; NS_LogAddRef
((this), (count), ("ObjectStoreAddOrPutRequestOp::SCInputStream"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
ObjectStoreAddOrPutRequestOp::SCInputStream::Release(void) {
do { static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19340); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 19340
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("ObjectStoreAddOrPutRequestOp::SCInputStream" !=
nullptr)>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!("ObjectStoreAddOrPutRequestOp::SCInputStream"
!= nullptr))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19340); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 19340); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("ObjectStoreAddOrPutRequestOp::SCInputStream"
" not thread-safe"); const char* const nametmp = "ObjectStoreAddOrPutRequestOp::SCInputStream"
; nsrefcnt count = --mRefCnt; NS_LogRelease((this), (count), (
nametmp)); if (count == 0) { mRefCnt = 1; delete (this); return
0; } return count; } nsresult ObjectStoreAddOrPutRequestOp::
SCInputStream::QueryInterface(const nsIID& aIID, void** aInstancePtr
) { do { if (!(aInstancePtr)) { NS_DebugBreak(NS_DEBUG_ASSERTION
, "QueryInterface requires a non-NULL destination!", "aInstancePtr"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19340
); MOZ_PretendNoReturn(); } } while (0); nsresult rv = NS_ERROR_FAILURE
; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<ObjectStoreAddOrPutRequestOp::SCInputStream
, nsIInputStream>, int32_t( reinterpret_cast<char*>(
static_cast<nsIInputStream*>((ObjectStoreAddOrPutRequestOp
::SCInputStream*)0x1000)) - reinterpret_cast<char*>((ObjectStoreAddOrPutRequestOp
::SCInputStream*)0x1000))}, {&mozilla::detail::kImplementedIID
<ObjectStoreAddOrPutRequestOp::SCInputStream, nsISupports>
, int32_t(reinterpret_cast<char*>(static_cast<nsISupports
*>( static_cast<nsIInputStream*>((ObjectStoreAddOrPutRequestOp
::SCInputStream*)0x1000))) - reinterpret_cast<char*>((ObjectStoreAddOrPutRequestOp
::SCInputStream*)0x1000))}, { nullptr, 0 } } ; static_assert(
std::size(table) > 1, "need at least 1 interface"); rv = NS_TableDrivenQI
(static_cast<void*>(this), aIID, aInstancePtr, table); return
rv; }
19341
19342NS_IMETHODIMPnsresult
19343ObjectStoreAddOrPutRequestOp::SCInputStream::Close() { return NS_OK; }
19344
19345NS_IMETHODIMPnsresult
19346ObjectStoreAddOrPutRequestOp::SCInputStream::Available(uint64_t* _retval) {
19347 return NS_ERROR_NOT_IMPLEMENTED;
19348}
19349
19350NS_IMETHODIMPnsresult
19351ObjectStoreAddOrPutRequestOp::SCInputStream::StreamStatus() { return NS_OK; }
19352
19353NS_IMETHODIMPnsresult
19354ObjectStoreAddOrPutRequestOp::SCInputStream::Read(char* aBuf, uint32_t aCount,
19355 uint32_t* _retval) {
19356 return ReadSegments(NS_CopySegmentToBuffer, aBuf, aCount, _retval);
19357}
19358
19359NS_IMETHODIMPnsresult
19360ObjectStoreAddOrPutRequestOp::SCInputStream::ReadSegments(
19361 nsWriteSegmentFun aWriter, void* aClosure, uint32_t aCount,
19362 uint32_t* _retval) {
19363 *_retval = 0;
19364
19365 while (aCount) {
19366 uint32_t count = std::min(uint32_t(mIter.RemainingInSegment()), aCount);
19367 if (!count) {
19368 // We've run out of data in the last segment.
19369 break;
19370 }
19371
19372 uint32_t written;
19373 nsresult rv =
19374 aWriter(this, aClosure, mIter.Data(), *_retval, count, &written);
19375 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19375)
) {
19376 // InputStreams do not propagate errors to caller.
19377 return NS_OK;
19378 }
19379
19380 // Writer should write what we asked it to write.
19381 MOZ_ASSERT(written == count)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(written == count)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(written == count))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("written == count"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19381
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "written == count"
")"); do { MOZ_CrashSequence(__null, 19381); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19382
19383 *_retval += count;
19384 aCount -= count;
19385
19386 if (NS_WARN_IF(!mData.Advance(mIter, count))NS_warn_if_impl(!mData.Advance(mIter, count), "!mData.Advance(mIter, count)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19386
)
) {
19387 // InputStreams do not propagate errors to caller.
19388 return NS_OK;
19389 }
19390 }
19391
19392 return NS_OK;
19393}
19394
19395NS_IMETHODIMPnsresult
19396ObjectStoreAddOrPutRequestOp::SCInputStream::IsNonBlocking(bool* _retval) {
19397 *_retval = false;
19398 return NS_OK;
19399}
19400
19401ObjectStoreGetRequestOp::ObjectStoreGetRequestOp(
19402 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19403 const RequestParams& aParams, bool aGetAll)
19404 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19405 mObjectStoreId(aGetAll
19406 ? aParams.get_ObjectStoreGetAllParams().objectStoreId()
19407 : aParams.get_ObjectStoreGetParams().objectStoreId()),
19408 mDatabase(Transaction().GetDatabasePtr()),
19409 mOptionalKeyRange(
19410 aGetAll ? aParams.get_ObjectStoreGetAllParams().optionalKeyRange()
19411 : Some(aParams.get_ObjectStoreGetParams().keyRange())),
19412 mBackgroundParent(Transaction().GetBackgroundParent()),
19413 mPreprocessInfoCount(0),
19414 mLimit(aGetAll ? aParams.get_ObjectStoreGetAllParams().limit() : 1),
19415 mGetAll(aGetAll) {
19416 MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreGetParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreGetParams
|| aParams.type() == RequestParams::TObjectStoreGetAllParams
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetParams
|| aParams.type() == RequestParams::TObjectStoreGetAllParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19417
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
")"); do { MOZ_CrashSequence(__null, 19417); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19417 aParams.type() == RequestParams::TObjectStoreGetAllParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreGetParams
|| aParams.type() == RequestParams::TObjectStoreGetAllParams
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetParams
|| aParams.type() == RequestParams::TObjectStoreGetAllParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19417
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
")"); do { MOZ_CrashSequence(__null, 19417); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19418 MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19418
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 19418); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19419 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19419); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { MOZ_CrashSequence(__null, 19419); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19420 MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19420
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 19420); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19421 MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mBackgroundParent)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19421
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent"
")"); do { MOZ_CrashSequence(__null, 19421); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19422}
19423
19424template <typename T>
19425Result<T, nsresult> ObjectStoreGetRequestOp::ConvertResponse(
19426 StructuredCloneReadInfoParent&& aInfo) {
19427 T result;
19428
19429 static_assert(std::is_same_v<T, SerializedStructuredCloneReadInfo> ||
19430 std::is_same_v<T, PreprocessInfo>);
19431
19432 if constexpr (std::is_same_v<T, SerializedStructuredCloneReadInfo>) {
19433 result.data().data = aInfo.ReleaseData();
19434 result.hasPreprocessInfo() = aInfo.HasPreprocessInfo();
19435 }
19436
19437 QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1448 = (SerializeStructuredCloneFiles( mDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19439, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } result.files() = tryResult1448.unwrap();
19438 mDatabase, aInfo.Files(),auto tryResult1448 = (SerializeStructuredCloneFiles( mDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19439, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } result.files() = tryResult1448.unwrap();
19439 std::is_same_v<T, PreprocessInfo>))auto tryResult1448 = (SerializeStructuredCloneFiles( mDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19439, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); } result.files() = tryResult1448.unwrap();
;
19440
19441 return result;
19442}
19443
19444nsresult ObjectStoreGetRequestOp::DoDatabaseWork(
19445 DatabaseConnection* aConnection) {
19446 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19446); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19446); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19447 aConnection->AssertIsOnConnectionThread();
19448 MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19448
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 19448); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19449 MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mLimit == 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19449); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { MOZ_CrashSequence(__null, 19449); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19450
19451 AUTO_PROFILER_LABEL("ObjectStoreGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19451( "ObjectStoreGetRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19452
19453 const nsCString query =
19454 "SELECT file_ids, data "
19455 "FROM object_data "
19456 "WHERE object_store_id = :"_ns +
19457 kStmtParamNameObjectStoreId +
19458 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) +
19459 " ORDER BY key ASC"_ns +
19460 (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString());
19461
19462 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1449 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1449.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19462, mozilla::dom::quota::Severity::Error); return tryResult1449
.propagateErr(); } const auto& stmt = tryResult1449.inspect
();
;
19463
19464 QM_TRY(MOZ_TO_RESULT({auto tryResult1450 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1450)::ok_type>); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1450.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19465, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
19465 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1450 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1450)::ok_type>); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1450.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19465, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); }}
;
19466
19467 if (mOptionalKeyRange.isSome()) {
19468 QM_TRY(MOZ_TO_RESULT({auto tryResult1451 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1451.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19469, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
19469 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1451 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1451.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19469, mozilla::dom::quota::Severity::Error); return tryResult1451
.propagateErr(); }}
;
19470 }
19471
19472 QM_TRY(CollectWhileHasResult({auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
19473 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
19474 QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
19475 GetStructuredCloneReadInfoFromStatement({auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
19476 &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
19477
19478 if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
19479 mPreprocessInfoCount++;{auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
19480 }{auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
19481
19482 QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
19483 Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
19484
19485 return Ok{};{auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
19486 })){auto tryResult1454 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1452.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19476, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19483, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1454
)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1452 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1452.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1452.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19476, mozilla::dom::quota::Severity::Error); return tryResult1452.propagateErr(); } auto cloneInfo = tryResult1452.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1453 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1453.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19483, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1454.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19486, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); }}
;
19487
19488 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 19488); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19489
19490 return NS_OK;
19491}
19492
19493bool ObjectStoreGetRequestOp::HasPreprocessInfo() {
19494 return mPreprocessInfoCount > 0;
19495}
19496
19497Result<PreprocessParams, nsresult>
19498ObjectStoreGetRequestOp::GetPreprocessParams() {
19499 AssertIsOnOwningThread();
19500 MOZ_ASSERT(!mResponse.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mResponse.IsEmpty())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mResponse.IsEmpty()))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("!mResponse.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19500
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 19500); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19501
19502 if (mGetAll) {
19503 auto params = ObjectStoreGetAllPreprocessParams();
19504
19505 auto& preprocessInfos = params.preprocessInfos();
19506 if (NS_WARN_IF(NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount
, fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19507
)
19507 !preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible))NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount
, fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19507
)
) {
19508 return Err(NS_ERROR_OUT_OF_MEMORY);
19509 }
19510
19511 QM_TRY(TransformIfAbortOnErr({auto tryResult1455 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect
(!!(tryResult1455.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19518, mozilla::dom::quota::Severity::Error); return tryResult1455
.propagateErr(); }}
19512 std::make_move_iterator(mResponse.begin()),{auto tryResult1455 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect
(!!(tryResult1455.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19518, mozilla::dom::quota::Severity::Error); return tryResult1455
.propagateErr(); }}
19513 std::make_move_iterator(mResponse.end()),{auto tryResult1455 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect
(!!(tryResult1455.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19518, mozilla::dom::quota::Severity::Error); return tryResult1455
.propagateErr(); }}
19514 MakeBackInserter(preprocessInfos),{auto tryResult1455 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect
(!!(tryResult1455.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19518, mozilla::dom::quota::Severity::Error); return tryResult1455
.propagateErr(); }}
19515 [](const auto& info) { return info.HasPreprocessInfo(); },{auto tryResult1455 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect
(!!(tryResult1455.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19518, mozilla::dom::quota::Severity::Error); return tryResult1455
.propagateErr(); }}
19516 [&self = *this](StructuredCloneReadInfoParent&& info) {{auto tryResult1455 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect
(!!(tryResult1455.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19518, mozilla::dom::quota::Severity::Error); return tryResult1455
.propagateErr(); }}
19517 return self.ConvertResponse<PreprocessInfo>(std::move(info));{auto tryResult1455 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect
(!!(tryResult1455.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19518, mozilla::dom::quota::Severity::Error); return tryResult1455
.propagateErr(); }}
19518 })){auto tryResult1455 = (TransformIfAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, MakeBackInserter(preprocessInfos), [](const auto& info)
{ return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent
&& info) { return self.ConvertResponse<PreprocessInfo
>(std::move(info)); })); static_assert(std::is_empty_v<
typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect
(!!(tryResult1455.isErr()), 0))) { mozilla::dom::quota::HandleError
("TransformIfAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), MakeBackInserter(preprocessInfos), [](const auto& info) { return info.HasPreprocessInfo(); }, [&self = *this](StructuredCloneReadInfoParent&& info) { return self.ConvertResponse<PreprocessInfo>(std::move(info)); })"
, tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19518, mozilla::dom::quota::Severity::Error); return tryResult1455
.propagateErr(); }}
;
19519
19520 return PreprocessParams{std::move(params)};
19521 }
19522
19523 auto params = ObjectStoreGetPreprocessParams();
19524
19525 QM_TRY_UNWRAP(params.preprocessInfo(),auto tryResult1456 = (ConvertResponse<PreprocessInfo>(std
::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(std::move(mResponse[0]))"
, tryResult1456.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19526, mozilla::dom::quota::Severity::Error); return tryResult1456
.propagateErr(); } params.preprocessInfo() = tryResult1456.unwrap
();
19526 ConvertResponse<PreprocessInfo>(std::move(mResponse[0])))auto tryResult1456 = (ConvertResponse<PreprocessInfo>(std
::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(std::move(mResponse[0]))"
, tryResult1456.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19526, mozilla::dom::quota::Severity::Error); return tryResult1456
.propagateErr(); } params.preprocessInfo() = tryResult1456.unwrap
();
;
19527
19528 return PreprocessParams{std::move(params)};
19529}
19530
19531void ObjectStoreGetRequestOp::GetResponse(RequestResponse& aResponse,
19532 size_t* aResponseSize) {
19533 MOZ_ASSERT_IF(mLimit, mResponse.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= mLimit)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= mLimit
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mResponse.Length() <= mLimit", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19533); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit"
")"); do { MOZ_CrashSequence(__null, 19533); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19534
19535 if (mGetAll) {
19536 aResponse = ObjectStoreGetAllResponse();
19537 *aResponseSize = 0;
19538
19539 if (!mResponse.IsEmpty()) {
19540 QM_TRY_UNWRAP(auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
19541 aResponse.get_ObjectStoreGetAllResponse().cloneInfos(),auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
19542 TransformIntoNewArrayAbortOnErr(auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
19543 std::make_move_iterator(mResponse.begin()),auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
19544 std::make_move_iterator(mResponse.end()),auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
19545 [this, &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
19546 *aResponseSize += info.Size();auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
19547 return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
19548 std::move(info));auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
19549 },auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
19550 fallible),auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
19551 QM_VOID, [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1457 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [this, &aResponseSize](StructuredCloneReadInfoParent&&
info) { *aResponseSize += info.Size(); return ConvertResponse
<SerializedStructuredCloneReadInfo>( std::move(info)); }
, fallible)); if ((__builtin_expect(!!(tryResult1457.isErr())
, 0))) { auto tryTempError = tryResult1457.unwrapErr(); mozilla
::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [this, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19551, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1457.unwrap();
;
19552 }
19553
19554 return;
19555 }
19556
19557 aResponse = ObjectStoreGetResponse();
19558 *aResponseSize = 0;
19559
19560 if (!mResponse.IsEmpty()) {
19561 SerializedStructuredCloneReadInfo& serializedInfo =
19562 aResponse.get_ObjectStoreGetResponse().cloneInfo();
19563
19564 *aResponseSize += mResponse[0].Size();
19565 QM_TRY_UNWRAP(serializedInfo,auto tryResult1458 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19569, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1458.unwrap
();
19566 ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1458 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19569, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1458.unwrap
();
19567 std::move(mResponse[0])),auto tryResult1458 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19569, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1458.unwrap
();
19568 QM_VOID,auto tryResult1458 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19569, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1458.unwrap
();
19569 [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1458 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError = tryResult1458.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19569, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1458.unwrap
();
;
19570 }
19571}
19572
19573ObjectStoreGetKeyRequestOp::ObjectStoreGetKeyRequestOp(
19574 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19575 const RequestParams& aParams, bool aGetAll)
19576 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19577 mObjectStoreId(
19578 aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().objectStoreId()
19579 : aParams.get_ObjectStoreGetKeyParams().objectStoreId()),
19580 mOptionalKeyRange(
19581 aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().optionalKeyRange()
19582 : Some(aParams.get_ObjectStoreGetKeyParams().keyRange())),
19583 mLimit(aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().limit() : 1),
19584 mGetAll(aGetAll) {
19585 MOZ_ASSERT(aParams.type() == RequestParams::TObjectStoreGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreGetKeyParams
|| aParams.type() == RequestParams::TObjectStoreGetAllKeysParams
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetKeyParams
|| aParams.type() == RequestParams::TObjectStoreGetAllKeysParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19586
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
")"); do { MOZ_CrashSequence(__null, 19586); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19586 aParams.type() == RequestParams::TObjectStoreGetAllKeysParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TObjectStoreGetKeyParams
|| aParams.type() == RequestParams::TObjectStoreGetAllKeysParams
)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TObjectStoreGetKeyParams
|| aParams.type() == RequestParams::TObjectStoreGetAllKeysParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19586
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
")"); do { MOZ_CrashSequence(__null, 19586); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19587 MOZ_ASSERT(mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mObjectStoreId))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19587
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")"
); do { MOZ_CrashSequence(__null, 19587); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19588 MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19588
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 19588); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19589}
19590
19591nsresult ObjectStoreGetKeyRequestOp::DoDatabaseWork(
19592 DatabaseConnection* aConnection) {
19593 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19593); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19593); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19594 aConnection->AssertIsOnConnectionThread();
19595
19596 AUTO_PROFILER_LABEL("ObjectStoreGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19596( "ObjectStoreGetKeyRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19597
19598 const nsCString query =
19599 "SELECT key "
19600 "FROM object_data "
19601 "WHERE object_store_id = :"_ns +
19602 kStmtParamNameObjectStoreId +
19603 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) +
19604 " ORDER BY key ASC"_ns +
19605 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
19606
19607 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1459 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19607, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); } const auto& stmt = tryResult1459.inspect
();
;
19608
19609 nsresult rv =
19610 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId);
19611 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19611)
) {
19612 return rv;
19613 }
19614
19615 if (mOptionalKeyRange.isSome()) {
19616 rv = BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt);
19617 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19617)
) {
19618 return rv;
19619 }
19620 }
19621
19622 QM_TRY(CollectWhileHasResult({auto tryResult1462 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1461)::ok_type>);
if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; return Ok{}; })"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19629, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}
19623 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1462 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1461)::ok_type>);
if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; return Ok{}; })"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19629, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}
19624 Key* const key = mResponse.AppendElement(fallible);{auto tryResult1462 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1461)::ok_type>);
if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; return Ok{}; })"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19629, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}
19625 QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1462 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1461)::ok_type>);
if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; return Ok{}; })"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19629, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}
19626 QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1462 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1461)::ok_type>);
if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; return Ok{}; })"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19629, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}
19627
19628 return Ok{};{auto tryResult1462 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1461)::ok_type>);
if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; return Ok{}; })"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19629, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}
19629 })){auto tryResult1462 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19625, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1461)::ok_type>);
if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19626, mozilla::dom::quota::Severity::Error); return tryResult1461
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1460 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect(!!(tryResult1460.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19625, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1461 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19626, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; return Ok{}; })"
, tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19629, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); }}
;
19630
19631 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19631
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 19631); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19632
19633 return NS_OK;
19634}
19635
19636void ObjectStoreGetKeyRequestOp::GetResponse(RequestResponse& aResponse,
19637 size_t* aResponseSize) {
19638 MOZ_ASSERT_IF(mLimit, mResponse.Length() <= mLimit)do { if (mLimit) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= mLimit)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= mLimit
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"mResponse.Length() <= mLimit", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit"
")"); do { MOZ_CrashSequence(__null, 19638); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19639
19640 if (mGetAll) {
19641 aResponse = ObjectStoreGetAllKeysResponse();
19642 *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u,
19643 [](size_t old, const auto& entry) {
19644 return old + entry.GetBuffer().Length();
19645 });
19646
19647 aResponse.get_ObjectStoreGetAllKeysResponse().keys() = std::move(mResponse);
19648
19649 return;
19650 }
19651
19652 aResponse = ObjectStoreGetKeyResponse();
19653 *aResponseSize = 0;
19654
19655 if (!mResponse.IsEmpty()) {
19656 *aResponseSize = mResponse[0].GetBuffer().Length();
19657 aResponse.get_ObjectStoreGetKeyResponse().key() = std::move(mResponse[0]);
19658 }
19659}
19660
19661ObjectStoreDeleteRequestOp::ObjectStoreDeleteRequestOp(
19662 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19663 const ObjectStoreDeleteParams& aParams)
19664 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19665 mParams(aParams),
19666 mObjectStoreMayHaveIndexes(false) {
19667 AssertIsOnBackgroundThread();
19668
19669 SafeRefPtr<FullObjectStoreMetadata> metadata =
19670 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
19671 MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(metadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 19671); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19672
19673 mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes();
19674}
19675
19676nsresult ObjectStoreDeleteRequestOp::DoDatabaseWork(
19677 DatabaseConnection* aConnection) {
19678 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19678); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19678); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19679 aConnection->AssertIsOnConnectionThread();
19680 AUTO_PROFILER_LABEL("ObjectStoreDeleteRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19680( "ObjectStoreDeleteRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19681
19682 DatabaseConnection::AutoSavepoint autoSave;
19683 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1463 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19684#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1463 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19685 ,{auto tryResult1463 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19686 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1463 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19687#endif{auto tryResult1463 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19688 ){auto tryResult1463 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1463)::ok_type>); if ((__builtin_expect(!!(tryResult1463
.isErr()), 0))) { auto tryTempError = tryResult1463.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19688, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
19689
19690 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1464 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19692, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1464
.inspect();
19691 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1464 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19692, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1464
.inspect();
19692 mObjectStoreMayHaveIndexes))auto tryResult1464 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19692, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1464
.inspect();
;
19693
19694 if (objectStoreHasIndexes) {
19695 QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1465 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Some(mParams.keyRange
())))); static_assert(std::is_empty_v<typename decltype(tryResult1465
)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19696, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}
19696 aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))){auto tryResult1465 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Some(mParams.keyRange
())))); static_assert(std::is_empty_v<typename decltype(tryResult1465
)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))"
, tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19696, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}
;
19697 } else {
19698 const auto keyRangeClause =
19699 GetBindingClauseForKeyRange(mParams.keyRange(), kColumnNameKey);
19700
19701 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
19702 "DELETE FROM object_data "{auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
19703 "WHERE object_store_id = :"_ns +{auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
19704 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns,{auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
19705 [&params = mParams]({auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
19706 mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
19707 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
19708 params.objectStoreId())));{auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
19709
19710 QM_TRY({auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
19711 MOZ_TO_RESULT(BindKeyRangeToStatement(params.keyRange(), &stmt)));{auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
19712
19713 return Ok{};{auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
19714 }))){auto tryResult1468 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1466
)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1466.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19708, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect
(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1467.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19711, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1468)::ok_type>); if ((__builtin_expect
(!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns, [&params = mParams]( mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1466 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1466.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19708, mozilla::dom::quota::Severity::Error); return tryResult1466.propagateErr(); }}; {auto tryResult1467 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1467.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19711, mozilla::dom::quota::Severity::Error); return tryResult1467.propagateErr(); }}; return Ok{}; }))"
, tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19714, mozilla::dom::quota::Severity::Error); return tryResult1468
.propagateErr(); }}
;
19715 }
19716
19717 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1469 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1469)::ok_type
>); if ((__builtin_expect(!!(tryResult1469.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19717, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); }}
;
19718
19719 return NS_OK;
19720}
19721
19722ObjectStoreClearRequestOp::ObjectStoreClearRequestOp(
19723 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19724 const ObjectStoreClearParams& aParams)
19725 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19726 mParams(aParams),
19727 mObjectStoreMayHaveIndexes(false) {
19728 AssertIsOnBackgroundThread();
19729
19730 SafeRefPtr<FullObjectStoreMetadata> metadata =
19731 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
19732 MOZ_ASSERT(metadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(metadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(metadata))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("metadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19732); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { MOZ_CrashSequence(__null, 19732); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19733
19734 mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes();
19735}
19736
19737nsresult ObjectStoreClearRequestOp::DoDatabaseWork(
19738 DatabaseConnection* aConnection) {
19739 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19739); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19739); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19740 aConnection->AssertIsOnConnectionThread();
19741
19742 AUTO_PROFILER_LABEL("ObjectStoreClearRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19742( "ObjectStoreClearRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19743
19744 DatabaseConnection::AutoSavepoint autoSave;
19745 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1470 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470
.isErr()), 0))) { auto tryTempError = tryResult1470.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19750, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19746#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1470 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470
.isErr()), 0))) { auto tryTempError = tryResult1470.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19750, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19747 ,{auto tryResult1470 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470
.isErr()), 0))) { auto tryTempError = tryResult1470.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19750, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19748 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1470 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470
.isErr()), 0))) { auto tryTempError = tryResult1470.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19750, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19749#endif{auto tryResult1470 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470
.isErr()), 0))) { auto tryTempError = tryResult1470.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19750, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
19750 ){auto tryResult1470 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470
.isErr()), 0))) { auto tryTempError = tryResult1470.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19750, mozilla::dom::quota::Severity::Error); MakeAutoSavepointCleanupHandler
(*aConnection)endif(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return mozilla::dom::
quota::HandleCustomRetVal(func, "ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, Err(tryTempError)); }}
;
19751
19752 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1471 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19754, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1471
.inspect();
19753 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1471 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19754, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1471
.inspect();
19754 mObjectStoreMayHaveIndexes))auto tryResult1471 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1471.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19754, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1471
.inspect();
;
19755
19756 // The parameter names are not used, parameters are bound by index only
19757 // locally in the same function.
19758 QM_TRY(MOZ_TO_RESULT({auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19759 objectStoreHasIndexes{auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19760 ? DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19761 aConnection, mParams.objectStoreId(), Nothing()){auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19762 : aConnection->ExecuteCachedStatement({auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19763 "DELETE FROM object_data "{auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19764 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19765 [objectStoreId ={auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19766 mParams.objectStoreId()](mozIStorageStatement& stmt){auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19767 -> mozilla::Result<Ok, nsresult> {{auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19768 QM_TRY({auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19769 MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoreId)));{auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19770
19771 return Ok{};{auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
19772 }))){auto tryResult1473 = (ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Nothing()) : aConnection
->ExecuteCachedStatement( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement
& stmt) -> mozilla::Result<Ok, nsresult> { {auto
tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1472
)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreHasIndexes ? DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Nothing()) : aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, [objectStoreId = mParams.objectStoreId()](mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1472 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1472)::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1472.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19769, mozilla::dom::quota::Severity::Error); return tryResult1472.propagateErr(); }}; return Ok{}; }))"
, tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}
;
19773
19774 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1474 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1474)::ok_type
>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19774, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}
;
19775
19776 return NS_OK;
19777}
19778
19779nsresult ObjectStoreCountRequestOp::DoDatabaseWork(
19780 DatabaseConnection* aConnection) {
19781 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19781); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19782 aConnection->AssertIsOnConnectionThread();
19783
19784 AUTO_PROFILER_LABEL("ObjectStoreCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19784( "ObjectStoreCountRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19785
19786 const auto keyRangeClause = MaybeGetBindingClauseForKeyRange(
19787 mParams.optionalKeyRange(), kColumnNameKey);
19788
19789 QM_TRY_INSPECT(auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19790 const auto& maybeStmt,auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19791 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19792 "SELECT count(*) "auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19793 "FROM object_data "auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19794 "WHERE object_store_id = :"_ns +auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19795 kStmtParamNameObjectStoreId + keyRangeClause,auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19796 [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19797 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19798 kStmtParamNameObjectStoreId, params.objectStoreId())));auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19799
19800 if (params.optionalKeyRange().isSome()) {auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19801 QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19802 params.optionalKeyRange().ref(), &stmt)));auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19803 }auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19804
19805 return Ok{};auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
19806 }))auto tryResult1477 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect
(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1475.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19798, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect
(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19802, mozilla::dom::quota::Severity::Error); return tryResult1476
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1477.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1475 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1475.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19798, mozilla::dom::quota::Severity::Error); return tryResult1475.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1476 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1476)::ok_type>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1476.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19802, mozilla::dom::quota::Severity::Error); return tryResult1476.propagateErr(); }}; } return Ok{}; })"
, tryResult1477.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19806, mozilla::dom::quota::Severity::Error); return tryResult1477
.propagateErr(); } const auto& maybeStmt = tryResult1477.
inspect();
;
19807
19808 QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1478 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1478)::ok_type
>); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) {
auto tryTempError = tryResult1478.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19814, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19812
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19812); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19813, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19809 [](const auto) {{auto tryResult1478 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1478)::ok_type
>); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) {
auto tryTempError = tryResult1478.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19814, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19812
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19812); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19813, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19810 // XXX Why do we have an assertion here, but not at most other{auto tryResult1478 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1478)::ok_type
>); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) {
auto tryTempError = tryResult1478.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19814, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19812
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19812); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19813, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19811 // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1478 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1478)::ok_type
>); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) {
auto tryTempError = tryResult1478.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19814, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19812
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19812); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19813, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19812 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1478 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1478)::ok_type
>); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) {
auto tryTempError = tryResult1478.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19814, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19812
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19812); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19813, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19813 IDB_REPORT_INTERNAL_ERR();{auto tryResult1478 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1478)::ok_type
>); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) {
auto tryTempError = tryResult1478.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19814, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19812
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19812); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19813, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19814 }){auto tryResult1478 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1478)::ok_type
>); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) {
auto tryTempError = tryResult1478.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19814, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19812
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19812); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19813, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19815
19816 const auto& stmt = *maybeStmt;
19817
19818 const int64_t count = stmt->AsInt64(0);
19819 QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1479 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1479)::ok_type>
); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { auto
tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19822
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19822); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19823, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19820 // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1479 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1479)::ok_type>
); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { auto
tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19822
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19822); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19823, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19821 // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1479 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1479)::ok_type>
); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { auto
tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19822
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19822); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19823, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19822 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1479 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1479)::ok_type>
); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { auto
tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19822
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19822); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19823, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19823 IDB_REPORT_INTERNAL_ERR();{auto tryResult1479 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1479)::ok_type>
); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { auto
tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19822
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19822); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19823, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
19824 }){auto tryResult1479 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1479)::ok_type>
); if ((__builtin_expect(!!(tryResult1479.isErr()), 0))) { auto
tryTempError = tryResult1479.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19824, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19822
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 19822); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19823, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
19825
19826 mResponse.count() = count;
19827
19828 return NS_OK;
19829}
19830
19831// static
19832SafeRefPtr<FullIndexMetadata> IndexRequestOpBase::IndexMetadataForParams(
19833 const TransactionBase& aTransaction, const RequestParams& aParams) {
19834 AssertIsOnBackgroundThread();
19835 MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetKeyParams || aParams.type(
) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams
::TIndexGetAllKeysParams || aParams.type() == RequestParams::
TIndexCountParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams
|| aParams.type() == RequestParams::TIndexGetAllParams || aParams
.type() == RequestParams::TIndexGetAllKeysParams || aParams.type
() == RequestParams::TIndexCountParams))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19839
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { MOZ_CrashSequence(__null, 19839); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19836 aParams.type() == RequestParams::TIndexGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetKeyParams || aParams.type(
) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams
::TIndexGetAllKeysParams || aParams.type() == RequestParams::
TIndexCountParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams
|| aParams.type() == RequestParams::TIndexGetAllParams || aParams
.type() == RequestParams::TIndexGetAllKeysParams || aParams.type
() == RequestParams::TIndexCountParams))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19839
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { MOZ_CrashSequence(__null, 19839); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19837 aParams.type() == RequestParams::TIndexGetAllParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetKeyParams || aParams.type(
) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams
::TIndexGetAllKeysParams || aParams.type() == RequestParams::
TIndexCountParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams
|| aParams.type() == RequestParams::TIndexGetAllParams || aParams
.type() == RequestParams::TIndexGetAllKeysParams || aParams.type
() == RequestParams::TIndexCountParams))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19839
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { MOZ_CrashSequence(__null, 19839); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19838 aParams.type() == RequestParams::TIndexGetAllKeysParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetKeyParams || aParams.type(
) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams
::TIndexGetAllKeysParams || aParams.type() == RequestParams::
TIndexCountParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams
|| aParams.type() == RequestParams::TIndexGetAllParams || aParams
.type() == RequestParams::TIndexGetAllKeysParams || aParams.type
() == RequestParams::TIndexCountParams))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19839
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { MOZ_CrashSequence(__null, 19839); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19839 aParams.type() == RequestParams::TIndexCountParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetKeyParams || aParams.type(
) == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams
::TIndexGetAllKeysParams || aParams.type() == RequestParams::
TIndexCountParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams
|| aParams.type() == RequestParams::TIndexGetAllParams || aParams
.type() == RequestParams::TIndexGetAllKeysParams || aParams.type
() == RequestParams::TIndexCountParams))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19839
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllParams || aParams.type() == RequestParams::TIndexGetAllKeysParams || aParams.type() == RequestParams::TIndexCountParams"
")"); do { MOZ_CrashSequence(__null, 19839); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19840
19841 IndexOrObjectStoreId objectStoreId;
19842 IndexOrObjectStoreId indexId;
19843
19844 switch (aParams.type()) {
19845 case RequestParams::TIndexGetParams: {
19846 const IndexGetParams& params = aParams.get_IndexGetParams();
19847 objectStoreId = params.objectStoreId();
19848 indexId = params.indexId();
19849 break;
19850 }
19851
19852 case RequestParams::TIndexGetKeyParams: {
19853 const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams();
19854 objectStoreId = params.objectStoreId();
19855 indexId = params.indexId();
19856 break;
19857 }
19858
19859 case RequestParams::TIndexGetAllParams: {
19860 const IndexGetAllParams& params = aParams.get_IndexGetAllParams();
19861 objectStoreId = params.objectStoreId();
19862 indexId = params.indexId();
19863 break;
19864 }
19865
19866 case RequestParams::TIndexGetAllKeysParams: {
19867 const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams();
19868 objectStoreId = params.objectStoreId();
19869 indexId = params.indexId();
19870 break;
19871 }
19872
19873 case RequestParams::TIndexCountParams: {
19874 const IndexCountParams& params = aParams.get_IndexCountParams();
19875 objectStoreId = params.objectStoreId();
19876 indexId = params.indexId();
19877 break;
19878 }
19879
19880 default:
19881 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19881
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 19881); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
19882 }
19883
19884 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
19885 aTransaction.GetMetadataForObjectStoreId(objectStoreId);
19886 MOZ_ASSERT(objectStoreMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(objectStoreMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(objectStoreMetadata))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("objectStoreMetadata"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19886
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata"
")"); do { MOZ_CrashSequence(__null, 19886); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19887
19888 SafeRefPtr<FullIndexMetadata> indexMetadata =
19889 aTransaction.GetMetadataForIndexId(*objectStoreMetadata, indexId);
19890 MOZ_ASSERT(indexMetadata)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(indexMetadata)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(indexMetadata))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("indexMetadata",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19890)
; AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"
); do { MOZ_CrashSequence(__null, 19890); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19891
19892 return indexMetadata;
19893}
19894
19895IndexGetRequestOp::IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
19896 const int64_t aRequestId,
19897 const RequestParams& aParams, bool aGetAll)
19898 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
19899 mDatabase(Transaction().GetDatabasePtr()),
19900 mOptionalKeyRange(aGetAll
19901 ? aParams.get_IndexGetAllParams().optionalKeyRange()
19902 : Some(aParams.get_IndexGetParams().keyRange())),
19903 mBackgroundParent(Transaction().GetBackgroundParent()),
19904 mLimit(aGetAll ? aParams.get_IndexGetAllParams().limit() : 1),
19905 mGetAll(aGetAll) {
19906 MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetAllParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19907
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
")"); do { MOZ_CrashSequence(__null, 19907); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19907 aParams.type() == RequestParams::TIndexGetAllParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetParams || aParams
.type() == RequestParams::TIndexGetAllParams)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aParams.type() == RequestParams
::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19907
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
")"); do { MOZ_CrashSequence(__null, 19907); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19908 MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mDatabase)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19908); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { MOZ_CrashSequence(__null, 19908); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19909 MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19909
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 19909); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19910 MOZ_ASSERT(mBackgroundParent)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mBackgroundParent)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mBackgroundParent))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mBackgroundParent"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19910
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent"
")"); do { MOZ_CrashSequence(__null, 19910); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19911}
19912
19913nsresult IndexGetRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
19914 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 19914); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19915 aConnection->AssertIsOnConnectionThread();
19916 MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19916
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 19916); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19917 MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mLimit == 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19917); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { MOZ_CrashSequence(__null, 19917); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19918
19919 AUTO_PROFILER_LABEL("IndexGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19919( "IndexGetRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19920
19921 const auto indexTable = mMetadata->mCommonMetadata.unique()
19922 ? "unique_index_data "_ns
19923 : "index_data "_ns;
19924
19925 QM_TRY_INSPECT(auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19926 const auto& stmt,auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19927 aConnection->BorrowCachedStatement(auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19928 "SELECT file_ids, data "auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19929 "FROM object_data "auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19930 "INNER JOIN "_ns +auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19931 indexTable +auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19932 "AS index_table "auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19933 "ON object_data.object_store_id = "auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19934 "index_table.object_store_id "auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19935 "AND object_data.key = "auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19936 "index_table.object_data_key "auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19937 "WHERE index_id = :"_ns +auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19938 kStmtParamNameIndexId +auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19939 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange,auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19940 kColumnNameValue) +auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
19941 (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString())))auto tryResult1480 = (aConnection->BorrowCachedStatement( "SELECT file_ids, data "
"FROM object_data " "INNER JOIN "_ns + indexTable + "AS index_table "
"ON object_data.object_store_id = " "index_table.object_store_id "
"AND object_data.key = " "index_table.object_data_key " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange
, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit
) : EmptyCString()))); if ((__builtin_expect(!!(tryResult1480
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"SELECT file_ids, data \" \"FROM object_data \" \"INNER JOIN \"_ns + indexTable + \"AS index_table \" \"ON object_data.object_store_id = \" \"index_table.object_store_id \" \"AND object_data.key = \" \"index_table.object_data_key \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString()))"
, tryResult1480.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19941, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); } const auto& stmt = tryResult1480.inspect
();
;
19942
19943 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1481 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19944, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
19944 mMetadata->mCommonMetadata.id()))){auto tryResult1481 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1481.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19944, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); }}
;
19945
19946 if (mOptionalKeyRange.isSome()) {
19947 QM_TRY(MOZ_TO_RESULT({auto tryResult1482 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1482.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19948, mozilla::dom::quota::Severity::Error); return tryResult1482
.propagateErr(); }}
19948 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1482 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1482.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19948, mozilla::dom::quota::Severity::Error); return tryResult1482
.propagateErr(); }}
;
19949 }
19950
19951 QM_TRY(CollectWhileHasResult({auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19952 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19953 QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19954 GetStructuredCloneReadInfoFromStatement({auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19955 &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19956
19957 if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19958 IDB_WARNING("Preprocessing for indexes not yet implemented!");{auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19959 return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19960 }{auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19961
19962 QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19963 Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19964
19965 return Ok{};{auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
19966 })){auto tryResult1485 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19955, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!"
); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19958
); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto
tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move
(cloneInfo)))); static_assert(std::is_empty_v<typename decltype
(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19963, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}
; })); static_assert(std::is_empty_v<typename decltype(tryResult1485
)::ok_type>); if ((__builtin_expect(!!(tryResult1485.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1483 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1483.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1483.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19955, mozilla::dom::quota::Severity::Error); return tryResult1483.propagateErr(); } auto cloneInfo = tryResult1483.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19958); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1484 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1484)::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1484.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19963, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; return Ok{}; })"
, tryResult1485.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19966, mozilla::dom::quota::Severity::Error); return tryResult1485
.propagateErr(); }}
;
19967
19968 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19968
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 19968); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19969
19970 return NS_OK;
19971}
19972
19973// XXX This is more or less a duplicate of ObjectStoreGetRequestOp::GetResponse
19974void IndexGetRequestOp::GetResponse(RequestResponse& aResponse,
19975 size_t* aResponseSize) {
19976 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19976
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 19976); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19977
19978 auto convertResponse = [this](StructuredCloneReadInfoParent&& info)
19979 -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> {
19980 SerializedStructuredCloneReadInfo result;
19981
19982 result.data().data = info.ReleaseData();
19983
19984 QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1486 = (SerializeStructuredCloneFiles( mDatabase
, info.Files(), false)); if ((__builtin_expect(!!(tryResult1486
.isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)"
, tryResult1486.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19985, mozilla::dom::quota::Severity::Error); return tryResult1486
.propagateErr(); } result.files() = tryResult1486.unwrap();
19985 mDatabase, info.Files(), false))auto tryResult1486 = (SerializeStructuredCloneFiles( mDatabase
, info.Files(), false)); if ((__builtin_expect(!!(tryResult1486
.isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)"
, tryResult1486.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 19985, mozilla::dom::quota::Severity::Error); return tryResult1486
.propagateErr(); } result.files() = tryResult1486.unwrap();
;
19986
19987 return result;
19988 };
19989
19990 if (mGetAll) {
19991 aResponse = IndexGetAllResponse();
19992 *aResponseSize = 0;
19993
19994 if (!mResponse.IsEmpty()) {
19995 QM_TRY_UNWRAP(auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
19996 aResponse.get_IndexGetAllResponse().cloneInfos(),auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
19997 TransformIntoNewArrayAbortOnErr(auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
19998 std::make_move_iterator(mResponse.begin()),auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
19999 std::make_move_iterator(mResponse.end()),auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
20000 [convertResponse,auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
20001 &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
20002 *aResponseSize += info.Size();auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
20003 return convertResponse(std::move(info));auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
20004 },auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
20005 fallible),auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
20006 QM_VOID, [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1487 = (TransformIntoNewArrayAbortOnErr( std::make_move_iterator
(mResponse.begin()), std::make_move_iterator(mResponse.end())
, [convertResponse, &aResponseSize](StructuredCloneReadInfoParent
&& info) { *aResponseSize += info.Size(); return convertResponse
(std::move(info)); }, fallible)); if ((__builtin_expect(!!(tryResult1487
.isErr()), 0))) { auto tryTempError = tryResult1487.unwrapErr
(); mozilla::dom::quota::HandleError("TransformIntoNewArrayAbortOnErr( std::make_move_iterator(mResponse.begin()), std::make_move_iterator(mResponse.end()), [convertResponse, &aResponseSize](StructuredCloneReadInfoParent&& info) { *aResponseSize += info.Size(); return convertResponse(std::move(info)); }, fallible)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20006, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1487.unwrap();
;
20007 }
20008
20009 return;
20010 }
20011
20012 aResponse = IndexGetResponse();
20013 *aResponseSize = 0;
20014
20015 if (!mResponse.IsEmpty()) {
20016 SerializedStructuredCloneReadInfo& serializedInfo =
20017 aResponse.get_IndexGetResponse().cloneInfo();
20018
20019 *aResponseSize += mResponse[0].Size();
20020 QM_TRY_UNWRAP(serializedInfo, convertResponse(std::move(mResponse[0])),auto tryResult1488 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { auto
tryTempError = tryResult1488.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20022
, mozilla::dom::quota::Severity::Error); [&aResponse](const
nsresult result) { aResponse = result; }(tryTempError); constexpr
const auto& func __attribute__((__unused__)) = __func__;
return ; } serializedInfo = tryResult1488.unwrap();
20021 QM_VOID,auto tryResult1488 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { auto
tryTempError = tryResult1488.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20022
, mozilla::dom::quota::Severity::Error); [&aResponse](const
nsresult result) { aResponse = result; }(tryTempError); constexpr
const auto& func __attribute__((__unused__)) = __func__;
return ; } serializedInfo = tryResult1488.unwrap();
20022 [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1488 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1488.isErr()), 0))) { auto
tryTempError = tryResult1488.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20022
, mozilla::dom::quota::Severity::Error); [&aResponse](const
nsresult result) { aResponse = result; }(tryTempError); constexpr
const auto& func __attribute__((__unused__)) = __func__;
return ; } serializedInfo = tryResult1488.unwrap();
;
20023 }
20024}
20025
20026IndexGetKeyRequestOp::IndexGetKeyRequestOp(
20027 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
20028 const RequestParams& aParams, bool aGetAll)
20029 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
20030 mOptionalKeyRange(
20031 aGetAll ? aParams.get_IndexGetAllKeysParams().optionalKeyRange()
20032 : Some(aParams.get_IndexGetKeyParams().keyRange())),
20033 mLimit(aGetAll ? aParams.get_IndexGetAllKeysParams().limit() : 1),
20034 mGetAll(aGetAll) {
20035 MOZ_ASSERT(aParams.type() == RequestParams::TIndexGetKeyParams ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetKeyParams ||
aParams.type() == RequestParams::TIndexGetAllKeysParams)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TIndexGetKeyParams ||
aParams.type() == RequestParams::TIndexGetAllKeysParams))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20036
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
")"); do { MOZ_CrashSequence(__null, 20036); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20036 aParams.type() == RequestParams::TIndexGetAllKeysParams)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aParams.type() == RequestParams::TIndexGetKeyParams ||
aParams.type() == RequestParams::TIndexGetAllKeysParams)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(aParams.type() == RequestParams::TIndexGetKeyParams ||
aParams.type() == RequestParams::TIndexGetAllKeysParams))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20036
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
")"); do { MOZ_CrashSequence(__null, 20036); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20037 MOZ_ASSERT_IF(!aGetAll, mOptionalKeyRange.isSome())do { if (!aGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20037
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 20037); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20038}
20039
20040nsresult IndexGetKeyRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
20041 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20041); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20042 aConnection->AssertIsOnConnectionThread();
20043 MOZ_ASSERT_IF(!mGetAll, mOptionalKeyRange.isSome())do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mOptionalKeyRange.isSome())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOptionalKeyRange.isSome()))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOptionalKeyRange.isSome()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20043
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { MOZ_CrashSequence(__null, 20043); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20044 MOZ_ASSERT_IF(!mGetAll, mLimit == 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mLimit == 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mLimit == 1))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mLimit == 1", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20044); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { MOZ_CrashSequence(__null, 20044); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20045
20046 AUTO_PROFILER_LABEL("IndexGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20046( "IndexGetKeyRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20047
20048 const bool hasKeyRange = mOptionalKeyRange.isSome();
20049
20050 const auto indexTable = mMetadata->mCommonMetadata.unique()
20051 ? "unique_index_data "_ns
20052 : "index_data "_ns;
20053
20054 const nsCString query =
20055 "SELECT object_data_key "
20056 "FROM "_ns +
20057 indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +
20058 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) +
20059 (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString());
20060
20061 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1489 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20061, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); } const auto& stmt = tryResult1489.inspect
();
;
20062
20063 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1490 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect
(!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1490.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20064, mozilla::dom::quota::Severity::Error); return tryResult1490
.propagateErr(); }}
20064 mMetadata->mCommonMetadata.id()))){auto tryResult1490 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect
(!!(tryResult1490.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1490.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20064, mozilla::dom::quota::Severity::Error); return tryResult1490
.propagateErr(); }}
;
20065
20066 if (hasKeyRange) {
20067 QM_TRY(MOZ_TO_RESULT({auto tryResult1491 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1491)::ok_type>); if ((__builtin_expect
(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1491.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20068, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}
20068 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1491 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1491)::ok_type>); if ((__builtin_expect
(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1491.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20068, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}
;
20069 }
20070
20071 QM_TRY(CollectWhileHasResult({auto tryResult1494 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20074, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1493)::ok_type>);
if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20075, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect
(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20074, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20075, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; })"
, tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20078, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}
20072 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1494 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20074, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1493)::ok_type>);
if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20075, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect
(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20074, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20075, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; })"
, tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20078, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}
20073 Key* const key = mResponse.AppendElement(fallible);{auto tryResult1494 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20074, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1493)::ok_type>);
if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20075, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect
(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20074, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20075, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; })"
, tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20078, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}
20074 QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1494 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20074, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1493)::ok_type>);
if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20075, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect
(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20074, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20075, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; })"
, tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20078, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}
20075 QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1494 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20074, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1493)::ok_type>);
if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20075, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect
(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20074, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20075, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; })"
, tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20078, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}
20076
20077 return Ok{};{auto tryResult1494 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20074, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1493)::ok_type>);
if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20075, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect
(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20074, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20075, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; })"
, tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20078, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}
20078 })){auto tryResult1494 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20074, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(key)", tryTempError
, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1493)::ok_type>);
if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20075, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect
(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1492 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect(!!(tryResult1492.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1492.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20074, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(key)\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; {auto tryResult1493 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1493.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20075, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; return Ok{}; })"
, tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20078, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}
;
20079
20080 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20080
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 20080); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20081
20082 return NS_OK;
20083}
20084
20085void IndexGetKeyRequestOp::GetResponse(RequestResponse& aResponse,
20086 size_t* aResponseSize) {
20087 MOZ_ASSERT_IF(!mGetAll, mResponse.Length() <= 1)do { if (!mGetAll) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(mResponse.Length() <= 1)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mResponse.Length() <= 1))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mResponse.Length() <= 1"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20087
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { MOZ_CrashSequence(__null, 20087); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20088
20089 if (mGetAll) {
20090 aResponse = IndexGetAllKeysResponse();
20091 *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u,
20092 [](size_t old, const auto& entry) {
20093 return old + entry.GetBuffer().Length();
20094 });
20095
20096 aResponse.get_IndexGetAllKeysResponse().keys() = std::move(mResponse);
20097
20098 return;
20099 }
20100
20101 aResponse = IndexGetKeyResponse();
20102 *aResponseSize = 0;
20103
20104 if (!mResponse.IsEmpty()) {
20105 *aResponseSize = mResponse[0].GetBuffer().Length();
20106 aResponse.get_IndexGetKeyResponse().key() = std::move(mResponse[0]);
20107 }
20108}
20109
20110nsresult IndexCountRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
20111 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20111); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20111); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20112 aConnection->AssertIsOnConnectionThread();
20113
20114 AUTO_PROFILER_LABEL("IndexCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20114( "IndexCountRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20115
20116 const auto indexTable = mMetadata->mCommonMetadata.unique()
20117 ? "unique_index_data "_ns
20118 : "index_data "_ns;
20119
20120 const auto keyRangeClause = MaybeGetBindingClauseForKeyRange(
20121 mParams.optionalKeyRange(), kColumnNameValue);
20122
20123 QM_TRY_INSPECT(auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20124 const auto& maybeStmt,auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20125 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20126 "SELECT count(*) "auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20127 "FROM "_ns +auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20128 indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20129 keyRangeClause,auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20130 [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20131 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20132 kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id())));auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20133
20134 if (self.mParams.optionalKeyRange().isSome()) {auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20135 QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20136 self.mParams.optionalKeyRange().ref(), &stmt)));auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20137 }auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20138
20139 return Ok{};auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
20140 }))auto tryResult1497 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1495)::ok_type>
); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1495.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20132, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20136, mozilla::dom::quota::Severity::Error); return tryResult1496
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1497.isErr()), 0))) { mozilla::dom::quota::HandleError
("aConnection->BorrowAndExecuteSingleStepStatement( \"SELECT count(*) \" \"FROM \"_ns + indexTable + \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1495 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1495.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20132, mozilla::dom::quota::Severity::Error); return tryResult1495.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1496 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1496)::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1496.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20136, mozilla::dom::quota::Severity::Error); return tryResult1496.propagateErr(); }}; } return Ok{}; })"
, tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20140, mozilla::dom::quota::Severity::Error); return tryResult1497
.propagateErr(); } const auto& maybeStmt = tryResult1497.
inspect();
;
20141
20142 QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1498 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1498)::ok_type
>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) {
auto tryTempError = tryResult1498.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20148, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20146
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20146); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20147, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20143 [](const auto) {{auto tryResult1498 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1498)::ok_type
>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) {
auto tryTempError = tryResult1498.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20148, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20146
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20146); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20147, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20144 // XXX Why do we have an assertion here, but not at most other{auto tryResult1498 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1498)::ok_type
>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) {
auto tryTempError = tryResult1498.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20148, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20146
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20146); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20147, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20145 // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1498 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1498)::ok_type
>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) {
auto tryTempError = tryResult1498.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20148, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20146
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20146); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20147, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20146 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1498 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1498)::ok_type
>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) {
auto tryTempError = tryResult1498.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20148, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20146
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20146); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20147, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20147 IDB_REPORT_INTERNAL_ERR();{auto tryResult1498 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1498)::ok_type
>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) {
auto tryTempError = tryResult1498.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20148, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20146
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20146); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20147, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20148 }){auto tryResult1498 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1498)::ok_type
>); if ((__builtin_expect(!!(tryResult1498.isErr()), 0))) {
auto tryTempError = tryResult1498.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20148, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20146
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20146); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20147, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(maybeStmt.isSome())"
, tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
20149
20150 const auto& stmt = *maybeStmt;
20151
20152 const int64_t count = stmt->AsInt64(0);
20153 QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1499 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1499)::ok_type>
); if ((__builtin_expect(!!(tryResult1499.isErr()), 0))) { auto
tryTempError = tryResult1499.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20158, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20156); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20157, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20154 // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1499 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1499)::ok_type>
); if ((__builtin_expect(!!(tryResult1499.isErr()), 0))) { auto
tryTempError = tryResult1499.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20158, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20156); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20157, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20155 // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1499 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1499)::ok_type>
); if ((__builtin_expect(!!(tryResult1499.isErr()), 0))) { auto
tryTempError = tryResult1499.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20158, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20156); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20157, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20156 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1499 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1499)::ok_type>
); if ((__builtin_expect(!!(tryResult1499.isErr()), 0))) { auto
tryTempError = tryResult1499.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20158, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20156); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20157, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20157 IDB_REPORT_INTERNAL_ERR();{auto tryResult1499 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1499)::ok_type>
); if ((__builtin_expect(!!(tryResult1499.isErr()), 0))) { auto
tryTempError = tryResult1499.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20158, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20156); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20157, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
20158 }){auto tryResult1499 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1499)::ok_type>
); if ((__builtin_expect(!!(tryResult1499.isErr()), 0))) { auto
tryTempError = tryResult1499.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20158, mozilla::dom::quota::Severity::Error); [](const auto
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "This should never be possible!"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20156
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!"
")"); do { MOZ_CrashSequence(__null, 20156); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mozilla
::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20157, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(count >= 0)",
tryTempError, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
20159
20160 mResponse.count() = count;
20161
20162 return NS_OK;
20163}
20164
20165template <IDBCursorType CursorType>
20166bool Cursor<CursorType>::CursorOpBase::SendFailureResult(nsresult aResultCode) {
20167 AssertIsOnOwningThread();
20168 MOZ_ASSERT(NS_FAILED(aResultCode))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode
)), 0))))>::isValid, "invalid assertion condition"); if ((
__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl
(aResultCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20168
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
")"); do { MOZ_CrashSequence(__null, 20168); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20169 MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20169); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { MOZ_CrashSequence(__null, 20169); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20170 MOZ_ASSERT(mCursor->mCurrentlyRunningOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mCurrentlyRunningOp == this)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mCursor->mCurrentlyRunningOp == this))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor->mCurrentlyRunningOp == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20170
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this"
")"); do { MOZ_CrashSequence(__null, 20170); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20171 MOZ_ASSERT(!mResponseSent)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mResponseSent)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mResponseSent))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mResponseSent"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20171
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponseSent" ")"
); do { MOZ_CrashSequence(__null, 20171); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20172
20173 if (!IsActorDestroyed()) {
20174 mResponse = ClampResultCode(aResultCode);
20175
20176 // This is an expected race when the transaction is invalidated after
20177 // data is retrieved from database.
20178 //
20179 // TODO: There seem to be other cases when mFiles is non-empty here, which
20180 // have been present before adding cursor preloading, but with cursor
20181 // preloading they have become more frequent (also during startup). One
20182 // possible cause with cursor preloading is to be addressed by Bug 1597191.
20183 NS_WARNING_ASSERTION(do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated
())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated"
, "!mFiles.IsEmpty() && !Transaction().IsInvalidated()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20185
); } } while (false)
20184 !mFiles.IsEmpty() && !Transaction().IsInvalidated(),do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated
())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated"
, "!mFiles.IsEmpty() && !Transaction().IsInvalidated()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20185
); } } while (false)
20185 "Expected empty mFiles when transaction has not been invalidated")do { if (!(!mFiles.IsEmpty() && !Transaction().IsInvalidated
())) { NS_DebugBreak(NS_DEBUG_WARNING, "Expected empty mFiles when transaction has not been invalidated"
, "!mFiles.IsEmpty() && !Transaction().IsInvalidated()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20185
); } } while (false)
;
20186
20187 // SendResponseInternal will assert when mResponse.type() is
20188 // CursorResponse::Tnsresult and mFiles is non-empty, so we clear mFiles
20189 // here.
20190 mFiles.Clear();
20191
20192 mCursor->SendResponseInternal(mResponse, mFiles);
20193 }
20194
20195#ifdef DEBUG1
20196 mResponseSent = true;
20197#endif
20198 return false;
20199}
20200
20201template <IDBCursorType CursorType>
20202void Cursor<CursorType>::CursorOpBase::Cleanup() {
20203 AssertIsOnOwningThread();
20204 MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20204); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { MOZ_CrashSequence(__null, 20204); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20205 MOZ_ASSERT_IF(!IsActorDestroyed(), mResponseSent)do { if (!IsActorDestroyed()) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mResponseSent)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(mResponseSent))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mResponseSent", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent"
")"); do { MOZ_CrashSequence(__null, 20205); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20206
20207 mCursor = nullptr;
20208
20209#ifdef DEBUG1
20210 // A bit hacky but the CursorOp request is not generated in response to a
20211 // child request like most other database operations. Do this to make our
20212 // assertions happy.
20213 NoteActorDestroyed();
20214#endif
20215
20216 TransactionDatabaseOperationBase::Cleanup();
20217}
20218
20219template <IDBCursorType CursorType>
20220ResponseSizeOrError
20221CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement(
20222 mozIStorageStatement* const aStmt, const bool aInitializeResponse,
20223 Key* const aOptOutSortKey) {
20224 mOp.Transaction().AssertIsOnConnectionThread();
20225 MOZ_ASSERT_IF(aInitializeResponse,do { if (aInitializeResponse) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mOp.mResponse.type
() == CursorResponse::T__None)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() == CursorResponse
::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mOp.mResponse.type() == CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 20226); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20226 mOp.mResponse.type() == CursorResponse::T__None)do { if (aInitializeResponse) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mOp.mResponse.type
() == CursorResponse::T__None)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() == CursorResponse
::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mOp.mResponse.type() == CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 20226); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20227 MOZ_ASSERT_IF(!aInitializeResponse,do { if (!aInitializeResponse) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mOp.mResponse.type
() != CursorResponse::T__None)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() != CursorResponse
::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mOp.mResponse.type() != CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 20228); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20228 mOp.mResponse.type() != CursorResponse::T__None)do { if (!aInitializeResponse) { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(mOp.mResponse.type
() != CursorResponse::T__None)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mOp.mResponse.type() != CursorResponse
::T__None))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("mOp.mResponse.type() != CursorResponse::T__None", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 20228); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20229 MOZ_ASSERT_IF(do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20234
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20234); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20230 mOp.mFiles.IsEmpty() &&do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20234
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20234); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20231 (mOp.mResponse.type() ==do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20234
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20234); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20232 CursorResponse::TArrayOfObjectStoreCursorResponse ||do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20234
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20234); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20233 mOp.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse),do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20234
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20234); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20234 aInitializeResponse)do { if (mOp.mFiles.IsEmpty() && (mOp.mResponse.type(
) == CursorResponse::TArrayOfObjectStoreCursorResponse || mOp
.mResponse.type() == CursorResponse::TArrayOfIndexCursorResponse
)) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(aInitializeResponse)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aInitializeResponse))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("aInitializeResponse"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20234
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { MOZ_CrashSequence(__null, 20234); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20235
20236 auto populateResponseHelper = PopulateResponseHelper<CursorType>{mOp};
20237 auto previousKey = aOptOutSortKey ? std::move(*aOptOutSortKey) : Key{};
20238
20239 QM_TRY(MOZ_TO_RESULT(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))){auto tryResult1500 = (ToResult(populateResponseHelper.GetKeys
(aStmt, aOptOutSortKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1500)::ok_type>); if ((__builtin_expect
(!!(tryResult1500.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))"
, tryResult1500.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20239, mozilla::dom::quota::Severity::Error); return tryResult1500
.propagateErr(); }}
;
20240
20241 // aOptOutSortKey must be set iff the cursor is a unique cursor. For unique
20242 // cursors, we need to skip records with the same key. The SQL queries
20243 // currently do not filter these out.
20244 if (aOptOutSortKey && !previousKey.IsUnset() &&
20245 previousKey == *aOptOutSortKey) {
20246 return 0;
20247 }
20248
20249 QM_TRY(MOZ_TO_RESULT({auto tryResult1501 = (ToResult(populateResponseHelper.MaybeGetCloneInfo
(aStmt, GetCursor()))); static_assert(std::is_empty_v<typename
decltype(tryResult1501)::ok_type>); if ((__builtin_expect
(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))"
, tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20250, mozilla::dom::quota::Severity::Error); return tryResult1501
.propagateErr(); }}
20250 populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))){auto tryResult1501 = (ToResult(populateResponseHelper.MaybeGetCloneInfo
(aStmt, GetCursor()))); static_assert(std::is_empty_v<typename
decltype(tryResult1501)::ok_type>); if ((__builtin_expect
(!!(tryResult1501.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))"
, tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20250, mozilla::dom::quota::Severity::Error); return tryResult1501
.propagateErr(); }}
;
20251
20252 // CAUTION: It is important that only the part of the function above this
20253 // comment may fail, and modifications to the data structure (in particular
20254 // mResponse and mFiles) may only be made below. This is necessary to allow to
20255 // discard entries that were attempted to be preloaded without causing an
20256 // inconsistent state.
20257
20258 if (aInitializeResponse) {
20259 mOp.mResponse = std::remove_reference_t<
20260 decltype(populateResponseHelper.GetTypedResponse(&mOp.mResponse))>();
20261 }
20262
20263 auto& responses = populateResponseHelper.GetTypedResponse(&mOp.mResponse);
20264 auto& response = *responses.AppendElement();
20265
20266 populateResponseHelper.FillKeys(response);
20267 if constexpr (!CursorTypeTraits<CursorType>::IsKeyOnlyCursor) {
20268 populateResponseHelper.MaybeFillCloneInfo(response, &mOp.mFiles);
20269 }
20270
20271 return populateResponseHelper.GetKeySize(response) +
20272 populateResponseHelper.MaybeGetCloneInfoSize(response);
20273}
20274
20275template <IDBCursorType CursorType>
20276void CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses(
20277 mozIStorageStatement* const aStmt, const uint32_t aMaxExtraCount,
20278 const size_t aInitialResponseSize, const nsACString& aOperation,
20279 Key* const aOptPreviousSortKey) {
20280 mOp.AssertIsOnConnectionThread();
20281
20282 const auto extraCount = [&]() -> uint32_t {
20283 auto accumulatedResponseSize = aInitialResponseSize;
20284 uint32_t extraCount = 0;
20285
20286 do {
20287 bool hasResult;
20288 nsresult rv = aStmt->ExecuteStep(&hasResult);
20289 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20289)
) {
20290 // In case of a failure on one step, do not attempt to execute further
20291 // steps, but use the results already populated.
20292
20293 break;
20294 }
20295
20296 if (!hasResult) {
20297 break;
20298 }
20299
20300 // PopulateResponseFromStatement does not modify the data in case of
20301 // failure, so we can just use the results already populated, and discard
20302 // any remaining entries, and signal overall success. Probably, future
20303 // attempts to access the same entry will fail as well, but it might never
20304 // be accessed by the application.
20305 QM_TRY_INSPECT(auto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
20306 const auto& responseSize,auto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
20307 PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey),auto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
20308 extraCount, [](const auto&) {auto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
20309 // TODO: Maybe disable preloading for this cursor? The problem willauto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
20310 // probably reoccur on the next attempt, and disabling preloadingauto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
20311 // will reduce latency. However, if some problematic entry will beauto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
20312 // skipped over, after that it might be fine again. To judge this,auto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
20313 // the causes for such failures would need to be analyzed moreauto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
20314 // thoroughly. Since this seems to be rare, maybe no further actionauto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
20315 // is necessary at all.auto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
20316 })auto tryResult1502 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1502
.isErr()), 0))) { auto tryTempError = tryResult1502.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); [](const auto
&) { }(tryTempError); constexpr const auto& func __attribute__
((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal
(func, "PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, extraCount); } const auto& responseSize =
tryResult1502.inspect();
;
20317
20318 // Check accumulated size of individual responses and maybe break early.
20319 accumulatedResponseSize += responseSize;
20320 if (accumulatedResponseSize > IPC::Channel::kMaximumMessageSize / 2) {
20321 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20322 "PRELOAD: %s: Dropping entries because maximum message size is "mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20323 "exceeded: %" PRIu32 "/%zu bytes",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20324 "%.0s Dropping too large (%" PRIu32 "/%zu)",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20325 IDB_LOG_ID_STRING(mOp.mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20326 mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20327 PromiseFlatCString(aOperation).get(), extraCount,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
20328 accumulatedResponseSize)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Dropping entries because maximum message size is "
"exceeded: %" "u" "/%zu bytes", "IndexedDB %s: " "P" " " "T[%"
"l" "i" "]" " " "R[%" "l" "u" "]" ": " "%.0s Dropping too large (%"
"u" "/%zu)", mozilla::dom::indexedDB::LoggingIdString<true
>(mOp.mBackgroundChildLoggingId).get(), mOp.mTransactionLoggingSerialNumber
, mOp.mLoggingSerialNumber, TPromiseFlatString<char>(aOperation
).get(), extraCount, accumulatedResponseSize)
;
20329
20330 break;
20331 }
20332
20333 // TODO: Do not count entries skipped for unique cursors.
20334 ++extraCount;
20335 } while (true);
20336
20337 return extraCount;
20338 }();
20339
20340 IDB_LOG_MARK_PARENT_TRANSACTION_REQUEST(mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
20341 "PRELOAD: %s: Number of extra results populated: %" PRIu32 "/%" PRIu32,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
20342 "%.0s Populated (%" PRIu32 "/%" PRIu32 ")",mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
20343 IDB_LOG_ID_STRING(mOp.mBackgroundChildLoggingId),mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
20344 mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber,mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
20345 PromiseFlatCString(aOperation).get(), extraCount, aMaxExtraCount)mozilla::dom::indexedDB::LoggingHelper("IndexedDB %s: " "Parent"
" " "Transaction[%" "l" "i" "]" " " "Request[%" "l" "u" "]" ": "
"PRELOAD: %s: Number of extra results populated: %" "u" "/%"
"u", "IndexedDB %s: " "P" " " "T[%" "l" "i" "]" " " "R[%" "l"
"u" "]" ": " "%.0s Populated (%" "u" "/%" "u" ")", mozilla::
dom::indexedDB::LoggingIdString<true>(mOp.mBackgroundChildLoggingId
).get(), mOp.mTransactionLoggingSerialNumber, mOp.mLoggingSerialNumber
, TPromiseFlatString<char>(aOperation).get(), extraCount
, aMaxExtraCount)
;
20346}
20347
20348template <IDBCursorType CursorType>
20349void Cursor<CursorType>::SetOptionalKeyRange(
20350 const Maybe<SerializedKeyRange>& aOptionalKeyRange, bool* const aOpen) {
20351 MOZ_ASSERT(aOpen)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aOpen)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(aOpen))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("aOpen", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20351); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpen" ")"
); do { MOZ_CrashSequence(__null, 20351); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20352
20353 Key localeAwareRangeBound;
20354
20355 if (aOptionalKeyRange.isSome()) {
20356 const SerializedKeyRange& range = aOptionalKeyRange.ref();
20357
20358 const bool lowerBound = !IsIncreasingOrder(mDirection);
20359 *aOpen =
20360 !range.isOnly() && (lowerBound ? range.lowerOpen() : range.upperOpen());
20361
20362 const auto& bound =
20363 (range.isOnly() || lowerBound) ? range.lower() : range.upper();
20364 if constexpr (IsIndexCursor) {
20365 if (this->IsLocaleAware()) {
20366 // XXX Don't we need to propagate the error?
20367 QM_TRY_UNWRAP(localeAwareRangeBound,auto tryResult1503 = (bound.ToLocaleAwareKey(this->mLocale
)); if ((__builtin_expect(!!(tryResult1503.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1503.unwrapErr
(); mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20368, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } localeAwareRangeBound = tryResult1503.unwrap();
20368 bound.ToLocaleAwareKey(this->mLocale), QM_VOID)auto tryResult1503 = (bound.ToLocaleAwareKey(this->mLocale
)); if ((__builtin_expect(!!(tryResult1503.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1503.unwrapErr
(); mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20368, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } localeAwareRangeBound = tryResult1503.unwrap();
;
20369 } else {
20370 localeAwareRangeBound = bound;
20371 }
20372 } else {
20373 localeAwareRangeBound = bound;
20374 }
20375 } else {
20376 *aOpen = false;
20377 }
20378
20379 this->mLocaleAwareRangeBound.init(std::move(localeAwareRangeBound));
20380}
20381
20382template <IDBCursorType CursorType>
20383void ObjectStoreOpenOpHelper<CursorType>::PrepareKeyConditionClauses(
20384 const nsACString& aDirectionClause, const nsACString& aQueryStart) {
20385 const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection);
20386
20387 nsAutoCString keyRangeClause;
20388 nsAutoCString continueToKeyRangeClause;
20389 AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey,
20390 !isIncreasingOrder, false, keyRangeClause);
20391 AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey,
20392 !isIncreasingOrder, true, continueToKeyRangeClause);
20393
20394 {
20395 bool open;
20396 GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open);
20397
20398 if (GetOptionalKeyRange().isSome() &&
20399 !GetCursor().mLocaleAwareRangeBound->IsUnset()) {
20400 AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound,
20401 isIncreasingOrder, !open, keyRangeClause);
20402 AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound,
20403 isIncreasingOrder, !open, continueToKeyRangeClause);
20404 }
20405 }
20406
20407 const nsAutoCString suffix =
20408 aDirectionClause + kOpenLimit + ":"_ns + kStmtParamNameLimit;
20409
20410 GetCursor().mContinueQueries.init(
20411 aQueryStart + keyRangeClause + suffix,
20412 aQueryStart + continueToKeyRangeClause + suffix);
20413}
20414
20415template <IDBCursorType CursorType>
20416void IndexOpenOpHelper<CursorType>::PrepareIndexKeyConditionClause(
20417 const nsACString& aDirectionClause,
20418 const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart) {
20419 const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection);
20420
20421 {
20422 bool open;
20423 GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open);
20424 if (GetOptionalKeyRange().isSome() &&
20425 !GetCursor().mLocaleAwareRangeBound->IsUnset()) {
20426 AppendConditionClause(kColumnNameAliasSortKey, kStmtParamNameRangeBound,
20427 isIncreasingOrder, !open, aQueryStart);
20428 }
20429 }
20430
20431 nsCString continueQuery, continueToQuery, continuePrimaryKeyQuery;
20432
20433 continueToQuery =
20434 aQueryStart + " AND "_ns +
20435 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterOrEquals
20436 : ComparisonOperator::LessOrEquals,
20437 kStmtParamNameCurrentKey);
20438
20439 switch (GetCursor().mDirection) {
20440 case IDBCursorDirection::Next:
20441 case IDBCursorDirection::Prev:
20442 continueQuery =
20443 aQueryStart + " AND "_ns +
20444 GetSortKeyClause(isIncreasingOrder
20445 ? ComparisonOperator::GreaterOrEquals
20446 : ComparisonOperator::LessOrEquals,
20447 kStmtParamNameCurrentKey) +
20448 " AND ( "_ns +
20449 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan
20450 : ComparisonOperator::LessThan,
20451 kStmtParamNameCurrentKey) +
20452 " OR "_ns +
20453 GetKeyClause(aObjectDataKeyPrefix + "object_data_key"_ns,
20454 isIncreasingOrder ? ComparisonOperator::GreaterThan
20455 : ComparisonOperator::LessThan,
20456 kStmtParamNameObjectStorePosition) +
20457 " ) "_ns;
20458
20459 continuePrimaryKeyQuery =
20460 aQueryStart +
20461 " AND ("
20462 "("_ns +
20463 GetSortKeyClause(ComparisonOperator::Equals,
20464 kStmtParamNameCurrentKey) +
20465 " AND "_ns +
20466 GetKeyClause(aObjectDataKeyPrefix + "object_data_key"_ns,
20467 isIncreasingOrder ? ComparisonOperator::GreaterOrEquals
20468 : ComparisonOperator::LessOrEquals,
20469 kStmtParamNameObjectStorePosition) +
20470 ") OR "_ns +
20471 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan
20472 : ComparisonOperator::LessThan,
20473 kStmtParamNameCurrentKey) +
20474 ")"_ns;
20475 break;
20476
20477 case IDBCursorDirection::Nextunique:
20478 case IDBCursorDirection::Prevunique:
20479 continueQuery =
20480 aQueryStart + " AND "_ns +
20481 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan
20482 : ComparisonOperator::LessThan,
20483 kStmtParamNameCurrentKey);
20484 break;
20485
20486 default:
20487 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 20487); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20488 }
20489
20490 const nsAutoCString suffix =
20491 aDirectionClause + kOpenLimit + ":"_ns + kStmtParamNameLimit;
20492 continueQuery += suffix;
20493 continueToQuery += suffix;
20494 if (!continuePrimaryKeyQuery.IsEmpty()) {
20495 continuePrimaryKeyQuery += suffix;
20496 }
20497
20498 GetCursor().mContinueQueries.init(std::move(continueQuery),
20499 std::move(continueToQuery),
20500 std::move(continuePrimaryKeyQuery));
20501}
20502
20503template <IDBCursorType CursorType>
20504nsresult CommonOpenOpHelper<CursorType>::ProcessStatementSteps(
20505 mozIStorageStatement* const aStmt) {
20506 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1504 = (::mozilla::ToResultInvokeMember( (aStmt
), &::mozilla::detail::DerefedType<decltype(aStmt)>
::ExecuteStep)); if ((__builtin_expect(!!(tryResult1504.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep)"
, tryResult1504.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20507, mozilla::dom::quota::Severity::Error); return tryResult1504
.propagateErr(); } const bool& hasResult = tryResult1504.
inspect();
20507 MOZ_TO_RESULT_INVOKE_MEMBER(aStmt, ExecuteStep))auto tryResult1504 = (::mozilla::ToResultInvokeMember( (aStmt
), &::mozilla::detail::DerefedType<decltype(aStmt)>
::ExecuteStep)); if ((__builtin_expect(!!(tryResult1504.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep)"
, tryResult1504.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20507, mozilla::dom::quota::Severity::Error); return tryResult1504
.propagateErr(); } const bool& hasResult = tryResult1504.
inspect();
;
20508
20509 if (!hasResult) {
20510 SetResponse(void_t{});
20511 return NS_OK;
20512 }
20513
20514 Key previousKey;
20515 auto* optPreviousKey =
20516 IsUnique(GetCursor().mDirection) ? &previousKey : nullptr;
20517
20518 QM_TRY_INSPECT(const auto& responseSize,auto tryResult1505 = (PopulateResponseFromStatement(aStmt, true
, optPreviousKey)); if ((__builtin_expect(!!(tryResult1505.isErr
()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)"
, tryResult1505.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20519, mozilla::dom::quota::Severity::Error); return tryResult1505
.propagateErr(); } const auto& responseSize = tryResult1505
.inspect();
20519 PopulateResponseFromStatement(aStmt, true, optPreviousKey))auto tryResult1505 = (PopulateResponseFromStatement(aStmt, true
, optPreviousKey)); if ((__builtin_expect(!!(tryResult1505.isErr
()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)"
, tryResult1505.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20519, mozilla::dom::quota::Severity::Error); return tryResult1505
.propagateErr(); } const auto& responseSize = tryResult1505
.inspect();
;
20520
20521 // The degree to which extra responses on OpenOp can actually be used depends
20522 // on the parameters of subsequent ContinueOp operations, see also comment in
20523 // ContinueOp::DoDatabaseWork.
20524 //
20525 // TODO: We should somehow evaluate the effects of this. Maybe use a smaller
20526 // extra count than for ContinueOp?
20527 PopulateExtraResponses(aStmt, GetCursor().mMaxExtraCount, responseSize,
20528 "OpenOp"_ns, optPreviousKey);
20529
20530 return NS_OK;
20531}
20532
20533nsresult OpenOpHelper<IDBCursorType::ObjectStore>::DoDatabaseWork(
20534 DatabaseConnection* aConnection) {
20535 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20535); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20535); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20536 aConnection->AssertIsOnConnectionThread();
20537 MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20537
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 20537); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20538
20539 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20539( "Cursor::OpenOp::DoObjectStoreDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20540
20541 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20542
20543 const nsCString queryStart = "SELECT "_ns + kColumnNameKey +
20544 ", file_ids, data "
20545 "FROM object_data "
20546 "WHERE object_store_id = :"_ns +
20547 kStmtParamNameId;
20548
20549 const auto keyRangeClause =
20550 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20551 GetOptionalKeyRange(), kColumnNameKey);
20552
20553 const auto& directionClause = MakeDirectionClause(GetCursor().mDirection);
20554
20555 // Note: Changing the number or order of SELECT columns in the query will
20556 // require changes to CursorOpBase::PopulateResponseFromStatement.
20557 const nsCString firstQuery = queryStart + keyRangeClause + directionClause +
20558 kOpenLimit +
20559 IntToCString(1 + GetCursor().mMaxExtraCount);
20560
20561 QM_TRY_INSPECT(const auto& stmt,auto tryResult1506 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1506.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1506.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20562, mozilla::dom::quota::Severity::Error); return tryResult1506
.propagateErr(); } const auto& stmt = tryResult1506.inspect
();
20562 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1506 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1506.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1506.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20562, mozilla::dom::quota::Severity::Error); return tryResult1506
.propagateErr(); } const auto& stmt = tryResult1506.inspect
();
;
20563
20564 QM_TRY(MOZ_TO_RESULT({auto tryResult1507 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1507)::ok_type>); if ((__builtin_expect
(!!(tryResult1507.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1507.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20565, mozilla::dom::quota::Severity::Error); return tryResult1507
.propagateErr(); }}
20565 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1507 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1507)::ok_type>); if ((__builtin_expect
(!!(tryResult1507.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1507.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20565, mozilla::dom::quota::Severity::Error); return tryResult1507
.propagateErr(); }}
;
20566
20567 if (usingKeyRange) {
20568 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1508 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1508)::ok_type>
); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20569, mozilla::dom::quota::Severity::Error); return tryResult1508
.propagateErr(); }}
20569 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1508 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1508)::ok_type>
); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20569, mozilla::dom::quota::Severity::Error); return tryResult1508
.propagateErr(); }}
;
20570 }
20571
20572 // Now we need to make the query for ContinueOp.
20573 PrepareKeyConditionClauses(directionClause, queryStart);
20574
20575 return ProcessStatementSteps(&*stmt);
20576}
20577
20578nsresult OpenOpHelper<IDBCursorType::ObjectStoreKey>::DoDatabaseWork(
20579 DatabaseConnection* aConnection) {
20580 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20580); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20580); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20581 aConnection->AssertIsOnConnectionThread();
20582 MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20582
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 20582); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20583
20584 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20584( "Cursor::OpenOp::DoObjectStoreKeyDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20585
20586 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20587
20588 const nsCString queryStart = "SELECT "_ns + kColumnNameKey +
20589 " FROM object_data "
20590 "WHERE object_store_id = :"_ns +
20591 kStmtParamNameId;
20592
20593 const auto keyRangeClause =
20594 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20595 GetOptionalKeyRange(), kColumnNameKey);
20596
20597 const auto& directionClause = MakeDirectionClause(GetCursor().mDirection);
20598
20599 // Note: Changing the number or order of SELECT columns in the query will
20600 // require changes to CursorOpBase::PopulateResponseFromStatement.
20601 const nsCString firstQuery =
20602 queryStart + keyRangeClause + directionClause + kOpenLimit + "1"_ns;
20603
20604 QM_TRY_INSPECT(const auto& stmt,auto tryResult1509 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20605, mozilla::dom::quota::Severity::Error); return tryResult1509
.propagateErr(); } const auto& stmt = tryResult1509.inspect
();
20605 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1509 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20605, mozilla::dom::quota::Severity::Error); return tryResult1509
.propagateErr(); } const auto& stmt = tryResult1509.inspect
();
;
20606
20607 QM_TRY(MOZ_TO_RESULT({auto tryResult1510 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20608, mozilla::dom::quota::Severity::Error); return tryResult1510
.propagateErr(); }}
20608 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1510 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect
(!!(tryResult1510.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20608, mozilla::dom::quota::Severity::Error); return tryResult1510
.propagateErr(); }}
;
20609
20610 if (usingKeyRange) {
20611 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1511 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1511)::ok_type>
); if ((__builtin_expect(!!(tryResult1511.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20612, mozilla::dom::quota::Severity::Error); return tryResult1511
.propagateErr(); }}
20612 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1511 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1511)::ok_type>
); if ((__builtin_expect(!!(tryResult1511.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20612, mozilla::dom::quota::Severity::Error); return tryResult1511
.propagateErr(); }}
;
20613 }
20614
20615 // Now we need to make the query to get the next match.
20616 PrepareKeyConditionClauses(directionClause, queryStart);
20617
20618 return ProcessStatementSteps(&*stmt);
20619}
20620
20621nsresult OpenOpHelper<IDBCursorType::Index>::DoDatabaseWork(
20622 DatabaseConnection* aConnection) {
20623 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20623); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20623); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20624 aConnection->AssertIsOnConnectionThread();
20625 MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20625
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 20625); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20626 MOZ_ASSERT(GetCursor().mIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mIndexId))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId"
")"); do { MOZ_CrashSequence(__null, 20626); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20627
20628 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20628( "Cursor::OpenOp::DoIndexDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20629
20630 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20631
20632 const auto indexTable =
20633 GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns;
20634
20635 // The result of MakeColumnPairSelectionList is stored in a local variable,
20636 // since inlining it into the next statement causes a crash on some Mac OS X
20637 // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110).
20638 const auto columnPairSelectionList = MakeColumnPairSelectionList(
20639 "index_table.value"_ns, "index_table.value_locale"_ns,
20640 kColumnNameAliasSortKey, GetCursor().IsLocaleAware());
20641 const nsCString sortColumnAlias =
20642 "SELECT "_ns + columnPairSelectionList + ", "_ns;
20643
20644 const nsAutoCString queryStart = sortColumnAlias +
20645 "index_table.object_data_key, "
20646 "object_data.file_ids, "
20647 "object_data.data "
20648 "FROM "_ns +
20649 indexTable +
20650 " AS index_table "
20651 "JOIN object_data "
20652 "ON index_table.object_store_id = "
20653 "object_data.object_store_id "
20654 "AND index_table.object_data_key = "
20655 "object_data.key "
20656 "WHERE index_table.index_id = :"_ns +
20657 kStmtParamNameId;
20658
20659 const auto keyRangeClause =
20660 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20661 GetOptionalKeyRange(), kColumnNameAliasSortKey);
20662
20663 nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey;
20664
20665 switch (GetCursor().mDirection) {
20666 case IDBCursorDirection::Next:
20667 case IDBCursorDirection::Nextunique:
20668 directionClause.AppendLiteral(" ASC, index_table.object_data_key ASC");
20669 break;
20670
20671 case IDBCursorDirection::Prev:
20672 directionClause.AppendLiteral(" DESC, index_table.object_data_key DESC");
20673 break;
20674
20675 case IDBCursorDirection::Prevunique:
20676 directionClause.AppendLiteral(" DESC, index_table.object_data_key ASC");
20677 break;
20678
20679 default:
20680 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20680
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 20680); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20681 }
20682
20683 // Note: Changing the number or order of SELECT columns in the query will
20684 // require changes to CursorOpBase::PopulateResponseFromStatement.
20685 const nsCString firstQuery = queryStart + keyRangeClause + directionClause +
20686 kOpenLimit +
20687 IntToCString(1 + GetCursor().mMaxExtraCount);
20688
20689 QM_TRY_INSPECT(const auto& stmt,auto tryResult1512 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1512.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1512.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20690, mozilla::dom::quota::Severity::Error); return tryResult1512
.propagateErr(); } const auto& stmt = tryResult1512.inspect
();
20690 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1512 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1512.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1512.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20690, mozilla::dom::quota::Severity::Error); return tryResult1512
.propagateErr(); } const auto& stmt = tryResult1512.inspect
();
;
20691
20692 QM_TRY(MOZ_TO_RESULT({auto tryResult1513 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1513)::ok_type>); if ((__builtin_expect
(!!(tryResult1513.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1513.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20693, mozilla::dom::quota::Severity::Error); return tryResult1513
.propagateErr(); }}
20693 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1513 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1513)::ok_type>); if ((__builtin_expect
(!!(tryResult1513.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1513.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20693, mozilla::dom::quota::Severity::Error); return tryResult1513
.propagateErr(); }}
;
20694
20695 if (usingKeyRange) {
20696 if (GetCursor().IsLocaleAware()) {
20697 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1514 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1514
)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20698, mozilla::dom::quota::Severity::Error); return tryResult1514
.propagateErr(); }}
20698 GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1514 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1514
)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20698, mozilla::dom::quota::Severity::Error); return tryResult1514
.propagateErr(); }}
;
20699 } else {
20700 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1515 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1515)::ok_type>
); if ((__builtin_expect(!!(tryResult1515.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20701, mozilla::dom::quota::Severity::Error); return tryResult1515
.propagateErr(); }}
20701 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1515 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1515)::ok_type>
); if ((__builtin_expect(!!(tryResult1515.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20701, mozilla::dom::quota::Severity::Error); return tryResult1515
.propagateErr(); }}
;
20702 }
20703 }
20704
20705 // TODO: At least the last two statements are almost the same in all
20706 // DoDatabaseWork variants, consider removing this duplication.
20707
20708 // Now we need to make the query to get the next match.
20709 PrepareKeyConditionClauses(directionClause, std::move(queryStart));
20710
20711 return ProcessStatementSteps(&*stmt);
20712}
20713
20714nsresult OpenOpHelper<IDBCursorType::IndexKey>::DoDatabaseWork(
20715 DatabaseConnection* aConnection) {
20716 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20716); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20716); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20717 aConnection->AssertIsOnConnectionThread();
20718 MOZ_ASSERT(GetCursor().mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mObjectStoreId))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20718
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 20718); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20719 MOZ_ASSERT(GetCursor().mIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(GetCursor().mIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(GetCursor().mIndexId))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("GetCursor().mIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20719
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId"
")"); do { MOZ_CrashSequence(__null, 20719); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20720
20721 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20721( "Cursor::OpenOp::DoIndexKeyDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20722
20723 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20724
20725 const auto table =
20726 GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns;
20727
20728 // The result of MakeColumnPairSelectionList is stored in a local variable,
20729 // since inlining it into the next statement causes a crash on some Mac OS X
20730 // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110).
20731 const auto columnPairSelectionList = MakeColumnPairSelectionList(
20732 "value"_ns, "value_locale"_ns, kColumnNameAliasSortKey,
20733 GetCursor().IsLocaleAware());
20734 const nsCString sortColumnAlias =
20735 "SELECT "_ns + columnPairSelectionList + ", "_ns;
20736
20737 const nsAutoCString queryStart = sortColumnAlias +
20738 "object_data_key "
20739 " FROM "_ns +
20740 table + " WHERE index_id = :"_ns +
20741 kStmtParamNameId;
20742
20743 const auto keyRangeClause =
20744 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20745 GetOptionalKeyRange(), kColumnNameAliasSortKey);
20746
20747 nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey;
20748
20749 switch (GetCursor().mDirection) {
20750 case IDBCursorDirection::Next:
20751 case IDBCursorDirection::Nextunique:
20752 directionClause.AppendLiteral(" ASC, object_data_key ASC");
20753 break;
20754
20755 case IDBCursorDirection::Prev:
20756 directionClause.AppendLiteral(" DESC, object_data_key DESC");
20757 break;
20758
20759 case IDBCursorDirection::Prevunique:
20760 directionClause.AppendLiteral(" DESC, object_data_key ASC");
20761 break;
20762
20763 default:
20764 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20764
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 20764); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20765 }
20766
20767 // Note: Changing the number or order of SELECT columns in the query will
20768 // require changes to CursorOpBase::PopulateResponseFromStatement.
20769 const nsCString firstQuery =
20770 queryStart + keyRangeClause + directionClause + kOpenLimit + "1"_ns;
20771
20772 QM_TRY_INSPECT(const auto& stmt,auto tryResult1516 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1516.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1516.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20773, mozilla::dom::quota::Severity::Error); return tryResult1516
.propagateErr(); } const auto& stmt = tryResult1516.inspect
();
20773 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1516 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1516.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1516.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20773, mozilla::dom::quota::Severity::Error); return tryResult1516
.propagateErr(); } const auto& stmt = tryResult1516.inspect
();
;
20774
20775 QM_TRY(MOZ_TO_RESULT({auto tryResult1517 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1517)::ok_type>); if ((__builtin_expect
(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20776, mozilla::dom::quota::Severity::Error); return tryResult1517
.propagateErr(); }}
20776 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1517 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1517)::ok_type>); if ((__builtin_expect
(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20776, mozilla::dom::quota::Severity::Error); return tryResult1517
.propagateErr(); }}
;
20777
20778 if (usingKeyRange) {
20779 if (GetCursor().IsLocaleAware()) {
20780 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1518 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1518
)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20781, mozilla::dom::quota::Severity::Error); return tryResult1518
.propagateErr(); }}
20781 GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1518 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1518
)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20781, mozilla::dom::quota::Severity::Error); return tryResult1518
.propagateErr(); }}
;
20782 } else {
20783 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1519 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1519)::ok_type>
); if ((__builtin_expect(!!(tryResult1519.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20784, mozilla::dom::quota::Severity::Error); return tryResult1519
.propagateErr(); }}
20784 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1519 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1519)::ok_type>
); if ((__builtin_expect(!!(tryResult1519.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20784, mozilla::dom::quota::Severity::Error); return tryResult1519
.propagateErr(); }}
;
20785 }
20786 }
20787
20788 // Now we need to make the query to get the next match.
20789 PrepareKeyConditionClauses(directionClause, std::move(queryStart));
20790
20791 return ProcessStatementSteps(&*stmt);
20792}
20793
20794template <IDBCursorType CursorType>
20795nsresult Cursor<CursorType>::OpenOp::DoDatabaseWork(
20796 DatabaseConnection* aConnection) {
20797 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20797); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20797); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20798 aConnection->AssertIsOnConnectionThread();
20799 MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20799); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { MOZ_CrashSequence(__null, 20799); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20800 MOZ_ASSERT(!mCursor->mContinueQueries)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCursor->mContinueQueries)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mCursor->mContinueQueries
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"!mCursor->mContinueQueries", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20800); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries"
")"); do { MOZ_CrashSequence(__null, 20800); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20801
20802 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20802( "Cursor::OpenOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20803
20804 auto helper = OpenOpHelper<CursorType>{*this};
20805 const auto rv = helper.DoDatabaseWork(aConnection);
20806 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20806)
) {
20807 return rv;
20808 }
20809
20810 return NS_OK;
20811}
20812
20813template <IDBCursorType CursorType>
20814nsresult Cursor<CursorType>::CursorOpBase::SendSuccessResult() {
20815 AssertIsOnOwningThread();
20816 MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { MOZ_CrashSequence(__null, 20816); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20817 MOZ_ASSERT(mCursor->mCurrentlyRunningOp == this)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mCurrentlyRunningOp == this)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mCursor->mCurrentlyRunningOp == this))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor->mCurrentlyRunningOp == this"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20817
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this"
")"); do { MOZ_CrashSequence(__null, 20817); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20818 MOZ_ASSERT(mResponse.type() != CursorResponse::T__None)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mResponse.type() != CursorResponse::T__None)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mResponse.type() != CursorResponse::T__None))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("mResponse.type() != CursorResponse::T__None"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20818
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.type() != CursorResponse::T__None"
")"); do { MOZ_CrashSequence(__null, 20818); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20819
20820 if (IsActorDestroyed()) {
20821 return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
20822 }
20823
20824 mCursor->SendResponseInternal(mResponse, mFiles);
20825
20826#ifdef DEBUG1
20827 mResponseSent = true;
20828#endif
20829 return NS_OK;
20830}
20831
20832template <IDBCursorType CursorType>
20833nsresult Cursor<CursorType>::ContinueOp::DoDatabaseWork(
20834 DatabaseConnection* aConnection) {
20835 MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aConnection)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20835); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { MOZ_CrashSequence(__null, 20835); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20836 aConnection->AssertIsOnConnectionThread();
20837 MOZ_ASSERT(mCursor)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mCursor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { MOZ_CrashSequence(__null, 20837); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20838 MOZ_ASSERT(mCursor->mObjectStoreId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mObjectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor->mObjectStoreId))
), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mObjectStoreId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20838
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mObjectStoreId"
")"); do { MOZ_CrashSequence(__null, 20838); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20839 MOZ_ASSERT(!mCursor->mContinueQueries->mContinueQuery.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCursor->mContinueQueries->mContinueQuery.IsEmpty
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinueQuery.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinueQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20839
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 20839); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20840 MOZ_ASSERT(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinueToQuery.IsEmpty
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinueToQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20840
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueToQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 20840); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20841 MOZ_ASSERT(!mCurrentPosition.mKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCurrentPosition.mKey.IsUnset())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mCurrentPosition.mKey.IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCurrentPosition.mKey.IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20841); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 20841); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20842
20843 if constexpr (IsIndexCursor) {
20844 MOZ_ASSERT_IF(do { if (mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(!mCursor
->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery
.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20847
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 20847); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20845 mCursor->mDirection == IDBCursorDirection::Next ||do { if (mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(!mCursor
->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery
.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20847
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 20847); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20846 mCursor->mDirection == IDBCursorDirection::Prev,do { if (mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(!mCursor
->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery
.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20847
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 20847); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20847 !mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())do { if (mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev) { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(!mCursor
->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty())
>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mCursor->mContinueQueries->mContinuePrimaryKeyQuery
.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20847
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { MOZ_CrashSequence(__null, 20847); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20848 MOZ_ASSERT(mCursor->mIndexId)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mIndexId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mCursor->mIndexId))), 0))
) { do { } while (false); MOZ_ReportAssertionFailure("mCursor->mIndexId"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20848
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mIndexId"
")"); do { MOZ_CrashSequence(__null, 20848); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20849 MOZ_ASSERT(!mCurrentPosition.mObjectStoreKey.IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mCurrentPosition.mObjectStoreKey.IsUnset())>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(!mCurrentPosition.mObjectStoreKey.IsUnset()))), 0))) { do {
} while (false); MOZ_ReportAssertionFailure("!mCurrentPosition.mObjectStoreKey.IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20849
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mObjectStoreKey.IsUnset()"
")"); do { MOZ_CrashSequence(__null, 20849); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20850 }
20851
20852 AUTO_PROFILER_LABEL("Cursor::ContinueOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20852( "Cursor::ContinueOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20853
20854 // We need to pick a query based on whether or not a key was passed to the
20855 // continue function. If not we'll grab the next item in the database that
20856 // is greater than (or less than, if we're running a PREV cursor) the current
20857 // key. If a key was passed we'll grab the next item in the database that is
20858 // greater than (or less than, if we're running a PREV cursor) or equal to the
20859 // key that was specified.
20860 //
20861 // TODO: The description above is not complete, it does not take account of
20862 // ContinuePrimaryKey nor Advance.
20863 //
20864 // Note: Changing the number or order of SELECT columns in the query will
20865 // require changes to CursorOpBase::PopulateResponseFromStatement.
20866
20867 const uint32_t advanceCount =
20868 mParams.type() == CursorRequestParams::TAdvanceParams
20869 ? mParams.get_AdvanceParams().count()
20870 : 1;
20871 MOZ_ASSERT(advanceCount > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(advanceCount > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(advanceCount > 0))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("advanceCount > 0"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20871
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "advanceCount > 0"
")"); do { MOZ_CrashSequence(__null, 20871); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20872
20873 bool hasContinueKey = false;
20874 bool hasContinuePrimaryKey = false;
20875
20876 auto explicitContinueKey = Key{};
20877
20878 switch (mParams.type()) {
20879 case CursorRequestParams::TContinueParams:
20880 if (!mParams.get_ContinueParams().key().IsUnset()) {
20881 hasContinueKey = true;
20882 explicitContinueKey = mParams.get_ContinueParams().key();
20883 }
20884 break;
20885 case CursorRequestParams::TContinuePrimaryKeyParams:
20886 MOZ_ASSERT(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset
())>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(!mParams.get_ContinuePrimaryKeyParams().key().IsUnset
()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mParams.get_ContinuePrimaryKeyParams().key().IsUnset()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20886); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().key().IsUnset()"
")"); do { MOZ_CrashSequence(__null, 20886); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20887 MOZ_ASSERT(do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mParams.get_ContinuePrimaryKeyParams().primaryKey()
.IsUnset())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!mParams.get_ContinuePrimaryKeyParams
().primaryKey().IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20888
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
")"); do { MOZ_CrashSequence(__null, 20888); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20888 !mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mParams.get_ContinuePrimaryKeyParams().primaryKey()
.IsUnset())>::isValid, "invalid assertion condition"); if (
(__builtin_expect(!!(!(!!(!mParams.get_ContinuePrimaryKeyParams
().primaryKey().IsUnset()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20888
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
")"); do { MOZ_CrashSequence(__null, 20888); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20889 MOZ_ASSERT(mCursor->mDirection == IDBCursorDirection::Next ||do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mCursor->mDirection == IDBCursorDirection::Next || mCursor
->mDirection == IDBCursorDirection::Prev))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20890
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
")"); do { MOZ_CrashSequence(__null, 20890); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20890 mCursor->mDirection == IDBCursorDirection::Prev)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mCursor->mDirection == IDBCursorDirection::Next ||
mCursor->mDirection == IDBCursorDirection::Prev)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(mCursor->mDirection == IDBCursorDirection::Next || mCursor
->mDirection == IDBCursorDirection::Prev))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20890
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
")"); do { MOZ_CrashSequence(__null, 20890); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20891 hasContinueKey = true;
20892 hasContinuePrimaryKey = true;
20893 explicitContinueKey = mParams.get_ContinuePrimaryKeyParams().key();
20894 break;
20895 case CursorRequestParams::TAdvanceParams:
20896 break;
20897 default:
20898 MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20898
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { MOZ_CrashSequence(__null, 20898); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20899 }
20900
20901 // TODO: Whether it makes sense to preload depends on the kind of the
20902 // subsequent operations, not of the current operation. We could assume that
20903 // the subsequent operations are:
20904 // - the same as the current operation (with the same parameter values)
20905 // - as above, except for Advance, where we assume the count will be 1 on the
20906 // next call
20907 // - basic operations (Advance with count 1 or Continue-without-key)
20908 //
20909 // For now, we implement the second option for now (which correspond to
20910 // !hasContinueKey).
20911 //
20912 // Based on that, we could in both cases either preload for any assumed
20913 // subsequent operations, or only for the basic operations. For now, we
20914 // preload only for an assumed basic operation. Other operations would require
20915 // more work on the client side for invalidation, and may not make any sense
20916 // at all.
20917 const uint32_t maxExtraCount = hasContinueKey ? 0 : mCursor->mMaxExtraCount;
20918
20919 QM_TRY_INSPECT(const auto& stmt,auto tryResult1520 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1520.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20922, mozilla::dom::quota::Severity::Error); return tryResult1520
.propagateErr(); } const auto& stmt = tryResult1520.inspect
();
20920 aConnection->BorrowCachedStatement(auto tryResult1520 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1520.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20922, mozilla::dom::quota::Severity::Error); return tryResult1520
.propagateErr(); } const auto& stmt = tryResult1520.inspect
();
20921 mCursor->mContinueQueries->GetContinueQuery(auto tryResult1520 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1520.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20922, mozilla::dom::quota::Severity::Error); return tryResult1520
.propagateErr(); } const auto& stmt = tryResult1520.inspect
();
20922 hasContinueKey, hasContinuePrimaryKey)))auto tryResult1520 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1520.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1520.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20922, mozilla::dom::quota::Severity::Error); return tryResult1520
.propagateErr(); } const auto& stmt = tryResult1520.inspect
();
;
20923
20924 QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByName({auto tryResult1521 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1521)::ok_type>); if ((__builtin_expect
(!!(tryResult1521.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1521.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20926, mozilla::dom::quota::Severity::Error); return tryResult1521
.propagateErr(); }}
20925 kStmtParamNameLimit,{auto tryResult1521 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1521)::ok_type>); if ((__builtin_expect
(!!(tryResult1521.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1521.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20926, mozilla::dom::quota::Severity::Error); return tryResult1521
.propagateErr(); }}
20926 IntToCString(advanceCount + mCursor->mMaxExtraCount)))){auto tryResult1521 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1521)::ok_type>); if ((__builtin_expect
(!!(tryResult1521.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1521.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20926, mozilla::dom::quota::Severity::Error); return tryResult1521
.propagateErr(); }}
;
20927
20928 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))){auto tryResult1522 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, mCursor->Id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1522)::ok_type>); if ((__builtin_expect
(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))"
, tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20928, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); }}
;
20929
20930 // Bind current key.
20931 const auto& continueKey =
20932 hasContinueKey ? explicitContinueKey
20933 : mCurrentPosition.GetSortKey(mCursor->IsLocaleAware());
20934 QM_TRY(MOZ_TO_RESULT({auto tryResult1523 = (ToResult(continueKey.BindToStatement(&
*stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))"
, tryResult1523.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20935, mozilla::dom::quota::Severity::Error); return tryResult1523
.propagateErr(); }}
20935 continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))){auto tryResult1523 = (ToResult(continueKey.BindToStatement(&
*stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect
(!!(tryResult1523.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))"
, tryResult1523.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20935, mozilla::dom::quota::Severity::Error); return tryResult1523
.propagateErr(); }}
;
20936
20937 // Bind range bound if it is specified.
20938 if (!mCursor->mLocaleAwareRangeBound->IsUnset()) {
20939 QM_TRY(MOZ_TO_RESULT(mCursor->mLocaleAwareRangeBound->BindToStatement({auto tryResult1524 = (ToResult(mCursor->mLocaleAwareRangeBound
->BindToStatement( &*stmt, kStmtParamNameRangeBound)))
; static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20940, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
20940 &*stmt, kStmtParamNameRangeBound))){auto tryResult1524 = (ToResult(mCursor->mLocaleAwareRangeBound
->BindToStatement( &*stmt, kStmtParamNameRangeBound)))
; static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))"
, tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20940, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
;
20941 }
20942
20943 // Bind object store position if duplicates are allowed and we're not
20944 // continuing to a specific key.
20945 if constexpr (IsIndexCursor) {
20946 if (!hasContinueKey && (mCursor->mDirection == IDBCursorDirection::Next ||
20947 mCursor->mDirection == IDBCursorDirection::Prev)) {
20948 QM_TRY(MOZ_TO_RESULT(mCurrentPosition.mObjectStoreKey.BindToStatement({auto tryResult1525 = (ToResult(mCurrentPosition.mObjectStoreKey
.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1525
)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20949, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); }}
20949 &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1525 = (ToResult(mCurrentPosition.mObjectStoreKey
.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1525
)::ok_type>); if ((__builtin_expect(!!(tryResult1525.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20949, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); }}
;
20950 } else if (hasContinuePrimaryKey) {
20951 QM_TRY(MOZ_TO_RESULT({auto tryResult1526 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1526
)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20953, mozilla::dom::quota::Severity::Error); return tryResult1526
.propagateErr(); }}
20952 mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement({auto tryResult1526 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1526
)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20953, mozilla::dom::quota::Severity::Error); return tryResult1526
.propagateErr(); }}
20953 &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1526 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1526
)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1526.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20953, mozilla::dom::quota::Severity::Error); return tryResult1526
.propagateErr(); }}
;
20954 }
20955 }
20956
20957 // TODO: Why do we query the records we don't need and skip them here, rather
20958 // than using a OFFSET clause in the query?
20959 for (uint32_t index = 0; index < advanceCount; index++) {
20960 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1527 = (::mozilla::ToResultInvokeMember( (&
*stmt), &::mozilla::detail::DerefedType<decltype(&
*stmt)>::ExecuteStep)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep)"
, tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20961, mozilla::dom::quota::Severity::Error); return tryResult1527
.propagateErr(); } const bool& hasResult = tryResult1527.
inspect();
20961 MOZ_TO_RESULT_INVOKE_MEMBER(&*stmt, ExecuteStep))auto tryResult1527 = (::mozilla::ToResultInvokeMember( (&
*stmt), &::mozilla::detail::DerefedType<decltype(&
*stmt)>::ExecuteStep)); if ((__builtin_expect(!!(tryResult1527
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep)"
, tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20961, mozilla::dom::quota::Severity::Error); return tryResult1527
.propagateErr(); } const bool& hasResult = tryResult1527.
inspect();
;
20962
20963 if (!hasResult) {
20964 mResponse = void_t();
20965 return NS_OK;
20966 }
20967 }
20968
20969 Key previousKey;
20970 auto* const optPreviousKey =
20971 IsUnique(mCursor->mDirection) ? &previousKey : nullptr;
20972
20973 auto helper = CursorOpBaseHelperBase<CursorType>{*this};
20974 QM_TRY_INSPECT(const auto& responseSize, helper.PopulateResponseFromStatement(auto tryResult1528 = (helper.PopulateResponseFromStatement( &
*stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1528
.isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)"
, tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20975, mozilla::dom::quota::Severity::Error); return tryResult1528
.propagateErr(); } const auto& responseSize = tryResult1528
.inspect();
20975 &*stmt, true, optPreviousKey))auto tryResult1528 = (helper.PopulateResponseFromStatement( &
*stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1528
.isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)"
, tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 20975, mozilla::dom::quota::Severity::Error); return tryResult1528
.propagateErr(); } const auto& responseSize = tryResult1528
.inspect();
;
20976
20977 helper.PopulateExtraResponses(&*stmt, maxExtraCount, responseSize,
20978 "ContinueOp"_ns, optPreviousKey);
20979
20980 return NS_OK;
20981}
20982
20983Utils::Utils()
20984#ifdef DEBUG1
20985 : mActorDestroyed(false)
20986#endif
20987{
20988 AssertIsOnBackgroundThread();
20989}
20990
20991Utils::~Utils() { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20991
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"
); do { MOZ_CrashSequence(__null, 20991); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
20992
20993void Utils::ActorDestroy(ActorDestroyReason aWhy) {
20994 AssertIsOnBackgroundThread();
20995 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20995
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { MOZ_CrashSequence(__null, 20995); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20996
20997#ifdef DEBUG1
20998 mActorDestroyed = true;
20999#endif
21000}
21001
21002mozilla::ipc::IPCResult Utils::RecvDeleteMe() {
21003 AssertIsOnBackgroundThread();
21004 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21004
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { MOZ_CrashSequence(__null, 21004); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21005
21006 QM_WARNONLY_TRY(OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))){auto tryResult1529 = (OkIf(PBackgroundIndexedDBUtilsParent::
Send__delete__(this))); static_assert(std::is_empty_v<typename
decltype(tryResult1529)::ok_type>); if ((__builtin_expect
(!!(tryResult1529.isErr()), 0))) { mozilla::dom::quota::HandleError
("OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))"
, tryResult1529.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21006, mozilla::dom::quota::Severity::Warning); }}
;
21007
21008 return IPC_OK()mozilla::ipc::IPCResult::Ok();
21009}
21010
21011mozilla::ipc::IPCResult Utils::RecvGetFileReferences(
21012 const PersistenceType& aPersistenceType, const nsACString& aOrigin,
21013 const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt,
21014 int32_t* aDBRefCnt, bool* aResult) {
21015 AssertIsOnBackgroundThread();
21016 MOZ_ASSERT(aRefCnt)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aRefCnt)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aRefCnt))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21016); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRefCnt" ")"
); do { MOZ_CrashSequence(__null, 21016); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21017 MOZ_ASSERT(aDBRefCnt)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aDBRefCnt)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aDBRefCnt))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aDBRefCnt", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21017); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt"
")"); do { MOZ_CrashSequence(__null, 21017); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21018 MOZ_ASSERT(aResult)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aResult)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aResult))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aResult", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21018); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")"
); do { MOZ_CrashSequence(__null, 21018); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21019 MOZ_ASSERT(!mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mActorDestroyed)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mActorDestroyed))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("!mActorDestroyed"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21019
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { MOZ_CrashSequence(__null, 21019); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21020
21021 if (NS_WARN_IF(!IndexedDatabaseManager::Get())NS_warn_if_impl(!IndexedDatabaseManager::Get(), "!IndexedDatabaseManager::Get()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21021
)
) {
21022 return IPC_FAIL(this, "No IndexedDatabaseManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No IndexedDatabaseManager active!"
))
;
21023 }
21024
21025 if (NS_WARN_IF(!QuotaManager::Get())NS_warn_if_impl(!QuotaManager::Get(), "!QuotaManager::Get()",
"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21025)
) {
21026 return IPC_FAIL(this, "No QuotaManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No QuotaManager active!"
))
;
21027 }
21028
21029 if (NS_WARN_IF(!StaticPrefs::dom_indexedDB_testing())NS_warn_if_impl(!StaticPrefs::dom_indexedDB_testing(), "!StaticPrefs::dom_indexedDB_testing()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21029
)
) {
21030 return IPC_FAIL(this, "IndexedDB is not in testing mode!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("IndexedDB is not in testing mode!"
))
;
21031 }
21032
21033 if (NS_WARN_IF(!IsValidPersistenceType(aPersistenceType))NS_warn_if_impl(!IsValidPersistenceType(aPersistenceType), "!IsValidPersistenceType(aPersistenceType)"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21033
)
) {
21034 return IPC_FAIL(this, "PersistenceType is not valid!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("PersistenceType is not valid!"
))
;
21035 }
21036
21037 if (NS_WARN_IF(aOrigin.IsEmpty())NS_warn_if_impl(aOrigin.IsEmpty(), "aOrigin.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21037)
) {
21038 return IPC_FAIL(this, "Origin is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Origin is empty!"
))
;
21039 }
21040
21041 if (NS_WARN_IF(aDatabaseName.IsEmpty())NS_warn_if_impl(aDatabaseName.IsEmpty(), "aDatabaseName.IsEmpty()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21041
)
) {
21042 return IPC_FAIL(this, "DatabaseName is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DatabaseName is empty!"
))
;
21043 }
21044
21045 if (NS_WARN_IF(aFileId == 0)NS_warn_if_impl(aFileId == 0, "aFileId == 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21045)
) {
21046 return IPC_FAIL(this, "No FileId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No FileId!"
))
;
21047 }
21048
21049 nsresult rv =
21050 DispatchAndReturnFileReferences(aPersistenceType, aOrigin, aDatabaseName,
21051 aFileId, aRefCnt, aDBRefCnt, aResult);
21052 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21052)
) {
21053 return IPC_FAIL(this, "DispatchAndReturnFileReferences failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DispatchAndReturnFileReferences failed!"
))
;
21054 }
21055
21056 return IPC_OK()mozilla::ipc::IPCResult::Ok();
21057}
21058
21059mozilla::ipc::IPCResult Utils::RecvDoMaintenance(
21060 DoMaintenanceResolver&& aResolver) {
21061 AssertIsOnBackgroundThread();
21062
21063 QM_TRY(MOZ_TO_RESULT(!QuotaManager::IsShuttingDown()),{auto tryResult1530 = (ToResult(!QuotaManager::IsShuttingDown
())); static_assert(std::is_empty_v<typename decltype(tryResult1530
)::ok_type>); if ((__builtin_expect(!!(tryResult1530.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1530
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21064, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, ResolveNSResultAndReturn(aResolver)); }}
21064 ResolveNSResultAndReturn(aResolver)){auto tryResult1530 = (ToResult(!QuotaManager::IsShuttingDown
())); static_assert(std::is_empty_v<typename decltype(tryResult1530
)::ok_type>); if ((__builtin_expect(!!(tryResult1530.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1530
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21064, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, ResolveNSResultAndReturn(aResolver)); }}
;
21065
21066 QM_TRY(QuotaManager::EnsureCreated(), ResolveNSResultAndReturn(aResolver)){auto tryResult1531 = (QuotaManager::EnsureCreated()); static_assert
(std::is_empty_v<typename decltype(tryResult1531)::ok_type
>); if ((__builtin_expect(!!(tryResult1531.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1531
.unwrapErr(); mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()"
, tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21066, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "QuotaManager::EnsureCreated()"
, tryTempError, ResolveNSResultAndReturn(aResolver)); }}
;
21067
21068 QuotaClient* quotaClient = QuotaClient::GetInstance();
21069 QM_TRY(MOZ_TO_RESULT(quotaClient), QM_IPC_FAIL(this)){auto tryResult1532 = (ToResult(quotaClient)); static_assert(
std::is_empty_v<typename decltype(tryResult1532)::ok_type>
); if ((__builtin_expect(!!(tryResult1532.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1532.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(quotaClient)",
tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21069, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaClient)"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
21070
21071 quotaClient->DoMaintenance()->Then(
21072 GetCurrentSerialEventTarget(), __func__,
21073 [self = RefPtr(this), resolver = std::move(aResolver)](
21074 const BoolPromise::ResolveOrRejectValue& aValue) {
21075 if (!self->CanSend()) {
21076 return;
21077 }
21078
21079 if (aValue.IsResolve()) {
21080 resolver(NS_OK);
21081 } else {
21082 resolver(aValue.RejectValue());
21083 }
21084 });
21085
21086 return IPC_OK()mozilla::ipc::IPCResult::Ok();
21087}
21088
21089#ifdef DEBUG1
21090
21091NS_IMPL_ISUPPORTS(DEBUGThreadSlower, nsIThreadObserver)MozExternalRefCountType DEBUGThreadSlower::AddRef(void) { static_assert
(!std::is_destructible_v<DEBUGThreadSlower>, "Reference-counted class "
"DEBUGThreadSlower" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21091); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 21091
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DEBUGThreadSlower" != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!("DEBUGThreadSlower" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DEBUGThreadSlower\" != nullptr" " (" "Must specify a name"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21091
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 21091); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DEBUGThreadSlower" " not thread-safe"); nsrefcnt
count = ++mRefCnt; NS_LogAddRef((this), (count), ("DEBUGThreadSlower"
), (uint32_t)(sizeof(*this))); return count; } MozExternalRefCountType
DEBUGThreadSlower::Release(void) { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(int32_t(mRefCnt)
> 0)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(int32_t(mRefCnt) > 0))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21091
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 21091
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("DEBUGThreadSlower" != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!("DEBUGThreadSlower" != nullptr
))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(
"\"DEBUGThreadSlower\" != nullptr" " (" "Must specify a name"
")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21091
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 21091); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("DEBUGThreadSlower" " not thread-safe"); const
char* const nametmp = "DEBUGThreadSlower"; nsrefcnt count = --
mRefCnt; NS_LogRelease((this), (count), (nametmp)); if (count
== 0) { mRefCnt = 1; delete (this); return 0; } return count
; } nsresult DEBUGThreadSlower::QueryInterface(const nsIID&
aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) { NS_DebugBreak
(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!"
, "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21091); MOZ_PretendNoReturn(); } } while (0); nsresult rv =
NS_ERROR_FAILURE; static_assert(1 > 0, "Need more arguments to NS_INTERFACE_TABLE"
); static const QITableEntry table[] = { {&mozilla::detail
::kImplementedIID<DEBUGThreadSlower, nsIThreadObserver>
, int32_t( reinterpret_cast<char*>(static_cast<nsIThreadObserver
*>((DEBUGThreadSlower*)0x1000)) - reinterpret_cast<char
*>((DEBUGThreadSlower*)0x1000))}, {&mozilla::detail::kImplementedIID
<DEBUGThreadSlower, nsISupports>, int32_t(reinterpret_cast
<char*>(static_cast<nsISupports*>( static_cast<
nsIThreadObserver*>((DEBUGThreadSlower*)0x1000))) - reinterpret_cast
<char*>((DEBUGThreadSlower*)0x1000))}, { nullptr, 0 } }
; static_assert(std::size(table) > 1, "need at least 1 interface"
); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID
, aInstancePtr, table); return rv; }
21092
21093NS_IMETHODIMPnsresult
21094DEBUGThreadSlower::OnDispatchedEvent() { MOZ_CRASH("Should never be called!")do { do { } while (false); MOZ_ReportCrash("" "Should never be called!"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21094
); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be called!"
")"); do { MOZ_CrashSequence(__null, 21094); __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
; }
21095
21096NS_IMETHODIMPnsresult
21097DEBUGThreadSlower::OnProcessNextEvent(nsIThreadInternal* /* aThread */,
21098 bool /* aMayWait */) {
21099 return NS_OK;
21100}
21101
21102NS_IMETHODIMPnsresult
21103DEBUGThreadSlower::AfterProcessNextEvent(nsIThreadInternal* /* aThread */,
21104 bool /* aEventWasProcessed */) {
21105 MOZ_ASSERT(kDEBUGThreadSleepMS)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(kDEBUGThreadSleepMS)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(kDEBUGThreadSleepMS))), 0)))
{ do { } while (false); MOZ_ReportAssertionFailure("kDEBUGThreadSleepMS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21105
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS"
")"); do { MOZ_CrashSequence(__null, 21105); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21106
21107 MOZ_ALWAYS_TRUE(PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) ==do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
(kDEBUGThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21108
); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
")"); do { MOZ_CrashSequence(__null, 21108); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
21108 PR_SUCCESS)do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
(kDEBUGThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { do
{ } while (false); MOZ_ReportCrash("" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21108
); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
")"); do { MOZ_CrashSequence(__null, 21108); __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } } while
(false)
;
21109 return NS_OK;
21110}
21111
21112#endif // DEBUG
21113
21114nsresult FileHelper::Init() {
21115 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21115
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21115); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21116
21117 auto fileDirectory = mFileManager->GetCheckedDirectory();
21118 if (NS_WARN_IF(!fileDirectory)NS_warn_if_impl(!fileDirectory, "!fileDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21118)
) {
21119 return NS_ERROR_FAILURE;
21120 }
21121
21122 auto journalDirectory = mFileManager->EnsureJournalDirectory();
21123 if (NS_WARN_IF(!journalDirectory)NS_warn_if_impl(!journalDirectory, "!journalDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21123)
) {
21124 return NS_ERROR_FAILURE;
21125 }
21126
21127 DebugOnly<bool> exists;
21128 MOZ_ASSERT(NS_SUCCEEDED(journalDirectory->Exists(&exists)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory
->Exists(&exists))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1
)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21128
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1)))"
")"); do { MOZ_CrashSequence(__null, 21128); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21129 MOZ_ASSERT(exists)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(exists)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(exists))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("exists", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21129); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { MOZ_CrashSequence(__null, 21129); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21130
21131 DebugOnly<bool> isDirectory;
21132 MOZ_ASSERT(NS_SUCCEEDED(journalDirectory->IsDirectory(&isDirectory)))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory
->IsDirectory(&isDirectory))), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory
))), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory))), 1)))"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21132
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory))), 1)))"
")"); do { MOZ_CrashSequence(__null, 21132); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21133 MOZ_ASSERT(isDirectory)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(isDirectory)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(isDirectory))), 0))) { do { }
while (false); MOZ_ReportAssertionFailure("isDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21133); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { MOZ_CrashSequence(__null, 21133); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21134
21135 mFileDirectory.init(WrapNotNullUnchecked(std::move(fileDirectory)));
21136 mJournalDirectory.init(WrapNotNullUnchecked(std::move(journalDirectory)));
21137
21138 return NS_OK;
21139}
21140
21141nsCOMPtr<nsIFile> FileHelper::GetFile(const DatabaseFileInfo& aFileInfo) {
21142 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21142
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21142); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21143
21144 return mFileManager->GetFileForId(mFileDirectory->get(), aFileInfo.Id());
21145}
21146
21147nsCOMPtr<nsIFile> FileHelper::GetJournalFile(
21148 const DatabaseFileInfo& aFileInfo) {
21149 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21149
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21149); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21150
21151 return mFileManager->GetFileForId(mJournalDirectory->get(), aFileInfo.Id());
21152}
21153
21154nsresult FileHelper::CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile,
21155 nsIInputStream& aInputStream,
21156 bool aCompress,
21157 const Maybe<CipherKey>& aMaybeKey) {
21158 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21158
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21158); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21159
21160 QM_TRY_INSPECT(const auto& exists,auto tryResult1533 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1533.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists)"
, tryResult1533.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21161, mozilla::dom::quota::Severity::Error); return tryResult1533
.propagateErr(); } const auto& exists = tryResult1533.inspect
();
21161 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, Exists))auto tryResult1533 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1533.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists)"
, tryResult1533.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21161, mozilla::dom::quota::Severity::Error); return tryResult1533
.propagateErr(); } const auto& exists = tryResult1533.inspect
();
;
21162
21163 // DOM blobs that are being stored in IDB are cached by calling
21164 // IDBDatabase::GetOrCreateFileActorForBlob. So if the same DOM blob is stored
21165 // again under a different key or in a different object store, we just add
21166 // a new reference instead of creating a new copy (all such stored blobs share
21167 // the same id).
21168 // However, it can happen that CreateFileFromStream failed due to quota
21169 // exceeded error and for some reason the orphaned file couldn't be deleted
21170 // immediately. Now, if the operation is being repeated, the DOM blob is
21171 // already cached, so it has the same file id which clashes with the orphaned
21172 // file. We could do some tricks to restore previous copy loop, but it's safer
21173 // to just delete the orphaned file and start from scratch.
21174 // This corner case is partially simulated in test_file_copy_failure.js
21175 if (exists) {
21176 QM_TRY_INSPECT(const auto& isFile,auto tryResult1534 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::IsFile)); if ((__builtin_expect(!!(tryResult1534.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile)"
, tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21177, mozilla::dom::quota::Severity::Error); return tryResult1534
.propagateErr(); } const auto& isFile = tryResult1534.inspect
();
21177 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, IsFile))auto tryResult1534 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::IsFile)); if ((__builtin_expect(!!(tryResult1534.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile)"
, tryResult1534.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21177, mozilla::dom::quota::Severity::Error); return tryResult1534
.propagateErr(); } const auto& isFile = tryResult1534.inspect
();
;
21178
21179 QM_TRY(OkIf(isFile), NS_ERROR_FAILURE){auto tryResult1535 = (OkIf(isFile)); static_assert(std::is_empty_v
<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect
(!!(tryResult1535.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1535.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(isFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21179, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isFile)"
, tryTempError, NS_ERROR_FAILURE); }}
;
21180
21181 QM_TRY_INSPECT(const auto& journalExists,auto tryResult1536 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists)"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21182, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); } const auto& journalExists = tryResult1536
.inspect();
21182 MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, Exists))auto tryResult1536 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists)"
, tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21182, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); } const auto& journalExists = tryResult1536
.inspect();
;
21183
21184 QM_TRY(OkIf(journalExists), NS_ERROR_FAILURE){auto tryResult1537 = (OkIf(journalExists)); static_assert(std
::is_empty_v<typename decltype(tryResult1537)::ok_type>
); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1537.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalExists)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21184
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(journalExists)",
tryTempError, NS_ERROR_FAILURE); }}
;
21185
21186 QM_TRY_INSPECT(const auto& journalIsFile,auto tryResult1538 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::IsFile)); if ((__builtin_expect(!!(tryResult1538.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile)"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21187, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); } const auto& journalIsFile = tryResult1538
.inspect();
21187 MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, IsFile))auto tryResult1538 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::IsFile)); if ((__builtin_expect(!!(tryResult1538.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile)"
, tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21187, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); } const auto& journalIsFile = tryResult1538
.inspect();
;
21188
21189 QM_TRY(OkIf(journalIsFile), NS_ERROR_FAILURE){auto tryResult1539 = (OkIf(journalIsFile)); static_assert(std
::is_empty_v<typename decltype(tryResult1539)::ok_type>
); if ((__builtin_expect(!!(tryResult1539.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1539.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalIsFile)", tryTempError
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21189
, mozilla::dom::quota::Severity::Error); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(journalIsFile)",
tryTempError, NS_ERROR_FAILURE); }}
;
21190
21191 IDB_WARNING("Deleting orphaned file!")do { nsPrintfCString s("Deleting orphaned file!"); mozilla::dom
::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21191, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21191
); } while (0)
;
21192
21193 QM_TRY(MOZ_TO_RESULT(mFileManager->SyncDeleteFile(aFile, aJournalFile))){auto tryResult1540 = (ToResult(mFileManager->SyncDeleteFile
(aFile, aJournalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1540)::ok_type>); if ((__builtin_expect
(!!(tryResult1540.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(mFileManager->SyncDeleteFile(aFile, aJournalFile))"
, tryResult1540.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21193, mozilla::dom::quota::Severity::Error); return tryResult1540
.propagateErr(); }}
;
21194 }
21195
21196 // Create a journal file first.
21197 QM_TRY(MOZ_TO_RESULT(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult1541 = (ToResult(aJournalFile.Create(nsIFile::
NORMAL_FILE_TYPE, 0644))); static_assert(std::is_empty_v<typename
decltype(tryResult1541)::ok_type>); if ((__builtin_expect
(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))"
, tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21197, mozilla::dom::quota::Severity::Error); return tryResult1541
.propagateErr(); }}
;
21198
21199 // Now try to copy the stream.
21200 QM_TRY_UNWRAP(nsCOMPtr<nsIOutputStream> fileOutputStream,auto tryResult1542 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21203, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1542.unwrap();
21201 CreateFileOutputStream(mFileManager->Type(),auto tryResult1542 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21203, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1542.unwrap();
21202 mFileManager->OriginMetadata(),auto tryResult1542 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21203, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1542.unwrap();
21203 Client::IDB, &aFile))auto tryResult1542 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21203, mozilla::dom::quota::Severity::Error); return tryResult1542
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1542.unwrap();
;
21204
21205 AutoTArray<char, kFileCopyBufferSize> buffer;
21206 const auto actualOutputStream =
21207 [aCompress, &aMaybeKey, &buffer,
21208 baseOutputStream =
21209 std::move(fileOutputStream)]() mutable -> nsCOMPtr<nsIOutputStream> {
21210 if (aMaybeKey) {
21211 baseOutputStream =
21212 MakeRefPtr<EncryptingOutputStream<IndexedDBCipherStrategy>>(
21213 std::move(baseOutputStream), kEncryptedStreamBlockSize,
21214 *aMaybeKey);
21215 }
21216
21217 if (aCompress) {
21218 auto snappyOutputStream =
21219 MakeRefPtr<SnappyCompressOutputStream>(baseOutputStream);
21220
21221 buffer.SetLength(snappyOutputStream->BlockSize());
21222
21223 return snappyOutputStream;
21224 }
21225
21226 buffer.SetLength(kFileCopyBufferSize);
21227 return std::move(baseOutputStream);
21228 }();
21229
21230 QM_TRY(MOZ_TO_RESULT(SyncCopy(aInputStream, *actualOutputStream,{auto tryResult1543 = (ToResult(SyncCopy(aInputStream, *actualOutputStream
, buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21231, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
21231 buffer.Elements(), buffer.Length()))){auto tryResult1543 = (ToResult(SyncCopy(aInputStream, *actualOutputStream
, buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v
<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect
(!!(tryResult1543.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))"
, tryResult1543.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21231, mozilla::dom::quota::Severity::Error); return tryResult1543
.propagateErr(); }}
;
21232
21233 return NS_OK;
21234}
21235
21236class FileHelper::ReadCallback final : public nsIInputStreamCallback {
21237 public:
21238 NS_DECL_THREADSAFE_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override; using HasThreadSafeRefCnt = std::true_type; protected
: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; nsAutoOwningThread
_mOwningThread; public:
21239
21240 ReadCallback()
21241 : mMutex("ReadCallback::mMutex"),
21242 mCondVar(mMutex, "ReadCallback::mCondVar"),
21243 mInputAvailable(false) {}
21244
21245 NS_IMETHODvirtual nsresult
21246 OnInputStreamReady(nsIAsyncInputStream* aStream) override {
21247 mozilla::MutexAutoLock autolock(mMutex);
21248
21249 mInputAvailable = true;
21250 mCondVar.Notify();
21251
21252 return NS_OK;
21253 }
21254
21255 nsresult AsyncWait(nsIAsyncInputStream* aStream, uint32_t aBufferSize,
21256 nsIEventTarget* aTarget) {
21257 MOZ_ASSERT(aStream)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aStream)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(aStream))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("aStream", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21257); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStream" ")"
); do { MOZ_CrashSequence(__null, 21257); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21258 mozilla::MutexAutoLock autolock(mMutex);
21259
21260 nsresult rv = aStream->AsyncWait(this, 0, aBufferSize, aTarget);
21261 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21261)
) {
21262 return rv;
21263 }
21264
21265 mInputAvailable = false;
21266 while (!mInputAvailable) {
21267 mCondVar.Wait();
21268 }
21269
21270 return NS_OK;
21271 }
21272
21273 private:
21274 ~ReadCallback() = default;
21275
21276 mozilla::Mutex mMutex MOZ_UNANNOTATED;
21277 mozilla::CondVar mCondVar;
21278 bool mInputAvailable;
21279};
21280
21281NS_IMPL_ADDREF(FileHelper::ReadCallback)MozExternalRefCountType FileHelper::ReadCallback::AddRef(void
) { static_assert(!std::is_destructible_v<FileHelper::ReadCallback
>, "Reference-counted class " "FileHelper::ReadCallback" " should not have a public destructor. "
"Make this class's destructor non-public"); do { static_assert
( mozilla::detail::AssertionConditionType<decltype(int32_t
(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
" (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21281); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 21281
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("FileHelper::ReadCallback" != nullptr)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!("FileHelper::ReadCallback" != nullptr))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("\"FileHelper::ReadCallback\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21281); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 21281); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("FileHelper::ReadCallback" " not thread-safe"
); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count), (
"FileHelper::ReadCallback"), (uint32_t)(sizeof(*this))); return
count; }
;
21282NS_IMPL_RELEASE(FileHelper::ReadCallback)MozExternalRefCountType FileHelper::ReadCallback::Release(void
) { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
" (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21282); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 21282
); __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); do { static_assert( mozilla::detail::AssertionConditionType
<decltype("FileHelper::ReadCallback" != nullptr)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!("FileHelper::ReadCallback" != nullptr))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("\"FileHelper::ReadCallback\" != nullptr"
" (" "Must specify a name" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21282); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr"
") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null
, 21282); __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); if (!mRefCnt.isThreadSafe) _mOwningThread
.AssertOwnership("FileHelper::ReadCallback" " not thread-safe"
); const char* const nametmp = "FileHelper::ReadCallback"; nsrefcnt
count = --mRefCnt; NS_LogRelease((this), (count), (nametmp))
; if (count == 0) { mRefCnt = 1; delete (this); return 0; } return
count; }
;
21283
21284NS_INTERFACE_MAP_BEGIN(FileHelper::ReadCallback)nsresult FileHelper::ReadCallback::QueryInterface(const nsIID
& aIID, void** aInstancePtr) { do { if (!(aInstancePtr)) {
NS_DebugBreak(NS_DEBUG_ASSERTION, "QueryInterface requires a non-NULL destination!"
, "aInstancePtr", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21284); MOZ_PretendNoReturn(); } } while (0); nsISupports* foundInterface
;
21285 NS_INTERFACE_MAP_ENTRY(nsIInputStreamCallback)if (aIID.Equals(mozilla::detail::kImplementedIID<std::remove_reference_t
<decltype(*this)>, nsIInputStreamCallback>)) foundInterface
= static_cast<nsIInputStreamCallback*>(this); else
21286 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIInputStreamCallback)if (aIID.Equals(mozilla::detail::kImplementedIID<std::remove_reference_t
<decltype(*this)>, nsISupports>)) foundInterface = static_cast
<nsISupports*>(static_cast<nsIInputStreamCallback*>
(this)); else
21287NS_INTERFACE_MAP_ENDfoundInterface = 0; nsresult status; if (!foundInterface) { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(!aIID.Equals((nsISupports::kIID)))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!aIID.Equals((nsISupports::kIID
))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!aIID.Equals((nsISupports::kIID))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21287); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIID.Equals((nsISupports::kIID))"
")"); do { MOZ_CrashSequence(__null, 21287); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); status
= NS_NOINTERFACE; } else { (foundInterface)->AddRef(); status
= NS_OK; } *aInstancePtr = foundInterface; return status; }
21288
21289nsresult FileHelper::SyncRead(nsIInputStream& aInputStream, char* const aBuffer,
21290 const uint32_t aBufferSize,
21291 uint32_t* const aRead) {
21292 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21292
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21292); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21293
21294 // Let's try to read, directly.
21295 nsresult rv = aInputStream.Read(aBuffer, aBufferSize, aRead);
21296 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) || rv != NS_BASE_STREAM_WOULD_BLOCK) {
21297 return rv;
21298 }
21299
21300 // We need to proceed async.
21301 nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(&aInputStream);
21302 if (!asyncStream) {
21303 return rv;
21304 }
21305
21306 if (!mReadCallback) {
21307 mReadCallback.init(MakeNotNull<RefPtr<ReadCallback>>());
21308 }
21309
21310 // We just need any thread with an event loop for receiving the
21311 // OnInputStreamReady callback. Let's use the I/O thread.
21312 nsCOMPtr<nsIEventTarget> target =
21313 do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID"@mozilla.org/network/stream-transport-service;1");
21314 MOZ_ASSERT(target)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(target)>::isValid, "invalid assertion condition")
; if ((__builtin_expect(!!(!(!!(target))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("target", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21314); AnnotateMozCrashReason("MOZ_ASSERT" "(" "target" ")"
); do { MOZ_CrashSequence(__null, 21314); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21315
21316 rv = (*mReadCallback)->AsyncWait(asyncStream, aBufferSize, target);
21317 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21317)
) {
21318 return rv;
21319 }
21320
21321 return SyncRead(aInputStream, aBuffer, aBufferSize, aRead);
21322}
21323
21324nsresult FileHelper::SyncCopy(nsIInputStream& aInputStream,
21325 nsIOutputStream& aOutputStream,
21326 char* const aBuffer, const uint32_t aBufferSize) {
21327 MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()"
, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21327
); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { MOZ_CrashSequence(__null, 21327); __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21328
21329 AUTO_PROFILER_LABEL("FileHelper::SyncCopy", DOM)mozilla::AutoProfilerLabel raiiObject21329( "FileHelper::SyncCopy"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
21330
21331 nsresult rv;
21332
21333 do {
21334 uint32_t numRead;
21335 rv = SyncRead(aInputStream, aBuffer, aBufferSize, &numRead);
21336 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21336)
) {
21337 break;
21338 }
21339
21340 if (!numRead) {
21341 break;
21342 }
21343
21344 uint32_t numWrite;
21345 rv = aOutputStream.Write(aBuffer, numRead, &numWrite);
21346 if (rv == NS_ERROR_FILE_NO_DEVICE_SPACE) {
21347 rv = NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR;
21348 }
21349 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21349)
) {
21350 break;
21351 }
21352
21353 if (NS_WARN_IF(numWrite != numRead)NS_warn_if_impl(numWrite != numRead, "numWrite != numRead", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21353)
) {
21354 rv = NS_ERROR_FAILURE;
21355 break;
21356 }
21357 } while (true);
21358
21359 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
21360 rv = aOutputStream.Flush();
21361 if (NS_WARN_IF(NS_FAILED(rv))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv
)), 0))), "NS_FAILED(rv)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21361)
) {
21362 return rv;
21363 }
21364 }
21365
21366 nsresult rv2 = aOutputStream.Close();
21367 if (NS_WARN_IF(NS_FAILED(rv2))NS_warn_if_impl(((bool)(__builtin_expect(!!(NS_FAILED_impl(rv2
)), 0))), "NS_FAILED(rv2)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp"
, 21367)
) {
21368 return NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? rv2 : rv;
21369 }
21370
21371 return rv;
21372}
21373
21374} // namespace dom::indexedDB
21375} // namespace mozilla
21376
21377#undef IDB_MOBILE
21378#undef IDB_DEBUG_LOG

/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h

1/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3/* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7#ifndef mozilla_saferefptr_h__
8#define mozilla_saferefptr_h__
9
10#include "mozilla/ArrayAlgorithm.h"
11#include "mozilla/Maybe.h"
12#include "mozilla/NotNull.h"
13#include "mozilla/RefCounted.h"
14#include "mozilla/RefPtr.h"
15#include "nsCOMPtr.h"
16#include "nsTObserverArray.h"
17
18namespace mozilla {
19template <typename T>
20class SafeRefPtr;
21
22template <typename T, typename... Args>
23SafeRefPtr<T> MakeSafeRefPtr(Args&&... aArgs);
24
25namespace detail {
26struct InitialConstructionTag {};
27
28class SafeRefCountedBase {
29 template <typename U, typename... Args>
30 friend SafeRefPtr<U> mozilla::MakeSafeRefPtr(Args&&... aArgs);
31
32 template <typename T>
33 friend class SafeRefPtr;
34
35 void* operator new(size_t aSize) { return ::operator new(aSize); }
36
Memory is allocated
36
37 protected:
38 void operator delete(void* aPtr) { ::operator delete(aPtr); }
55
Calling 'operator delete'
39
40 public:
41 void* operator new[](size_t) = delete;
42};
43
44// SafeRefCounted is similar to RefCounted, but they differ in their initial
45// refcount (here 1), and the visibility of operator new (here private). The
46// rest is mostly a copy of RefCounted.
47template <typename T, RefCountAtomicity Atomicity>
48class SafeRefCounted : public SafeRefCountedBase {
49 protected:
50 SafeRefCounted() = default;
51#ifdef DEBUG1
52 ~SafeRefCounted() { MOZ_ASSERT(mRefCnt == detail::DEAD)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRefCnt == detail::DEAD)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRefCnt == detail::DEAD))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("mRefCnt == detail::DEAD"
, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h"
, 52); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRefCnt == detail::DEAD"
")"); do { MOZ_CrashSequence(__null, 52); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
53#endif
54
55 public:
56 // Compatibility with nsRefPtr.
57 MozRefCountType AddRef() const {
58 // Note: this method must be thread safe for AtomicRefCounted.
59 MOZ_ASSERT(int32_t(mRefCnt) >= 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))),
0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0"
, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h"
, 59); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
")"); do { MOZ_CrashSequence(__null, 59); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
60 const MozRefCountType cnt = ++mRefCnt;
61 detail::RefCountLogger::logAddRef(static_cast<const T*>(this), cnt);
62 return cnt;
63 }
64
65 MozRefCountType Release() const {
66 // Note: this method must be thread safe for AtomicRefCounted.
67 MOZ_ASSERT(int32_t(mRefCnt) > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0
))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0"
, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h"
, 67); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
")"); do { MOZ_CrashSequence(__null, 67); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
49
Assuming the condition is true
50
Taking false branch
51
Loop condition is false. Exiting loop
68 detail::RefCountLogger::ReleaseLogger logger(static_cast<const T*>(this));
69 const MozRefCountType cnt = --mRefCnt;
70 // Note: it's not safe to touch |this| after decrementing the refcount,
71 // except for below.
72 logger.logRelease(cnt);
73 if (0 == cnt) {
52
Assuming 'cnt' is equal to 0
53
Taking true branch
74 // Because we have atomically decremented the refcount above, only
75 // one thread can get a 0 count here, so as long as we can assume that
76 // everything else in the system is accessing this object through
77 // RefPtrs, it's safe to access |this| here.
78#ifdef DEBUG1
79 mRefCnt = detail::DEAD;
80#endif
81 delete static_cast<const T*>(this);
54
Calling 'SafeRefCountedBase::operator delete'
82 }
83 return cnt;
84 }
85
86 // Compatibility with wtf::RefPtr.
87 void ref() { AddRef(); }
88 void deref() { Release(); }
89 MozRefCountType refCount() const { return mRefCnt; }
90 bool hasOneRef() const {
91 MOZ_ASSERT(mRefCnt > 0)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRefCnt > 0)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRefCnt > 0))), 0))) { do
{ } while (false); MOZ_ReportAssertionFailure("mRefCnt > 0"
, "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h"
, 91); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRefCnt > 0"
")"); do { MOZ_CrashSequence(__null, 91); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
92 return mRefCnt == 1;
93 }
94
95 protected:
96 SafeRefPtr<T> SafeRefPtrFromThis();
97
98 private:
99 mutable RC<MozRefCountType, Atomicity> mRefCnt =
100 RC<MozRefCountType, Atomicity>{1};
101};
102} // namespace detail
103
104template <typename T>
105class SafeRefCounted
106 : public detail::SafeRefCounted<T, detail::NonAtomicRefCount> {
107 public:
108 ~SafeRefCounted() {
109 static_assert(std::is_base_of<SafeRefCounted, T>::value,
110 "T must derive from SafeRefCounted<T>");
111 }
112};
113
114template <typename T>
115class AtomicSafeRefCounted
116 : public detail::SafeRefCounted<T, detail::AtomicRefCount> {
117 public:
118 ~AtomicSafeRefCounted() {
119 static_assert(std::is_base_of<AtomicSafeRefCounted, T>::value,
120 "T must derive from AtomicSafeRefCounted<T>");
121 }
122};
123
124struct AcquireStrongRefFromRawPtr {};
125
126// XXX for Apple, clang::trivial_abi is probably also supported, but we need to
127// find out the correct version number
128#if defined(__clang__1) && !defined(__apple_build_version__) && \
129 __clang_major__21 >= 7
130# define MOZ_TRIVIAL_ABI[[clang::trivial_abi]] [[clang::trivial_abi]]
131#else
132# define MOZ_TRIVIAL_ABI[[clang::trivial_abi]]
133#endif
134
135// A restricted variant of mozilla::RefPtr<T>, which prohibits some unsafe or
136// unperformant misuses, in particular:
137// * It is not implicitly convertible from a raw pointer. Unsafe acquisitions
138// from a raw pointer must be made using the verbose
139// AcquireStrongRefFromRawPtr. To create a new object on the heap, use
140// MakeSafeRefPtr.
141// * It does not implicitly decay to a raw pointer. unsafeGetRawPtr() must be
142// called
143// explicitly.
144// * It is not copyable, but must be explicitly copied using clonePtr().
145// * Temporaries cannot be dereferenced using operator* or operator->.
146template <typename T>
147class MOZ_IS_REFPTR MOZ_TRIVIAL_ABI[[clang::trivial_abi]] SafeRefPtr {
148 template <typename U>
149 friend class SafeRefPtr;
150
151 template <typename U, typename... Args>
152 friend SafeRefPtr<U> mozilla::MakeSafeRefPtr(Args&&... aArgs);
153
154 T* MOZ_OWNING_REF mRawPtr = nullptr;
155
156 // BEGIN Some things copied from RefPtr.
157 // We cannot simply use a RefPtr member because we want to be trivial_abi,
158 // which RefPtr is not.
159 void assign_with_AddRef(T* aRawPtr) {
160 if (aRawPtr) {
161 ConstRemovingRefPtrTraits<T>::AddRef(aRawPtr);
162 }
163 assign_assuming_AddRef(aRawPtr);
164 }
165
166 void assign_assuming_AddRef(T* aNewPtr) {
167 T* oldPtr = mRawPtr;
168 mRawPtr = aNewPtr;
169 if (oldPtr) {
170 ConstRemovingRefPtrTraits<T>::Release(oldPtr);
171 }
172 }
173
174 template <class U>
175 struct ConstRemovingRefPtrTraits {
176 static void AddRef(U* aPtr) { mozilla::RefPtrTraits<U>::AddRef(aPtr); }
177 static void Release(U* aPtr) { mozilla::RefPtrTraits<U>::Release(aPtr); }
47
Calling 'RefPtrTraits::Release'
178 };
179 template <class U>
180 struct ConstRemovingRefPtrTraits<const U> {
181 static void AddRef(const U* aPtr) {
182 mozilla::RefPtrTraits<U>::AddRef(const_cast<U*>(aPtr));
183 }
184 static void Release(const U* aPtr) {
185 mozilla::RefPtrTraits<U>::Release(const_cast<U*>(aPtr));
186 }
187 };
188 // END Some things copied from RefPtr.
189
190 SafeRefPtr(T* aRawPtr, mozilla::detail::InitialConstructionTag);
191
192 public:
193 SafeRefPtr() = default;
194
195 template <typename U,
196 typename = std::enable_if_t<std::is_convertible_v<U*, T*>>>
197 MOZ_IMPLICIT SafeRefPtr(SafeRefPtr<U>&& aSrc) : mRawPtr(aSrc.mRawPtr) {
198 aSrc.mRawPtr = nullptr;
199 }
200
201 explicit SafeRefPtr(RefPtr<T>&& aRefPtr) : mRawPtr(aRefPtr.forget().take()) {}
202
203 // To prevent implicit conversion of raw pointer to RefPtr and then
204 // calling the previous overload.
205 SafeRefPtr(T* const aRawPtr) = delete;
206
207 SafeRefPtr(T* const aRawPtr, const AcquireStrongRefFromRawPtr&) {
208 assign_with_AddRef(aRawPtr);
209 }
210
211 MOZ_IMPLICIT SafeRefPtr(std::nullptr_t) {}
212
213 // Prevent implicit copying, use clonePtr() instead.
214 SafeRefPtr(const SafeRefPtr&) = delete;
215 SafeRefPtr& operator=(const SafeRefPtr&) = delete;
216
217 // Allow moving.
218 SafeRefPtr(SafeRefPtr&& aOther) noexcept : mRawPtr(aOther.mRawPtr) {
219 aOther.mRawPtr = nullptr;
220 }
221 SafeRefPtr& operator=(SafeRefPtr&& aOther) noexcept {
222 assign_assuming_AddRef(aOther.forget().take());
223 return *this;
224 }
225
226 ~SafeRefPtr() {
227 static_assert(!std::is_copy_constructible_v<T>);
228 static_assert(!std::is_copy_assignable_v<T>);
229 static_assert(!std::is_move_constructible_v<T>);
230 static_assert(!std::is_move_assignable_v<T>);
231
232 if (mRawPtr
44.1
Field 'mRawPtr' is non-null
44.1
Field 'mRawPtr' is non-null
44.1
Field 'mRawPtr' is non-null
44.1
Field 'mRawPtr' is non-null
) {
45
Taking true branch
233 ConstRemovingRefPtrTraits<T>::Release(mRawPtr);
46
Calling 'ConstRemovingRefPtrTraits::Release'
234 }
235 }
236
237 typedef T element_type;
238
239 explicit operator bool() const { return mRawPtr; }
240 bool operator!() const { return !mRawPtr; }
241
242 T& operator*() const&& = delete;
243
244 T& operator*() const& {
245 MOZ_ASSERT(mRawPtr)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mRawPtr", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h"
, 245); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr" ")"
); do { MOZ_CrashSequence(__null, 245); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
246 return *mRawPtr;
247 }
248
249 T* operator->() const&& = delete;
250
251 T* operator->() const& MOZ_NO_ADDREF_RELEASE_ON_RETURN {
252 MOZ_ASSERT(mRawPtr)do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("mRawPtr", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/dom/SafeRefPtr.h"
, 252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr" ")"
); do { MOZ_CrashSequence(__null, 252); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
253 return mRawPtr;
254 }
255
256 Maybe<T&> maybeDeref() const { return ToMaybeRef(mRawPtr); }
257
258 T* unsafeGetRawPtr() const { return mRawPtr; }
259
260 SafeRefPtr<T> clonePtr() const {
261 return SafeRefPtr{mRawPtr, AcquireStrongRefFromRawPtr{}};
262 }
263
264 already_AddRefed<T> forget() {
265 auto* const res = mRawPtr;
266 mRawPtr = nullptr;
267 return dont_AddRef(res);
268 }
269
270 bool operator==(const SafeRefPtr<T>& aOther) const {
271 return mRawPtr == aOther.mRawPtr;
272 }
273
274 bool operator!=(const SafeRefPtr<T>& aOther) const {
275 return mRawPtr != aOther.mRawPtr;
276 }
277
278 template <typename U, typename = std::enable_if_t<std::is_base_of_v<T, U>>>
279 SafeRefPtr<U> downcast() && {
280 SafeRefPtr<U> res;
281 res.mRawPtr = static_cast<U*>(mRawPtr);
282 mRawPtr = nullptr;
283 return res;
284 }
285
286 template <typename U>
287 friend RefPtr<U> AsRefPtr(SafeRefPtr<U>&& aSafeRefPtr);
288};
289
290template <typename T>
291SafeRefPtr(RefPtr<T>&&) -> SafeRefPtr<T>;
292
293template <typename T>
294SafeRefPtr(already_AddRefed<T>&&) -> SafeRefPtr<T>;
295
296template <typename T>
297class CheckedUnsafePtr;
298
299template <typename T>
300SafeRefPtr(const CheckedUnsafePtr<T>&, const AcquireStrongRefFromRawPtr&)
301 -> SafeRefPtr<T>;
302
303template <typename T>
304SafeRefPtr<T>::SafeRefPtr(T* aRawPtr, detail::InitialConstructionTag)
305 : mRawPtr(aRawPtr) {
306 if (!std::is_base_of_v<detail::SafeRefCountedBase, T> && mRawPtr) {
307 ConstRemovingRefPtrTraits<T>::AddRef(mRawPtr);
308 }
309}
310
311template <typename T>
312bool operator==(std::nullptr_t aLhs, const SafeRefPtr<T>& aRhs) {
313 return !aRhs;
314}
315
316template <typename T>
317bool operator!=(std::nullptr_t aLhs, const SafeRefPtr<T>& aRhs) {
318 return static_cast<bool>(aRhs);
319}
320
321template <typename T>
322bool operator==(const SafeRefPtr<T>& aLhs, std::nullptr_t aRhs) {
323 return !aLhs;
324}
325
326template <typename T>
327bool operator!=(const SafeRefPtr<T>& aLhs, std::nullptr_t aRhs) {
328 return static_cast<bool>(aLhs);
329}
330
331template <typename T, typename U, typename = std::common_type_t<T*, U*>>
332bool operator==(T* const aLhs, const SafeRefPtr<U>& aRhs) {
333 return aLhs == aRhs.unsafeGetRawPtr();
334}
335
336template <typename T, typename U, typename = std::common_type_t<T*, U*>>
337bool operator!=(T* const aLhs, const SafeRefPtr<U>& aRhs) {
338 return !(aLhs == aRhs);
339}
340
341template <typename T, typename U, typename = std::common_type_t<T*, U*>>
342bool operator==(const SafeRefPtr<T>& aLhs, U* const aRhs) {
343 return aRhs == aLhs;
344}
345
346template <typename T, typename U, typename = std::common_type_t<T*, U*>>
347bool operator!=(const SafeRefPtr<T>& aLhs, U* const aRhs) {
348 return aRhs != aLhs;
349}
350
351template <typename T, typename U, typename = std::common_type_t<T*, U*>>
352bool operator==(const Maybe<T&> aLhs, const SafeRefPtr<U>& aRhs) {
353 return &aLhs.ref() == aRhs.unsafeGetRawPtr();
354}
355
356template <typename T, typename U, typename = std::common_type_t<T*, U*>>
357bool operator!=(const Maybe<T&> aLhs, const SafeRefPtr<U>& aRhs) {
358 return !(aLhs == aRhs);
359}
360
361template <typename T, typename U, typename = std::common_type_t<T*, U*>>
362bool operator==(const SafeRefPtr<T>& aLhs, const Maybe<U&> aRhs) {
363 return aRhs == aLhs;
364}
365
366template <typename T, typename U, typename = std::common_type_t<T*, U*>>
367bool operator!=(const SafeRefPtr<T>& aLhs, const Maybe<U&> aRhs) {
368 return aRhs != aLhs;
369}
370
371template <typename T>
372RefPtr<T> AsRefPtr(SafeRefPtr<T>&& aSafeRefPtr) {
373 return aSafeRefPtr.forget();
374}
375
376template <typename T, typename... Args>
377SafeRefPtr<T> MakeSafeRefPtr(Args&&... aArgs) {
378 return SafeRefPtr{new T(std::forward<Args>(aArgs)...),
35
Calling 'SafeRefCountedBase::operator new'
37
Returning from 'SafeRefCountedBase::operator new'
379 detail::InitialConstructionTag{}};
380}
381
382template <typename T>
383void ImplCycleCollectionTraverse(nsCycleCollectionTraversalCallback& aCallback,
384 const SafeRefPtr<T>& aField, const char* aName,
385 uint32_t aFlags = 0) {
386 CycleCollectionNoteChild(aCallback, aField.unsafeGetRawPtr(), aName, aFlags);
387}
388
389template <typename T>
390void ImplCycleCollectionUnlink(SafeRefPtr<T>& aField) {
391 aField = nullptr;
392}
393
394namespace detail {
395
396template <typename T, RefCountAtomicity Atomicity>
397SafeRefPtr<T> SafeRefCounted<T, Atomicity>::SafeRefPtrFromThis() {
398 // this actually is safe
399 return {static_cast<T*>(this), AcquireStrongRefFromRawPtr{}};
400}
401
402template <typename T>
403struct CopyablePtr<SafeRefPtr<T>> {
404 SafeRefPtr<T> mPtr;
405
406 explicit CopyablePtr(SafeRefPtr<T> aPtr) : mPtr{std::move(aPtr)} {}
407
408 CopyablePtr(const CopyablePtr& aOther) : mPtr{aOther.mPtr.clonePtr()} {}
409 CopyablePtr& operator=(const CopyablePtr& aOther) {
410 if (this != &aOther) {
411 mPtr = aOther.mPtr.clonePtr();
412 }
413 return *this;
414 }
415 CopyablePtr(CopyablePtr&&) = default;
416 CopyablePtr& operator=(CopyablePtr&&) = default;
417};
418
419} // namespace detail
420
421namespace dom {
422/// XXX Move this to BindingUtils.h later on
423template <class T, class S>
424inline RefPtr<T> StrongOrRawPtr(SafeRefPtr<S>&& aPtr) {
425 return AsRefPtr(std::move(aPtr));
426}
427
428} // namespace dom
429
430} // namespace mozilla
431
432template <class T>
433class nsTObserverArray<mozilla::SafeRefPtr<T>>
434 : public nsAutoTObserverArray<mozilla::SafeRefPtr<T>, 0> {
435 public:
436 using base_type = nsAutoTObserverArray<mozilla::SafeRefPtr<T>, 0>;
437 using size_type = nsTObserverArray_base::size_type;
438
439 // Initialization methods
440 nsTObserverArray() = default;
441
442 // Initialize this array and pre-allocate some number of elements.
443 explicit nsTObserverArray(size_type aCapacity) {
444 base_type::mArray.SetCapacity(aCapacity);
445 }
446
447 nsTObserverArray Clone() const {
448 auto result = nsTObserverArray{};
449 result.mArray = mozilla::TransformIntoNewArray(
450 this->mArray, [](const auto& ptr) { return ptr.clonePtr(); });
451 return result;
452 }
453};
454
455// Use MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED in a 'Class' derived from a
456// 'Super' class which derives from (Atomic)SafeRefCounted, and from some other
457// class using NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING.
458#if defined(NS_BUILD_REFCNT_LOGGING1)
459# define MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(Class, Super)template <typename T, ::mozilla::detail::RefCountAtomicity
Atomicity> friend class ::mozilla::detail::SafeRefCounted
; virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<Class>, "Reference-counted class "
"Class" " should not have a public destructor. " "Make this class's destructor non-public"
); nsrefcnt r = Super::AddRef(); if constexpr (::mozilla::detail
::ShouldLogInheritedRefcnt<Class>) { NS_LogAddRef((this
), (r), ("Class"), (uint32_t)(sizeof(*this))); } return r; } virtual
MozExternalRefCountType Release() override { nsrefcnt r = Super
::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<Class>) { NS_LogRelease((this), (r), ("Class")); } return
r; }
\
460 template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> \
461 friend class ::mozilla::detail::SafeRefCounted; \
462 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType AddRef() override { \
463 NS_IMPL_ADDREF_INHERITED_GUTS(Class, Super)static_assert(!std::is_destructible_v<Class>, "Reference-counted class "
"Class" " should not have a public destructor. " "Make this class's destructor non-public"
); nsrefcnt r = Super::AddRef(); if constexpr (::mozilla::detail
::ShouldLogInheritedRefcnt<Class>) { NS_LogAddRef((this
), (r), ("Class"), (uint32_t)(sizeof(*this))); } return r
; \
464 } \
465 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType Release() override { \
466 NS_IMPL_RELEASE_INHERITED_GUTS(Class, Super)nsrefcnt r = Super::Release(); if constexpr (::mozilla::detail
::ShouldLogInheritedRefcnt<Class>) { NS_LogRelease((this
), (r), ("Class")); } return r
; \
467 }
468#else // NS_BUILD_REFCNT_LOGGING
469# define MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(Class, Super)template <typename T, ::mozilla::detail::RefCountAtomicity
Atomicity> friend class ::mozilla::detail::SafeRefCounted
; virtual MozExternalRefCountType AddRef() override { static_assert
(!std::is_destructible_v<Class>, "Reference-counted class "
"Class" " should not have a public destructor. " "Make this class's destructor non-public"
); nsrefcnt r = Super::AddRef(); if constexpr (::mozilla::detail
::ShouldLogInheritedRefcnt<Class>) { NS_LogAddRef((this
), (r), ("Class"), (uint32_t)(sizeof(*this))); } return r; } virtual
MozExternalRefCountType Release() override { nsrefcnt r = Super
::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt
<Class>) { NS_LogRelease((this), (r), ("Class")); } return
r; }
\
470 template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> \
471 friend class ::mozilla::detail::SafeRefCounted; \
472 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType AddRef() override { \
473 return Super::AddRef(); \
474 } \
475 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType Release() override { \
476 return Super::Release(); \
477 }
478#endif
479
480#endif

/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h

1/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3/* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7#ifndef mozilla_RefPtr_h
8#define mozilla_RefPtr_h
9
10#include "mozilla/AlreadyAddRefed.h"
11#include "mozilla/Assertions.h"
12#include "mozilla/Attributes.h"
13#include "mozilla/DbgMacro.h"
14
15#include <type_traits>
16
17/*****************************************************************************/
18
19// template <class T> class RefPtrGetterAddRefs;
20
21class nsQueryReferent;
22class nsCOMPtr_helper;
23class nsISupports;
24
25namespace mozilla {
26template <class T>
27class MovingNotNull;
28template <class T>
29class NotNull;
30template <class T>
31class OwningNonNull;
32template <class T>
33class StaticLocalRefPtr;
34template <class T>
35class StaticRefPtr;
36
37// Traditionally, RefPtr supports automatic refcounting of any pointer type
38// with AddRef() and Release() methods that follow the traditional semantics.
39//
40// This traits class can be specialized to operate on other pointer types. For
41// example, we specialize this trait for opaque FFI types that represent
42// refcounted objects in Rust.
43//
44// Given the use of ConstRemovingRefPtrTraits below, U should not be a const-
45// qualified type.
46template <class U>
47struct RefPtrTraits {
48 static void AddRef(U* aPtr) { aPtr->AddRef(); }
49 static void Release(U* aPtr) { aPtr->Release(); }
48
Calling 'SafeRefCounted::Release'
50};
51
52} // namespace mozilla
53
54template <class T>
55class MOZ_IS_REFPTR RefPtr {
56 private:
57 void assign_with_AddRef(T* aRawPtr) {
58 if (aRawPtr) {
59 ConstRemovingRefPtrTraits<T>::AddRef(aRawPtr);
60 }
61 assign_assuming_AddRef(aRawPtr);
62 }
63
64 void assign_assuming_AddRef(T* aNewPtr) {
65 T* oldPtr = mRawPtr;
66 mRawPtr = aNewPtr;
67 if (oldPtr) {
68 ConstRemovingRefPtrTraits<T>::Release(oldPtr);
69 }
70 }
71
72 private:
73 T* MOZ_OWNING_REF mRawPtr;
74
75 public:
76 typedef T element_type;
77
78 ~RefPtr() {
79 if (mRawPtr) {
80 ConstRemovingRefPtrTraits<T>::Release(mRawPtr);
81 }
82 }
83
84 // Constructors
85
86 constexpr RefPtr()
87 : mRawPtr(nullptr)
88 // default constructor
89 {}
90
91 RefPtr(const RefPtr<T>& aSmartPtr)
92 : mRawPtr(aSmartPtr.mRawPtr)
93 // copy-constructor
94 {
95 if (mRawPtr) {
96 ConstRemovingRefPtrTraits<T>::AddRef(mRawPtr);
97 }
98 }
99
100 RefPtr(RefPtr<T>&& aRefPtr) noexcept : mRawPtr(aRefPtr.mRawPtr) {
101 aRefPtr.mRawPtr = nullptr;
102 }
103
104 // construct from a raw pointer (of the right type)
105
106 MOZ_IMPLICIT RefPtr(T* aRawPtr) : mRawPtr(aRawPtr) {
107 if (mRawPtr) {
108 ConstRemovingRefPtrTraits<T>::AddRef(mRawPtr);
109 }
110 }
111
112 MOZ_IMPLICIT RefPtr(decltype(nullptr)) : mRawPtr(nullptr) {}
113
114 template <typename I,
115 typename = std::enable_if_t<std::is_convertible_v<I*, T*>>>
116 MOZ_IMPLICIT RefPtr(already_AddRefed<I>& aSmartPtr)
117 : mRawPtr(aSmartPtr.take())
118 // construct from |already_AddRefed|
119 {}
120
121 template <typename I,
122 typename = std::enable_if_t<std::is_convertible_v<I*, T*>>>
123 MOZ_IMPLICIT RefPtr(already_AddRefed<I>&& aSmartPtr)
124 : mRawPtr(aSmartPtr.take())
125 // construct from |otherRefPtr.forget()|
126 {}
127
128 template <typename I,
129 typename = std::enable_if_t<std::is_convertible_v<I*, T*>>>
130 MOZ_IMPLICIT RefPtr(const RefPtr<I>& aSmartPtr)
131 : mRawPtr(aSmartPtr.get())
132 // copy-construct from a smart pointer with a related pointer type
133 {
134 if (mRawPtr) {
135 ConstRemovingRefPtrTraits<T>::AddRef(mRawPtr);
136 }
137 }
138
139 template <typename I,
140 typename = std::enable_if_t<std::is_convertible_v<I*, T*>>>
141 MOZ_IMPLICIT RefPtr(RefPtr<I>&& aSmartPtr)
142 : mRawPtr(aSmartPtr.forget().take())
143 // construct from |Move(RefPtr<SomeSubclassOfT>)|.
144 {}
145
146 template <typename I,
147 typename = std::enable_if_t<!std::is_same_v<I, RefPtr<T>> &&
148 std::is_convertible_v<I, RefPtr<T>>>>
149 MOZ_IMPLICIT RefPtr(const mozilla::NotNull<I>& aSmartPtr)
150 : mRawPtr(RefPtr<T>(aSmartPtr.get()).forget().take())
151 // construct from |mozilla::NotNull|.
152 {}
153
154 template <typename I,
155 typename = std::enable_if_t<!std::is_same_v<I, RefPtr<T>> &&
156 std::is_convertible_v<I, RefPtr<T>>>>
157 MOZ_IMPLICIT RefPtr(mozilla::MovingNotNull<I>&& aSmartPtr)
158 : mRawPtr(RefPtr<T>(std::move(aSmartPtr).unwrapBasePtr()).forget().take())
159 // construct from |mozilla::MovingNotNull|.
160 {}
161
162 MOZ_IMPLICIT RefPtr(const nsQueryReferent& aHelper);
163 MOZ_IMPLICIT RefPtr(const nsCOMPtr_helper& aHelper);
164
165 // Defined in OwningNonNull.h
166 template <class U>
167 MOZ_IMPLICIT RefPtr(const mozilla::OwningNonNull<U>& aOther);
168
169 // Defined in StaticLocalPtr.h
170 template <class U>
171 MOZ_IMPLICIT RefPtr(const mozilla::StaticLocalRefPtr<U>& aOther);
172
173 // Defined in StaticPtr.h
174 template <class U>
175 MOZ_IMPLICIT RefPtr(const mozilla::StaticRefPtr<U>& aOther);
176
177 // Assignment operators
178
179 RefPtr<T>& operator=(decltype(nullptr)) {
180 assign_assuming_AddRef(nullptr);
181 return *this;
182 }
183
184 RefPtr<T>& operator=(const RefPtr<T>& aRhs)
185 // copy assignment operator
186 {
187 assign_with_AddRef(aRhs.mRawPtr);
188 return *this;
189 }
190
191 template <typename I>
192 RefPtr<T>& operator=(const RefPtr<I>& aRhs)
193 // assign from an RefPtr of a related pointer type
194 {
195 assign_with_AddRef(aRhs.get());
196 return *this;
197 }
198
199 RefPtr<T>& operator=(T* aRhs)
200 // assign from a raw pointer (of the right type)
201 {
202 assign_with_AddRef(aRhs);
203 return *this;
204 }
205
206 template <typename I>
207 RefPtr<T>& operator=(already_AddRefed<I>& aRhs)
208 // assign from |already_AddRefed|
209 {
210 assign_assuming_AddRef(aRhs.take());
211 return *this;
212 }
213
214 template <typename I>
215 RefPtr<T>& operator=(already_AddRefed<I>&& aRhs)
216 // assign from |otherRefPtr.forget()|
217 {
218 assign_assuming_AddRef(aRhs.take());
219 return *this;
220 }
221
222 RefPtr<T>& operator=(const nsQueryReferent& aQueryReferent);
223 RefPtr<T>& operator=(const nsCOMPtr_helper& aHelper);
224
225 template <typename I,
226 typename = std::enable_if_t<std::is_convertible_v<I*, T*>>>
227 RefPtr<T>& operator=(RefPtr<I>&& aRefPtr) noexcept {
228 assign_assuming_AddRef(aRefPtr.forget().take());
229 return *this;
230 }
231
232 template <typename I,
233 typename = std::enable_if_t<std::is_convertible_v<I, RefPtr<T>>>>
234 RefPtr<T>& operator=(const mozilla::NotNull<I>& aSmartPtr)
235 // assign from |mozilla::NotNull|.
236 {
237 assign_assuming_AddRef(RefPtr<T>(aSmartPtr.get()).forget().take());
238 return *this;
239 }
240
241 template <typename I,
242 typename = std::enable_if_t<std::is_convertible_v<I, RefPtr<T>>>>
243 RefPtr<T>& operator=(mozilla::MovingNotNull<I>&& aSmartPtr)
244 // assign from |mozilla::MovingNotNull|.
245 {
246 assign_assuming_AddRef(
247 RefPtr<T>(std::move(aSmartPtr).unwrapBasePtr()).forget().take());
248 return *this;
249 }
250
251 // Defined in OwningNonNull.h
252 template <class U>
253 RefPtr<T>& operator=(const mozilla::OwningNonNull<U>& aOther);
254
255 // Defined in StaticLocalPtr.h
256 template <class U>
257 RefPtr<T>& operator=(const mozilla::StaticLocalRefPtr<U>& aOther);
258
259 // Defined in StaticPtr.h
260 template <class U>
261 RefPtr<T>& operator=(const mozilla::StaticRefPtr<U>& aOther);
262
263 // Other pointer operators
264
265 void swap(RefPtr<T>& aRhs)
266 // ...exchange ownership with |aRhs|; can save a pair of refcount operations
267 {
268 T* temp = aRhs.mRawPtr;
269 aRhs.mRawPtr = mRawPtr;
270 mRawPtr = temp;
271 }
272
273 void swap(T*& aRhs)
274 // ...exchange ownership with |aRhs|; can save a pair of refcount operations
275 {
276 T* temp = aRhs;
277 aRhs = mRawPtr;
278 mRawPtr = temp;
279 }
280
281 already_AddRefed<T> MOZ_MAY_CALL_AFTER_MUST_RETURN forget()
282 // return the value of mRawPtr and null out mRawPtr. Useful for
283 // already_AddRefed return values.
284 {
285 T* temp = nullptr;
286 swap(temp);
287 return already_AddRefed<T>(temp);
288 }
289
290 template <typename I>
291 void forget(I** aRhs)
292 // Set the target of aRhs to the value of mRawPtr and null out mRawPtr.
293 // Useful to avoid unnecessary AddRef/Release pairs with "out"
294 // parameters where aRhs bay be a T** or an I** where I is a base class
295 // of T.
296 {
297 MOZ_ASSERT(aRhs, "Null pointer passed to forget!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aRhs)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(aRhs))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("aRhs" " (" "Null pointer passed to forget!"
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h"
, 297); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRhs" ") (" "Null pointer passed to forget!"
")"); do { MOZ_CrashSequence(__null, 297); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
298 *aRhs = mRawPtr;
299 mRawPtr = nullptr;
300 }
301
302 void forget(nsISupports** aRhs) {
303 MOZ_ASSERT(aRhs, "Null pointer passed to forget!")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(aRhs)>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(aRhs))), 0))) { do { } while (false
); MOZ_ReportAssertionFailure("aRhs" " (" "Null pointer passed to forget!"
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h"
, 303); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRhs" ") (" "Null pointer passed to forget!"
")"); do { MOZ_CrashSequence(__null, 303); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
304 *aRhs = ToSupports(mRawPtr);
305 mRawPtr = nullptr;
306 }
307
308 T* get() const
309 /*
310 Prefer the implicit conversion provided automatically by |operator T*()
311 const|. Use |get()| to resolve ambiguity or to get a castable pointer.
312 */
313 {
314 return const_cast<T*>(mRawPtr);
315 }
316
317 operator T*() const&
318 /*
319 ...makes an |RefPtr| act like its underlying raw pointer type whenever it
320 is used in a context where a raw pointer is expected. It is this operator
321 that makes an |RefPtr| substitutable for a raw pointer.
322
323 Prefer the implicit use of this operator to calling |get()|, except where
324 necessary to resolve ambiguity.
325 */
326 {
327 return get();
328 }
329
330 // Don't allow implicit conversion of temporary RefPtr to raw pointer,
331 // because the refcount might be one and the pointer will immediately become
332 // invalid.
333 operator T*() const&& = delete;
334
335 // These are needed to avoid the deleted operator above. XXX Why is operator!
336 // needed separately? Shouldn't the compiler prefer using the non-deleted
337 // operator bool instead of the deleted operator T*?
338 explicit operator bool() const { return !!mRawPtr; }
339 bool operator!() const { return !mRawPtr; }
340
341 T* operator->() const MOZ_NO_ADDREF_RELEASE_ON_RETURN {
342 MOZ_ASSERT(mRawPtr != nullptr,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr"
" (" "You can't dereference a NULL RefPtr with operator->()."
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h"
, 343); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr"
") (" "You can't dereference a NULL RefPtr with operator->()."
")"); do { MOZ_CrashSequence(__null, 343); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
343 "You can't dereference a NULL RefPtr with operator->().")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr"
" (" "You can't dereference a NULL RefPtr with operator->()."
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h"
, 343); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr"
") (" "You can't dereference a NULL RefPtr with operator->()."
")"); do { MOZ_CrashSequence(__null, 343); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
344 return get();
345 }
346
347 template <typename R, typename... Args>
348 class Proxy {
349 typedef R (T::*member_function)(Args...);
350 T* mRawPtr;
351 member_function mFunction;
352
353 public:
354 Proxy(T* aRawPtr, member_function aFunction)
355 : mRawPtr(aRawPtr), mFunction(aFunction) {}
356 template <typename... ActualArgs>
357 R operator()(ActualArgs&&... aArgs) {
358 return ((*mRawPtr).*mFunction)(std::forward<ActualArgs>(aArgs)...);
359 }
360 };
361
362 template <typename R, typename... Args>
363 Proxy<R, Args...> operator->*(R (T::*aFptr)(Args...)) const {
364 MOZ_ASSERT(mRawPtr != nullptr,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr"
" (" "You can't dereference a NULL RefPtr with operator->*()."
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h"
, 365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr"
") (" "You can't dereference a NULL RefPtr with operator->*()."
")"); do { MOZ_CrashSequence(__null, 365); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
365 "You can't dereference a NULL RefPtr with operator->*().")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr"
" (" "You can't dereference a NULL RefPtr with operator->*()."
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h"
, 365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr"
") (" "You can't dereference a NULL RefPtr with operator->*()."
")"); do { MOZ_CrashSequence(__null, 365); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
366 return Proxy<R, Args...>(get(), aFptr);
367 }
368
369 RefPtr<T>* get_address()
370 // This is not intended to be used by clients. See |address_of|
371 // below.
372 {
373 return this;
374 }
375
376 const RefPtr<T>* get_address() const
377 // This is not intended to be used by clients. See |address_of|
378 // below.
379 {
380 return this;
381 }
382
383 public:
384 T& operator*() const {
385 MOZ_ASSERT(mRawPtr != nullptr,do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr"
" (" "You can't dereference a NULL RefPtr with operator*()."
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h"
, 386); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr"
") (" "You can't dereference a NULL RefPtr with operator*()."
")"); do { MOZ_CrashSequence(__null, 386); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
386 "You can't dereference a NULL RefPtr with operator*().")do { static_assert( mozilla::detail::AssertionConditionType<
decltype(mRawPtr != nullptr)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(mRawPtr != nullptr))), 0))) {
do { } while (false); MOZ_ReportAssertionFailure("mRawPtr != nullptr"
" (" "You can't dereference a NULL RefPtr with operator*()."
")", "/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/RefPtr.h"
, 386); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRawPtr != nullptr"
") (" "You can't dereference a NULL RefPtr with operator*()."
")"); do { MOZ_CrashSequence(__null, 386); __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
387 return *get();
388 }
389
390 T** StartAssignment() {
391 assign_assuming_AddRef(nullptr);
392 return reinterpret_cast<T**>(&mRawPtr);
393 }
394
395 private:
396 // This helper class makes |RefPtr<const T>| possible by casting away
397 // the constness from the pointer when calling AddRef() and Release().
398 //
399 // This is necessary because AddRef() and Release() implementations can't
400 // generally expected to be const themselves (without heavy use of |mutable|
401 // and |const_cast| in their own implementations).
402 //
403 // This should be sound because while |RefPtr<const T>| provides a
404 // const view of an object, the object itself should not be const (it
405 // would have to be allocated as |new const T| or similar to be const).
406 template <class U>
407 struct ConstRemovingRefPtrTraits {
408 static void AddRef(U* aPtr) { mozilla::RefPtrTraits<U>::AddRef(aPtr); }
409 static void Release(U* aPtr) { mozilla::RefPtrTraits<U>::Release(aPtr); }
410 };
411 template <class U>
412 struct ConstRemovingRefPtrTraits<const U> {
413 static void AddRef(const U* aPtr) {
414 mozilla::RefPtrTraits<U>::AddRef(const_cast<U*>(aPtr));
415 }
416 static void Release(const U* aPtr) {
417 mozilla::RefPtrTraits<U>::Release(const_cast<U*>(aPtr));
418 }
419 };
420};
421
422class nsCycleCollectionTraversalCallback;
423template <typename T>
424void CycleCollectionNoteChild(nsCycleCollectionTraversalCallback& aCallback,
425 T* aChild, const char* aName, uint32_t aFlags);
426
427template <typename T>
428inline void ImplCycleCollectionUnlink(RefPtr<T>& aField) {
429 aField = nullptr;
430}
431
432template <typename T>
433inline void ImplCycleCollectionTraverse(
434 nsCycleCollectionTraversalCallback& aCallback, const RefPtr<T>& aField,
435 const char* aName, uint32_t aFlags = 0) {
436 CycleCollectionNoteChild(aCallback, aField.get(), aName, aFlags);
437}
438
439template <class T>
440inline RefPtr<T>* address_of(RefPtr<T>& aPtr) {
441 return aPtr.get_address();
442}
443
444template <class T>
445inline const RefPtr<T>* address_of(const RefPtr<T>& aPtr) {
446 return aPtr.get_address();
447}
448
449template <class T>
450class RefPtrGetterAddRefs
451/*
452 ...
453
454 This class is designed to be used for anonymous temporary objects in the
455 argument list of calls that return COM interface pointers, e.g.,
456
457 RefPtr<IFoo> fooP;
458 ...->GetAddRefedPointer(getter_AddRefs(fooP))
459
460 DO NOT USE THIS TYPE DIRECTLY IN YOUR CODE. Use |getter_AddRefs()| instead.
461
462 When initialized with a |RefPtr|, as in the example above, it returns
463 a |void**|, a |T**|, or an |nsISupports**| as needed, that the
464 outer call (|GetAddRefedPointer| in this case) can fill in.
465
466 This type should be a nested class inside |RefPtr<T>|.
467*/
468{
469 public:
470 explicit RefPtrGetterAddRefs(RefPtr<T>& aSmartPtr)
471 : mTargetSmartPtr(aSmartPtr) {
472 // nothing else to do
473 }
474
475 operator void**() {
476 return reinterpret_cast<void**>(mTargetSmartPtr.StartAssignment());
477 }
478
479 operator T**() { return mTargetSmartPtr.StartAssignment(); }
480
481 T*& operator*() { return *(mTargetSmartPtr.StartAssignment()); }
482
483 private:
484 RefPtr<T>& mTargetSmartPtr;
485};
486
487template <class T>
488inline RefPtrGetterAddRefs<T> getter_AddRefs(RefPtr<T>& aSmartPtr)
489/*
490 Used around a |RefPtr| when
491 ...makes the class |RefPtrGetterAddRefs<T>| invisible.
492*/
493{
494 return RefPtrGetterAddRefs<T>(aSmartPtr);
495}
496
497// Comparing two |RefPtr|s
498
499template <class T, class U>
500inline bool operator==(const RefPtr<T>& aLhs, const RefPtr<U>& aRhs) {
501 return static_cast<const T*>(aLhs.get()) == static_cast<const U*>(aRhs.get());
502}
503
504template <class T, class U>
505inline bool operator!=(const RefPtr<T>& aLhs, const RefPtr<U>& aRhs) {
506 return static_cast<const T*>(aLhs.get()) != static_cast<const U*>(aRhs.get());
507}
508
509// Comparing an |RefPtr| to a raw pointer
510
511template <class T, class U>
512inline bool operator==(const RefPtr<T>& aLhs, const U* aRhs) {
513 return static_cast<const T*>(aLhs.get()) == static_cast<const U*>(aRhs);
514}
515
516template <class T, class U>
517inline bool operator==(const U* aLhs, const RefPtr<T>& aRhs) {
518 return static_cast<const U*>(aLhs) == static_cast<const T*>(aRhs.get());
519}
520
521template <class T, class U>
522inline bool operator!=(const RefPtr<T>& aLhs, const U* aRhs) {
523 return static_cast<const T*>(aLhs.get()) != static_cast<const U*>(aRhs);
524}
525
526template <class T, class U>
527inline bool operator!=(const U* aLhs, const RefPtr<T>& aRhs) {
528 return static_cast<const U*>(aLhs) != static_cast<const T*>(aRhs.get());
529}
530
531template <class T, class U>
532inline bool operator==(const RefPtr<T>& aLhs, U* aRhs) {
533 return static_cast<const T*>(aLhs.get()) == const_cast<const U*>(aRhs);
534}
535
536template <class T, class U>
537inline bool operator==(U* aLhs, const RefPtr<T>& aRhs) {
538 return const_cast<const U*>(aLhs) == static_cast<const T*>(aRhs.get());
539}
540
541template <class T, class U>
542inline bool operator!=(const RefPtr<T>& aLhs, U* aRhs) {
543 return static_cast<const T*>(aLhs.get()) != const_cast<const U*>(aRhs);
544}
545
546template <class T, class U>
547inline bool operator!=(U* aLhs, const RefPtr<T>& aRhs) {
548 return const_cast<const U*>(aLhs) != static_cast<const T*>(aRhs.get());
549}
550
551// Comparing an |RefPtr| to |nullptr|
552
553template <class T>
554inline bool operator==(const RefPtr<T>& aLhs, decltype(nullptr)) {
555 return aLhs.get() == nullptr;
556}
557
558template <class T>
559inline bool operator==(decltype(nullptr), const RefPtr<T>& aRhs) {
560 return nullptr == aRhs.get();
561}
562
563template <class T>
564inline bool operator!=(const RefPtr<T>& aLhs, decltype(nullptr)) {
565 return aLhs.get() != nullptr;
566}
567
568template <class T>
569inline bool operator!=(decltype(nullptr), const RefPtr<T>& aRhs) {
570 return nullptr != aRhs.get();
571}
572
573// MOZ_DBG support
574
575template <class T>
576std::ostream& operator<<(std::ostream& aOut, const RefPtr<T>& aObj) {
577 return mozilla::DebugValue(aOut, aObj.get());
578}
579
580/*****************************************************************************/
581
582template <class T>
583inline already_AddRefed<T> do_AddRef(T* aObj) {
584 RefPtr<T> ref(aObj);
585 return ref.forget();
586}
587
588template <class T>
589inline already_AddRefed<T> do_AddRef(const RefPtr<T>& aObj) {
590 RefPtr<T> ref(aObj);
591 return ref.forget();
592}
593
594namespace mozilla {
595
596template <typename T>
597class AlignmentFinder;
598
599// Provide a specialization of AlignmentFinder to allow MOZ_ALIGNOF(RefPtr<T>)
600// with an incomplete T.
601template <typename T>
602class AlignmentFinder<RefPtr<T>> {
603 public:
604 static const size_t alignment = alignof(T*);
605};
606
607/**
608 * Helper function to be able to conveniently write things like:
609 *
610 * already_AddRefed<T>
611 * f(...)
612 * {
613 * return MakeAndAddRef<T>(...);
614 * }
615 */
616template <typename T, typename... Args>
617already_AddRefed<T> MakeAndAddRef(Args&&... aArgs) {
618 RefPtr<T> p(new T(std::forward<Args>(aArgs)...));
619 return p.forget();
620}
621
622/**
623 * Helper function to be able to conveniently write things like:
624 *
625 * auto runnable =
626 * MakeRefPtr<ErrorCallbackRunnable<nsIDOMGetUserMediaSuccessCallback>>(
627 * mOnSuccess, mOnFailure, *error, mWindowID);
628 */
629template <typename T, typename... Args>
630RefPtr<T> MakeRefPtr(Args&&... aArgs) {
631 RefPtr<T> p(new T(std::forward<Args>(aArgs)...));
632 return p;
633}
634
635} // namespace mozilla
636
637/**
638 * Deduction guide to allow simple `RefPtr` definitions from an
639 * already_AddRefed<T> without repeating the type, e.g.:
640 *
641 * RefPtr ptr = MakeAndAddRef<SomeType>(...);
642 */
643template <typename T>
644RefPtr(already_AddRefed<T>) -> RefPtr<T>;
645
646#endif /* mozilla_RefPtr_h */

/root/firefox-clang/obj-x86_64-pc-linux-gnu/dist/include/mozilla/cxxalloc.h

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5#ifndef mozilla_cxxalloc_h
6#define mozilla_cxxalloc_h
7
8/*
9 * We implement the default operators new/delete as part of
10 * libmozalloc, replacing their definitions in libstdc++. The
11 * operator new* definitions in libmozalloc will never return a NULL
12 * pointer.
13 *
14 * Each operator new immediately below returns a pointer to memory
15 * that can be delete'd by any of
16 *
17 * (1) the matching infallible operator delete immediately below
18 * (2) the matching system |operator delete(void*, std::nothrow)|
19 * (3) the matching system |operator delete(void*) noexcept(false)|
20 *
21 * NB: these are declared |noexcept(false)|, though they will never
22 * throw that exception. This declaration is consistent with the rule
23 * that |::operator new() noexcept(false)| will never return NULL.
24 *
25 * NB: mozilla::fallible can be used instead of std::nothrow.
26 */
27
28#ifndef MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline
29# define MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline MFBT_API__attribute__((weak)) __attribute__((visibility("default")))
30#endif
31
32MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void* operator new(size_t size) noexcept(false) {
33 return moz_xmalloc(size);
34}
35
36MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void* operator new(size_t size,
37 const std::nothrow_t&) noexcept(true) {
38 return malloc_implmalloc(size);
39}
40
41MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void* operator new[](size_t size) noexcept(false) {
42 return moz_xmalloc(size);
43}
44
45// Inlining `new` like this is technically against C++ spec, but we crave perf.
46MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void* operator new[](size_t size,
47 const std::nothrow_t&) noexcept(true) {
48#ifdef __GNUC__4
49// GCC-14 codegen at -O2 causes false positive due to converting
50// `new A[n]` to `malloc(-1)` when `n > PTRDIFF_MAX/sizeof(A)`.
51// (See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85783, WONTFIX'd)
52# pragma GCC diagnostic push
53# pragma GCC diagnostic ignored "-Walloc-size-larger-than="
54#endif
55
56 return malloc_implmalloc(size);
57
58#ifdef __GNUC__4
59# pragma GCC diagnostic pop
60#endif
61}
62
63MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete(void* ptr) noexcept(true) {
64 return free_implfree(ptr);
56
Memory allocated by 'operator new' should be deallocated by 'delete', not 'free()'
65}
66
67MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete(void* ptr,
68 const std::nothrow_t&) noexcept(true) {
69 return free_implfree(ptr);
70}
71
72MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete[](void* ptr) noexcept(true) {
73 return free_implfree(ptr);
74}
75
76MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete[](
77 void* ptr, const std::nothrow_t&) noexcept(true) {
78 return free_implfree(ptr);
79}
80
81#if defined(XP_WIN)
82// We provide the global sized delete overloads unconditionally because the
83// MSVC runtime headers do, despite compiling with /Zc:sizedDealloc-
84MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete(void* ptr,
85 size_t /*size*/) noexcept(true) {
86 return free_implfree(ptr);
87}
88
89MOZALLOC_EXPORT_NEW__attribute__((always_inline)) inline void operator delete[](void* ptr,
90 size_t /*size*/) noexcept(true) {
91 return free_implfree(ptr);
92}
93#endif
94
95#endif /* mozilla_cxxalloc_h */